import { Dispatch, SetStateAction } from 'react';

type ReturnType<S> = [S, S, Dispatch<SetStateAction<S>>];
declare function useStateDebounced<S>(delay: number, initialState: S | (() => S)): ReturnType<S>;
declare function useStateDebounced<S = undefined>(delay: number): ReturnType<S | undefined>;

export { useStateDebounced };
