import { AppError } from '../errors/index.js'; export interface SdkResponse { data: T | null; error: AppError | null; status: number; /** Throw the error if present, otherwise return { data, status } with non-null data. */ throwOnError(): { data: T; status: number; }; } export declare function createErrorResponse(error: AppError, status?: number): SdkResponse; export type AuthStrategy = { type: 'bearer'; token: string | (() => Promise); } | { type: 'apiKey'; key: string; } | { type: 'cookie'; }; export interface HttpClientConfig { baseUrl: string; auth?: AuthStrategy; headers?: Record; timeout?: number; } export declare class HttpClient { private config; constructor(config: HttpClientConfig); private getAuthHeaders; request(method: string, path: string, options?: { body?: unknown; params?: Record; headers?: Record; }): Promise>; get(path: string, params?: Record): Promise>; post(path: string, body?: unknown): Promise>; patch(path: string, body?: unknown): Promise>; delete(path: string): Promise>; } //# sourceMappingURL=http-transport.d.ts.map