/** * Fires callback when clicking outside the node. */ export declare function clickOutside(node: HTMLElement, callback: () => void): { update(newCallback: () => void): void; destroy(): void; }; export interface ShortcutParams { key: string; ctrl?: boolean; shift?: boolean; alt?: boolean; action: () => void; } /** * Fires action on keyboard shortcut. */ export declare function shortcut(_node: HTMLElement, params: ShortcutParams): { update(newParams: ShortcutParams): void; destroy(): void; }; /** * Fires callback when element enters the viewport (infinite scroll sentinel). */ export declare function intersect(node: HTMLElement, callback: () => void): { update(newCallback: () => void): void; destroy(): void; }; /** * Copies text content to clipboard on click. */ export declare function copyOnClick(node: HTMLElement, text?: string): { update(newText: string): void; destroy(): void; };