import { Future, Optional } from '@ephox/katamari'; import type { LazySink } from '../api/component/CommonTypes'; import type { AlloyComponent } from '../api/component/ComponentApi'; import type { AlloySpec } from '../api/component/SpecTypes'; import { type TieredData } from '../api/ui/TieredMenu'; import type { CommonDropdownDetail } from '../ui/types/DropdownTypes'; import type { HighlightOnOpen } from '../ui/types/TieredMenuTypes'; type OnOpenSyncFunc = (sandbox: AlloyComponent) => void; type MapFetch = (tdata: Optional) => Optional; export interface SandboxExtras { onClose?: (component: AlloyComponent, menu: AlloyComponent) => void; onOpen?: (component: AlloyComponent, menu: AlloyComponent) => void; } declare const open: (detail: CommonDropdownDetail, mapFetch: MapFetch, hotspot: AlloyComponent, sandbox: AlloyComponent, externals: any, onOpenSync: OnOpenSyncFunc, highlightOnOpen: HighlightOnOpen) => Future; declare const togglePopup: (detail: CommonDropdownDetail, mapFetch: MapFetch, hotspot: AlloyComponent, externals: any, onOpenSync: OnOpenSyncFunc, highlightOnOpen: HighlightOnOpen) => Future; interface SinkDetail { uid: string; lazySink: Optional; } declare const getSink: (anyInSystem: AlloyComponent, sinkDetail: SinkDetail) => () => ReturnType; declare const makeSandbox: (detail: CommonDropdownDetail, hotspot: AlloyComponent, extras?: SandboxExtras) => AlloySpec; declare const repositionMenus: (comp: AlloyComponent) => void; export { makeSandbox, togglePopup, open, repositionMenus, getSink }; //# sourceMappingURL=DropdownUtils.d.ts.map