import * as React from 'react'; import type { PortalLayerRoot } from '../contracts/preferences.js'; export interface PortalRootState { /** The element that owns the layer roots (the portal root itself). */ root: HTMLElement | null; } export declare const PortalRootContext: React.Context; export declare const queryLayerRoot: (host: HTMLElement | Document | null, name: PortalLayerRoot) => HTMLElement | null; export declare const findPortalRoot: (doc: Document | null) => HTMLElement | null; /** S-23 (REQ-FIN-07): the single usePortalContainer implementation (`src/foundation/portal.ts` re-exports it). Returns the provider's `[data-ag-layer-root=]`, resolved during render once the provider has published its portal root, or `null` when no provider is mounted (and on the server). Consumers decide what `null` means for their portal. */ export declare function usePortalContainer(root?: PortalLayerRoot): HTMLElement | null; //# sourceMappingURL=portal.d.ts.map