import type { Action } from 'svelte/action'; export type ClickOutsideHandler = (target: Element) => void; /** * Trigger a callback when the user clicks outside the element. * * Use a [Svelte action](https://svelte.dev/docs/svelte-action): * ```svelte * * * * {#if isOpen} *
isOpen.set(false)}> *

Cool modal

*
* {/if} * ``` * * @param node The DOM node the action is attached to. * @param handler The callback to run * @returns The Svelte Action */ export declare const clickOutside: Action;