type UseControllableStateParams = { prop?: T; defaultProp: T; onChange?: (next: T) => void; }; type SetStateAction = T | ((prev: T) => T); export declare function useControllableState({ prop, defaultProp, onChange, }: UseControllableStateParams): readonly [ T, (next: SetStateAction) => void ]; export {};