import { PopupDirection } from "./FieldTypes"; import { GButton } from "./GButton"; import { GComponent } from "./GComponent"; import { GList } from "./GList"; import { GObject } from "./GObject"; export declare class PopupMenu { visibleItemCount: number; hideOnClickItem: boolean; autoSize: boolean; protected _contentPane: GComponent; protected _list: GList; constructor(resourceURL?: string); dispose(): void; addItem(caption: string, handler?: Function, target?: any): GButton; addItemAt(caption: string, index: number, handler?: Function, target?: any): GButton; private createItem; addSeperator(index?: number): void; getItemName(index: number): string; setItemText(name: string, caption: string): void; setItemVisible(name: string, visible: boolean): void; setItemGrayed(name: string, grayed: boolean): void; setItemCheckable(name: string, checkable: boolean): void; setItemChecked(name: string, checked: boolean): void; isItemChecked(name: string): boolean; removeItem(name: string): boolean; clearItems(): void; get itemCount(): number; get contentPane(): GComponent; get list(): GList; show(target?: GObject, dir?: PopupDirection, parentMenu?: PopupMenu): void; hide(): void; private __clickItem; private __addedToStage; }