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