import { PortalHandler } from "@pastweb/tools"; //#region src/portals/usePortal/usePortal.d.ts /** * Creates the client-side handler consumed by {@link Portal}. * * The handler can be used immediately. Calls made before the matching * `Portal` finishes wiring itself are replayed when it becomes ready. * * @returns A tools `PortalHandler` extended with the internal readiness hook. * * @example * ```tsx * const modal = usePortal(); * * return ( * <> * * * * * * ); * ``` */ declare function usePortal(): PortalHandler & { isReady: () => void; }; //#endregion export { usePortal }; //# sourceMappingURL=usePortal.d.ts.map