import { EventEmitter } from '@angular/core'; import { Animation } from '../../animations/animation'; import { Side } from '../../util/util'; export interface Menu { setOpen(shouldOpen: boolean, animated: boolean): Promise; open(): Promise; close(): Promise; toggle(): Promise; enable(shouldEnable: boolean, menuId?: string): Menu; swipeEnable(shouldEnable: boolean): Menu; isOpen: boolean; enabled: boolean; side: Side; id: string; isRightSide: boolean; ionDrag: EventEmitter; ionOpen: EventEmitter; ionClose: EventEmitter; isAnimating(): boolean; width(): number; getContentElement(): HTMLElement; getMenuElement(): HTMLElement; getBackdropElement(): HTMLElement; _canOpen(): boolean; persistent: boolean; } export interface MenuType { ani: Animation; isOpening: boolean; setOpen(shouldOpen: boolean, animated: boolean, done: Function): void; setProgressStart(isOpen: boolean): void; setProgessStep(stepValue: number): void; setProgressEnd(shouldComplete: boolean, currentStepValue: number, velocity: number, done: Function): void; destroy(): void; }