import { Installer } from "../../GlobalContext/types.cjs"; import { PortalsOptions } from "./types.cjs"; //#region src/portals/installPortals/installPortals.d.ts /** * Creates a {@link GlobalContext} installer for the React portal helpers. * * The installer exposes the portal descriptor and the anchor ids created by * `@pastweb/tools`. Components can then read them with {@link usePortals}, * {@link usePortalAnchors}, and {@link Portal}. * * @param options - Portal anchors, entry factory, and optional caches. * @returns An installer accepted by `GlobalContext` through its `use` prop. * * @example * ```tsx * const installPortalContext = installPortals({ * anchorsIds: { modal: 'modal-root' }, * getEntry: (props, component) => createEntry({ entry: () => component }), * }); * * * * * ``` */ declare function installPortals(options: PortalsOptions): Installer; //#endregion export { installPortals }; //# sourceMappingURL=installPortals.d.cts.map