import type { IActionHandle } from "./actions"; /** * Represents the options passable to the [[click_outside]] Svelte Action */ export interface IClickOutsideOptions { /** * Represents the event callback called whenever target element * was clicked outside of its children */ on_click_outside: (event: MouseEvent) => void; } export declare type IClickOutsideAction = IActionHandle; /** * Listens to `click` events in the entire document, calling the passed [[IClickOutsideOptions.on_click_outside]] * callback whenever document element is clicked and is not a child of the targetted element * * @param element * @param options * @returns */ export declare function click_outside(element: HTMLElement, options: IClickOutsideOptions): IClickOutsideAction;