import type { Attachment } from 'svelte/attachments'; /** * Second click on a popover invoker must close it. * * `popover="auto"` light-dismisses when the trigger (outside the panel) is * clicked, then `popovertargetaction="toggle"` / a custom `onclick` opens it * again. Remember "was open" on pointerdown and cancel that reopen. */ export declare function bindPopoverInvokerToggle(trigger: HTMLElement, getPanel: () => HTMLElement | null | undefined): () => void; /** `{@attach popoverInvokerToggle(() => panelEl)}` on a popover invoker button. */ export declare function popoverInvokerToggle(getPanel: () => HTMLElement | null | undefined): Attachment;