import { Foxact } from '../types/index.js'; interface ProviderProps { initialState?: T | (() => T); } /** @see https://foxact.skk.moe/context-state */ declare function createContextState(initialState: T): [ Provider: React.ComponentType, useValue: () => T, useSetValue: () => React.Dispatch>, StateContext: React.Context ]; declare function createContextState(initialState: T): [ Provider: React.ComponentType>>, useValue: () => T, useSetValue: () => React.Dispatch>, StateContext: React.Context ]; declare function createContextState(): [ Provider: React.ComponentType>>>, useValue: () => T, useSetValue: () => React.Dispatch>, StateContext: React.Context ]; export { createContextState }; export type { ProviderProps };