/** * HTTP Client * * Pluggable HTTP client with GNAP authentication integration. * Uses the native fetch API with support for auth header injection * and HTTP message signatures. */ import type { HttpClient, HttpRequest, HttpResponse, AuthProvider, GnapAuthConfig } from './types.js'; export declare class FetchHttpClient implements HttpClient { private authProvider?; constructor(authProvider?: AuthProvider); execute(request: HttpRequest): Promise; } /** * Auth provider that integrates with @flarcos/kiota-authentication-gnap * for GNAP token management and HTTP message signatures. */ export declare class GnapAuthProvider implements AuthProvider { private tokens; private config; constructor(config: GnapAuthConfig); /** * Set the access token for a specific source/context. */ setToken(sourceName: string, token: string): void; /** * Set token by operation type for convenience. */ setTokenForOperation(operationPrefix: string, token: string): void; getAuthHeader(sourceName: string, _operationId: string): Promise; signRequest(request: HttpRequest): Promise; /** * Get the GNAP client wallet address for grant requests. */ getClientWalletAddress(): string; } /** * Simple auth provider that uses static bearer tokens. * Useful for testing or when tokens are managed externally. */ export declare class BearerAuthProvider implements AuthProvider { private tokens; constructor(defaultToken?: string); setToken(sourceName: string, token: string): void; getAuthHeader(sourceName: string, _operationId: string): Promise; } //# sourceMappingURL=http-client.d.ts.map