import { z } from 'zod'; import { type InternalOrigin } from './origin.js'; import { type Camelize } from './casing.js'; export interface ClientOptions { apiKey: string; baseUrl?: string; retryPolicy?: RetryPolicyInput; } export interface RequestOptions { headers?: Record; schema?: z.ZodType; } export interface RetryPolicy { maxRetries: number; backoffMs: number; backoffMultiplier: number; jitter: boolean; retryOn: number[]; } export type RetryPolicyInput = Partial> & { retryOn?: number[]; }; type OriginCapableOptions = { apiKey?: string; baseUrl?: string; }; export declare function withInternalOrigin(options: T, origin: InternalOrigin): T; export { RelayError } from './errors.js'; export declare class HttpClient { private _apiKey; private _baseUrl; private _originSurface; private _originClient; private _originVersion; private _retryPolicy; constructor(options: ClientOptions); get apiKey(): string; get baseUrl(): string; get originSurface(): string; get originClient(): string; get originVersion(): string; get retryPolicy(): RetryPolicy; withApiKey(apiKey: string): HttpClient; request(method: string, path: string, body?: unknown, query?: Record, options?: RequestOptions): Promise>; get(path: string, query?: Record, options?: RequestOptions): Promise>; post(path: string, body?: unknown, options?: RequestOptions): Promise>; patch(path: string, body?: unknown, options?: RequestOptions): Promise>; put(path: string, body?: unknown, options?: RequestOptions): Promise>; delete(path: string, options?: RequestOptions): Promise; } //# sourceMappingURL=client.d.ts.map