export type Updater = (prev: State) => State; /** * Execute code before next frame but async */ export declare function useLayoutState(defaultState: State): [State, (updater: Updater) => void]; /** Lock frame, when frame pass reset the lock. */ export declare function useTimeoutLock(defaultState?: State): [(state: State) => void, () => State | null];