import type { RetryOptions } from './retry'; export interface Logger { debug(title: string, data?: object): void; error(title: string, data?: object): void; info(title: string, data?: object): void; warn(title: string, data?: object): void; } export interface BaseApiRequest { apiKey: string; logger: Logger; signal?: AbortSignal; /** * Applied to request and response bodies before they reach a log line — * the caller knows which of its fields are secret; this transport does not. * The request itself always sends the unredacted body. */ redactBodyForLog?: (body: unknown) => unknown; } export interface BaseRequest extends BaseApiRequest { uri: string; method: 'PUT' | 'DELETE' | 'GET' | 'POST'; retryOptions?: RetryOptions; body?: object; /** * Extra request headers, e.g. `Idempotency-Key`. * - `Content-Type` and `X-Api-Key` are owned by `sendRequest` and win on * conflict, so a caller cannot accidentally break auth or encoding. */ headers?: Record; } export type GetRequest = Omit; export type PostRequest = Omit; export type DeleteRequest = Omit; export type PutRequest = Omit; //# sourceMappingURL=request.d.ts.map