import type { IMastraLogger } from '@mastra/core/logger';
export declare class AuthFailureError extends Error {
    readonly status: number;
    constructor(status: number, cause?: unknown);
}
export declare function isAuthFailureError(error: unknown): error is AuthFailureError;
export declare function fetchWithAuthFailureHandling(url: string, options: RequestInit, maxRetries: number): Promise<void>;
export declare class AuthFailureCooldown {
    private readonly exporterName;
    private readonly getLogger;
    private failureCount;
    private cooldownUntilMs;
    private droppedEventsDuringCooldown;
    constructor(exporterName: string, getLogger: () => IMastraLogger);
    private shouldDropEvents;
    dropEventIfCoolingDown(): boolean;
    dropEventsIfCoolingDown(count: number): boolean;
    reset(): number;
    recordFailure(args: {
        status: number;
        failedSignals: string[];
        droppedBatchSize: number;
    }): void;
}
//# sourceMappingURL=auth-failure-cooldown.d.ts.map