*
* @param {HTMLElement} el
* @param {HTMLElement|string} target DOM Element or CSS Selector
*/
export function portal(el: HTMLElement, target?: HTMLElement | string): {
update: (newTarget: any) => Promise
;
destroy: () => void;
};
/** @typedef {typeof __propDef.props} PortalProps */
/** @typedef {typeof __propDef.events} PortalEvents */
/** @typedef {typeof __propDef.slots} PortalSlots */
export default class Portal extends SvelteComponentTyped<{
target?: string | HTMLElement | undefined;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export type PortalProps = typeof __propDef.props;
export type PortalEvents = typeof __propDef.events;
export type PortalSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
target?: string | HTMLElement | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
export {};