import React from 'react'; export declare const PORTAL_ID = "ui-kit-portal"; export type State = { readonly isOpen: boolean; readonly isMounted: boolean; readonly destroyTimeout: number; readonly onRequestClose: (event: React.MouseEvent | KeyboardEvent) => void; readonly closeOnEscape: boolean; readonly closeOnOverlayClick: boolean; }; export type Context = { readonly state: State; readonly dispatch: React.Dispatch; }; export type ActionSetState = { readonly type: 'setState'; readonly payload: Partial; }; export type Action = ActionSetState; export declare const defaultState: State; export declare const actionSetState: (payload: ActionSetState['payload']) => ActionSetState; export interface ContextProviderProps { readonly children: React.ReactNode | readonly React.ReactNode[]; readonly initialState: Omit; } export declare const ContextProvider: React.FC; export declare const useContext: () => { state: State; dispatch: React.Dispatch; };