/** * Phase C8 — HTTP transport for the TagadaPay SDK. * * Talks to `/api/tagadapay/v1/*` on the Hub (or any deployment that * exposes the same routes). Authentication is a bearer token stored * in `tp_api_keys`. * * Keep this file free of any node-only deps so it can run in any JS * runtime (Node, edge, Deno, browser). We rely on global `fetch` only. */ import type { ClientTransport } from './client.js'; export interface HttpTransportConfig { /** Secret API key — must start with tp_sk_live_/tp_sk_test_. */ apiKey: string; /** Base URL of the Hub deployment exposing /api/tagadapay/v1. */ baseUrl: string; /** API pinned version — sent as `TagadaPay-Version`. */ apiVersion?: string; /** Pluggable fetch (tests). Defaults to global fetch. */ fetchImpl?: typeof fetch; } export declare function createHttpTransport(config: HttpTransportConfig): ClientTransport; export declare class TagadaPayApiError extends Error { code: string; statusCode: number; constructor(code: string, message: string, statusCode: number); } //# sourceMappingURL=httpTransport.d.ts.map