import { RetryPolicy, RetryContext } from '@conduit-client/service-retry/v1'; import { CsrfTokenManager } from './token-manager'; /** * Retry policy that handles CSRF token expiration errors. * * When a request fails with a CSRF token error this policy will: * 1. Detect the error condition in shouldRetry * 2. Refresh the CSRF token in prepareRetry hook * 3. Retry the request once (maxRetries = 1) * */ export declare class CsrfTokenRetryPolicy extends RetryPolicy { private csrfTokenManager; constructor(csrfTokenManager: CsrfTokenManager); /** * Determines if a failed request should be retried due to CSRF token issues. */ shouldRetry(result: Response, context: RetryContext): Promise; /** * CSRF token refresh should happen immediately with no delay. */ calculateDelay(_result: Response, _context: RetryContext): Promise; /** * Called by retry service before each retry attempt. * * @param _result - The failed response that triggered the retry (unused, already validated) * @param _context - Current retry context (unused but part of interface) */ prepareRetry(_result: Response, _context: RetryContext): Promise; } //# sourceMappingURL=retry.policy.d.ts.map