import type { Action } from 'svelte/action'; interface PortalOptions { mountElement?: () => Element | null; } /** * An action by default to move the attached element to the end * of the document body, optionally if container node is passed * attach current node element to the container instead. */ export declare const portal: Action; interface EscapeClickDirective { /** Turn on/off listening events (on by default) */ enabled?: boolean; /** Listens element on the global level (body element) */ global?: boolean; handler: (event: KeyboardEvent) => void; } /** * An action that listens for the escape key and dispatches a custom 'esc' * event on the attached element. */ export declare const onEsc: Action; /** * An action that dispatches a custom 'click-outside' event when the user clicks * outside the attached element. */ export declare const onClickOutside: Action void; }>; export {};