import { ModalController } from './ModalController'; import { ModalWindow } from './ModalWindow'; import { ModalComponent, ModalSnapshot } from './types'; /** * Used inside a modal component to access the modal context (`ModalWindow`). * * Accepts a generic type that is used to infer the props of the modal component. * It has 3 overloads: * 1. `useModalWindow()` - infers the props from the class component type. * 2. `useModalWindow()` - infers the props from the function component type. * 3. `useModalWindow<{ c: 3 }>()` - you can enter props by yourself too. */ export declare function useModalWindow(): ModalWindow ? Props : T>; /** * Shorthand for `useSyncExternalStore`. */ export declare function useModalSnapshot(controller: ModalController): ModalSnapshot;