import { ReactElement } from "react"; import { Portal as Portal$1, PortalHandler } from "@pastweb/tools"; //#region src/portals/types.d.ts type Portal = Omit & { open: (component: ReactElement | null, props?: Record | (() => Record), defaults?: Record) => string | false; }; type PortalFunction = ((component: ReactElement | null, props?: Record | (() => Record), defaults?: Record) => PortalHandler) & { update: (entryId: string, props: Record) => boolean; close: (entryId: string) => void; remove: (entryId: string) => boolean; getEntryId: () => string; removeEntryId: (id: string) => void; }; interface PortalsDescriptor { [pathName: string]: Portal | PortalsDescriptor | PortalFunction; } //#endregion export { Portal, PortalFunction, PortalsDescriptor }; //# sourceMappingURL=types.d.ts.map