import { type ReactNode } from "react"; import type { OverlayHost } from "./portal.js"; /** * Inside a card that paints in its window's layer, the provider that card is placed * in (its frame). The card's subtree renders in the layer's outlet, so the nearest * provider there is the layer; a card opened from inside it reads its frame here * instead, and is placed, clamped and capped by the same frame. Null elsewhere. */ export declare const OverlayFrameContext: import("react").Context; /** Record `host`'s place in a window: inside `parent`'s layer, or a layer of its own. */ export declare function registerOverlayLayer(host: OverlayHost, parent: OverlayHost | null): void; /** The outermost host in `host`'s native window (the host itself at a window's root). */ export declare function overlayLayerOf(host: OverlayHost): OverlayHost; /** * Publish `children` into `host`'s outlet for as long as the caller is mounted. The * public Portal passes its nearest host; AnchoredOverlay passes the layer it paints in. * A null host publishes nothing. */ export declare function usePortalMount(host: OverlayHost | null, children: ReactNode): void; /** Publish `children` into a given host's outlet; renders nothing in place. */ export declare function PortalInto({ host, children }: { host: OverlayHost; children: ReactNode; }): null; //# sourceMappingURL=overlay-layer.d.ts.map