import type { getProviderHelper } from "../lib/getProviderHelper.js"; import type { InferenceTask, Options, RequestArgs } from "../types.js"; export interface ResponseWrapper { data: T; requestContext: { url: string; info: RequestInit; }; } /** * Primitive to make custom calls to the inference provider */ export declare function innerRequest(args: RequestArgs, providerHelper: ReturnType, options?: Options & { /** In most cases (unless we pass a endpointUrl) we know the task */ task?: InferenceTask; /** Is chat completion compatible */ chatCompletion?: boolean; }): Promise>; /** * Primitive to make custom inference calls that expect server-sent events, and returns the response through a generator */ export declare function innerStreamingRequest(args: RequestArgs, providerHelper: ReturnType, options?: Options & { /** In most cases (unless we pass a endpointUrl) we know the task */ task?: InferenceTask; /** Is chat completion compatible */ chatCompletion?: boolean; }): AsyncGenerator; //# sourceMappingURL=request.d.ts.map