import type { AnyRouter, RouterClient } from '@orpc/server'; export declare const OPERATION_ID_HEADER = "x-bunderstack-operation-id"; export type Fetch = (input: RequestInfo | URL, init?: RequestInit) => Promise; export type ClientOptions = { baseUrl?: string; fetch?: Fetch; headers?: HeadersInit | (() => HeadersInit | Promise); }; export type CallOptions = { signal?: AbortSignal; lastEventId?: string; operationId?: string; headers?: HeadersInit; }; export type ClientCarrier = { api: AnyRouter; buckets: string; }; export type AnyBunderstackApp = { $inferClient?: ClientCarrier | undefined; }; export type InferApiRouter = NonNullable['api']; type RpcContext = { operationId?: string; headers?: HeadersInit; }; type AdaptCallArgs = { [K in keyof TArgs]: K extends 1 | '1' ? CallOptions : TArgs[K]; }; export type DirectClient = T extends (...args: infer TArgs) => infer TResult ? (...args: AdaptCallArgs) => TResult : { [K in keyof T]: DirectClient; }; export type RpcClient = DirectClient>; export type BunderstackClient = RpcClient>; export declare function createRpcClient(options?: ClientOptions): RpcClient; export declare function createClient(options?: ClientOptions): BunderstackClient; export {}; //# sourceMappingURL=rpc-client.d.ts.map