export type PortalParams = {
target: HTMLElement;
onMount?: () => void;
onUpdate?: () => void;
};
export declare function portal(node: HTMLElement, { target, onMount, onUpdate }: PortalParams): {
destroy(): void;
update(target?: HTMLElement): void;
};