import { type Dispatch } from 'react'; import { type NextState } from '../../util/resolve-hook-state'; type MediatedStateResult = [State, Dispatch>]; type MediatedStateResultWithUndefined = [ State | undefined, Dispatch> ]; type MediatedStateResultWithMediator = [ State, Dispatch> ]; export type InitialState = State | (() => State); export declare function useMediatedState(): MediatedStateResultWithUndefined; export declare function useMediatedState(initialState: InitialState): MediatedStateResult; export declare function useMediatedState(initialState: InitialState, mediator: (rawNextState: RawState) => State): MediatedStateResultWithMediator; export {};