import { type SetStateAction } from "react";
/**
 * Hook to manage persistent widget state that survives across ChatGPT sessions.
 * State is stored in the ChatGPT Apps SDK and synced with React state.
 */
export declare function useChatGPTWidgetState<T extends Record<string, unknown>>(defaultState: T | (() => T)): readonly [T, (state: SetStateAction<T>) => void];
export declare function useChatGPTWidgetState<T extends Record<string, unknown>>(defaultState?: T | (() => T | null) | null): readonly [T | null, (state: SetStateAction<T | null>) => void];
//# sourceMappingURL=use-chatgpt-widget-state.d.ts.map