import { type SetStateAction } from 'react';
import type { UnknownObject } from './types';
export declare function useWidgetState<T extends UnknownObject>(defaultState: T | (() => T)): readonly [T, (state: SetStateAction<T>) => void];
export declare function useWidgetState<T extends UnknownObject>(defaultState?: T | (() => T | null) | null): readonly [T | null, (state: SetStateAction<T | null>) => void];
//# sourceMappingURL=useWidgetState.d.ts.map