import type { Ref } from 'vue'; import type { IConfig } from 'swrv'; import type { IKey, fetcherFn } from 'swrv/dist/types'; import type { SwrvState } from '../../types'; export default function useUtilities(): { useRequest: (key: IKey, fn?: fetcherFn, config?: IConfig) => { data: import("vue").ComputedRef; response: Ref; error: Ref; isValidating: Ref; isLoading: Ref; revalidate: (data?: fetcherFn | undefined, opts?: import("swrv/dist/types").revalidateOptions) => Promise; }; useDebounce: any>(fn: F, defaultDelay?: number) => { debouncedFn: (...args: Parameters) => void; generateDebouncedFn: (delay: number) => (...args: Parameters) => void; }; clientSideSorter: (key: string, previousKey: string, sortOrder: string, items: Array>) => { previousKey: string; sortOrder: string; }; useSwrvState: (response: Ref, error: Ref, isValidating: Ref) => { hasData: Ref; state: Ref; swrvState: { readonly VALIDATING: "VALIDATING"; readonly VALIDATING_HAS_DATA: "VALIDATING_HAS_DATA"; readonly PENDING: "PENDING"; readonly SUCCESS: "SUCCESS"; readonly SUCCESS_HAS_DATA: "SUCCESS_HAS_DATA"; readonly ERROR: "ERROR"; readonly STALE_IF_ERROR: "STALE_IF_ERROR"; }; }; cloneDeep: (val: Record) => any; stripRequiredLabel: (label: string, required: boolean) => string; };