climb-onyx-gui
Version:
Onyx Graphical User Interface
8 lines (6 loc) • 646 B
TypeScript
import { OnyxProps } from '../interfaces';
export declare function useDebouncedValue<T>(inputValue: T, delay: number): T;
export declare const useDelayedValue: (delay?: number) => boolean;
export declare const useCyclicValue: (start: number, end: number, pause?: number) => number;
export declare const useQueryRefresh: (refresh: number | null, dataUpdatedAt: number, errorUpdatedAt: number, refetch: () => void, setLastUpdated: (lastUpdated: string | null) => void) => void;
export declare function usePersistedState<T>(props: OnyxProps, key: string, initialValue: T): readonly [T, import('react').Dispatch<import('react').SetStateAction<T>>];