import { M as MeliClient } from './client-CQBMd2Qk.cjs'; import 'zod'; interface MockRequestSnapshot { method: string; url: string; headers: Record; body: unknown; } interface MockResponse { status: number; body?: unknown; headers?: Record; } type MockHandler = (req: MockRequestSnapshot) => MockResponse | Promise; interface MockFetchBuilder { /** Match exact method+pathname. */ on(method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", pathname: string, handler: MockHandler): MockFetchBuilder; /** Match a regex against pathname. */ onRegex(method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", pattern: RegExp, handler: MockHandler): MockFetchBuilder; /** Catch-all fallback (defaults to 404). */ fallback(handler: MockHandler): MockFetchBuilder; /** Return the mock fetch fn + a recorder of all requests received. */ build(): MockFetch; } interface MockFetch { fetch: typeof fetch; /** All requests received, in order. */ requests: MockRequestSnapshot[]; } declare function mockFetch(): MockFetchBuilder; interface MakeMeliClientOptions { /** Mock fetch implementation. */ fetch: typeof fetch; /** Access token to embed (sent as `Bearer `). Defaults to "test_token". */ accessToken?: string; /** Override base URL (the mock fetch can ignore the host but we set one for url-building). */ baseUrl?: string; /** Skip Zod response validation (useful when fixtures are minimal). */ skipResponseValidation?: boolean; } declare function makeMeliClient(opts: MakeMeliClientOptions): MeliClient; export { type MakeMeliClientOptions, type MockFetch, type MockFetchBuilder, type MockHandler, type MockRequestSnapshot, type MockResponse, makeMeliClient, mockFetch };