/** * TLS material for mutual TLS authentication */ export interface MtlsOptions { /** PEM-encoded client certificate */ cert: string; /** PEM-encoded client private key */ key: string; /** PEM-encoded CA certificate (replaces system trust store) */ ca: string; } /** * Creates a fetch function that performs mutual TLS authentication. * * The returned function has the standard `typeof fetch` signature and can be * injected into the generated API client via its `fetch` config option. * * Internally it creates an undici Agent with the provided TLS material and * uses it as the dispatcher for every request. The agent is created once * and reused across all requests, keeping connections pooled. * * @param options - TLS certificate material * @returns A fetch-compatible function that presents client certs on TLS handshake */ export declare function createMtlsFetch(options: MtlsOptions): typeof fetch;