declare type State = T | (() => T); export default function useControlledState(defaultStateValue: State, option?: { value?: State; defaultValue?: State; onChange?: (newValue: T, oldValue?: any) => void; }): [T, (newValue: T) => void]; export {};