import { FetchService } from '@conduit-client/service-fetch-network/v1'; import { RetryInterceptorConfig } from './csrf/retry.interceptor'; import { CsrfTokenManager } from './csrf/token-manager'; interface CsrfConfig extends RetryInterceptorConfig { endpoint: string; cacheName: string; } export interface FetchConfig { csrf: CsrfConfig; } /** * Module-level registry so all SDK instances sharing the same CSRF endpoint * share one CsrfTokenManager — one tokenPromise, one network fetch per lifecycle. * Exported for test isolation only; not part of the public API. */ export declare const tokenManagerRegistry: Map; /** * Creates an enhanced fetch function with automatic CSRF token handling. * The returned function automatically adds CSRF tokens to protected requests * and handles token refresh when tokens become invalid. * * @param config - Optional configuration for CSRF handling * @returns An enhanced fetch function that handles CSRF protection */ export declare function createFetchService(config: FetchConfig): FetchService; export {}; //# sourceMappingURL=fetch.d.ts.map