/** * Svelte action that reparents a node to `document.body` while it is mounted. * * Use this on overlay elements (`position: fixed`) so they escape any * ancestor that creates a containing block for fixed descendants — most * notably `transform`, `filter`, `backdrop-filter`, `perspective`, and * `will-change` on those properties. Without a portal, the overlay is * positioned relative to that ancestor instead of the viewport, so it can * appear clipped or nested inside a Card. * * The action restores the node to its original parent on destroy. * * @example * {#if open} *
* {/if} */ export function portal(node: any): { destroy(): void; };