export interface MockFetchResponse { ok: boolean; status: number; statusText?: string; headers?: { get: (name: string) => string | null; }; json?: () => Promise; text?: () => Promise; } type FetchHandler = (url: string, options?: RequestInit) => Promise; /** * Creates a mock fetch function */ export declare function createMockFetch(handler: FetchHandler): import("vitest").Mock; /** * Creates a mock fetch that returns a successful JSON response */ export declare function createSuccessFetch(data: unknown): ReturnType; /** * Creates a mock fetch that returns an error response */ export declare function createErrorFetch(status: number, statusText?: string, body?: string): ReturnType; /** * Creates a mock fetch that fails with a network error */ export declare function createNetworkErrorFetch(message?: string): ReturnType; /** * Creates a mock fetch that returns different responses based on call count */ export declare function createSequentialFetch(responses: MockFetchResponse[]): ReturnType; /** * Creates Ollama-style embedding response (legacy single embedding) */ export declare function createOllamaEmbeddingResponse(embedding: number[]): MockFetchResponse; /** * Creates Ollama-style batch embedding response (/api/embed) */ export declare function createOllamaBatchEmbeddingResponse(embeddings: number[][]): MockFetchResponse; /** * Creates Gemini-style single embedding response (embedContent) */ export declare function createGeminiEmbeddingResponse(embedding: number[]): MockFetchResponse; /** * Creates Gemini-style batch embedding response (batchEmbedContents) */ export declare function createGeminiBatchEmbeddingResponse(embeddings: number[][]): MockFetchResponse; export {}; //# sourceMappingURL=fetch.mock.d.ts.map