import type { RPC } from "../client/rpc";
import type { UrlParser } from "../client/types";
import type { ApiRouterHandler } from "../http/ApiRouter";
type GetRPC = {
    [K in keyof RPC as K extends `GET:${infer P}` ? P : never]: RPC[K];
};
type Data<T extends keyof GetRPC> = GetRPC[T] extends ApiRouterHandler<any, infer Data, any> ? Awaited<Data> : never;
export declare class Query {
    private static prepare;
    static instant<T extends keyof GetRPC>(path: T, ...args: [
        options?: {
            search?: Record<string, string | number | boolean | null>;
            params?: Partial<UrlParser<T>>;
        }
    ]): Promise<Data<T>>;
    static prefetch<T extends keyof GetRPC>(path: T, ...args: [
        options?: {
            search?: Record<string, string | number | boolean | null>;
            params?: Partial<UrlParser<T>>;
        }
    ]): void;
}
export {};
//# sourceMappingURL=Prefetch.d.ts.map