type TComparotor = (a: T, b: T) => boolean; type INextState = T | ((prevState: T) => T); export declare function useSyncValue(defaultValue: T, comparotor?: TComparotor): [T, (nextState: INextState) => void]; export {};