import type { DeferredFunction } from "../index"; export type UseDeferRoute = [ execute: (...args: ARA extends true ? any : A) => void, state: { loading: boolean; result: R; error?: Error | undefined; } ]; export declare const useDeferRoute: = any, F extends (...args: any[]) => Promise = DFR extends DeferredFunction ? RR : any, HP extends boolean = false, R = ReturnType extends Promise ? RR_1 : ReturnType, A extends any[] = Parameters>(routePath: string, { refreshInterval }?: { hasProxy: HP; refreshInterval: number; }) => UseDeferRoute;