import type { Logger, ErrorHandler, Response, TestClientOptions } from './types.js'; export declare class TestClient { private options; private logger; private refreshingPromise; /** URL path prefix from baseUrl (e.g. '/mall'), used for HMAC signing to match server-side request.url */ private signPrefix; constructor(options: TestClientOptions); /** Convenience: construct from a fixed credential. */ static withCredential(baseUrl: string, appKey: string, appSecret: string, logger?: boolean | Logger): TestClient; get(path: string, error?: ErrorHandler): Promise; post(path: string, body?: unknown, error?: ErrorHandler): Promise; put(path: string, body?: unknown, error?: ErrorHandler): Promise; delete(path: string, error?: ErrorHandler): Promise; /** Upload a file with JSON metadata. jsonBody is signed; file is attached as multipart. */ upload(path: string, jsonBody: Record, file: { data: Buffer | Uint8Array; filename: string; mimetype?: string; }, error?: ErrorHandler): Promise; /** Download a file. Returns blob response. */ blob(path: string): Promise>; /** POST that returns a blob response (e.g. file download with body params). */ postBlob(path: string, data?: unknown): Promise>; private request; private executeWithError; private retryWithFreshCredential; private dispatchError; private logReq; private logRes; private logErr; } export declare function createTestClient(options: TestClientOptions): TestClient; //# sourceMappingURL=TestClient.d.ts.map