import type { PropsWithChildren } from 'react'; import React from 'react'; export type ModalContextValue = { close: () => void; dialogId?: string; }; export declare const ModalContext: React.Context; export declare const ModalContextProvider: ({ children, value, }: PropsWithChildren<{ value: ModalContextValue; }>) => import("react/jsx-runtime").JSX.Element; /** * Works outside a modal: `Alert`, `Prompt` and `Viewer` are usable standalone, reading only * `dialogId` for aria wiring, and get a no-op `close`. */ export declare const useModalContext: () => ModalContextValue; //# sourceMappingURL=ModalContext.d.ts.map