import type { Dispatch, StateUpdater } from 'preact/hooks'; export declare function useDebouncedState(wait: number): [T | undefined, Dispatch>]; export declare function useDebouncedState(wait: number, initialState?: T | (() => T)): [T, Dispatch>];