import { FS_RETRY_MAX_TOTAL_ATTEMPTS } from "./constants/retry.js"; export { FS_RETRY_MAX_TOTAL_ATTEMPTS as MAX_FILESYSTEM_TOTAL_ATTEMPTS }; /** Maximum Veryfront API retries after the initial request. */ export declare const MAX_VERYFRONT_API_RETRIES: number; /** Maximum Veryfront filesystem retries after the initial request. */ export declare const MAX_VERYFRONT_FILESYSTEM_RETRIES: number; /** Maximum GitHub total attempts under its legacy `maxRetries` contract. */ export declare const MAX_GITHUB_FILESYSTEM_ATTEMPTS = 10; /** * A rotation renames at most `maxFiles - 1` files sequentially. This limit * keeps one log entry below 100 rename operations while allowing 20 times the * default five-file retention. */ export declare const MAX_FILE_LOG_FILES = 100; export type FilesystemRetryCountSemantics = "retries-after-initial" | "legacy-total-attempts"; export interface BoundedRetryConfig { readonly maxRetries: number; readonly initialDelay: number; readonly maxDelay: number; } export interface BoundedRetryConfigInput { readonly maxRetries?: number; readonly initialDelay?: number; readonly maxDelay?: number; } export type FilesystemRetryConfig = BoundedRetryConfig; export type FilesystemRetryConfigInput = BoundedRetryConfigInput; /** Defaults shared by public Veryfront API clients and transports. */ export declare const DEFAULT_VERYFRONT_API_RETRY_CONFIG: Readonly; /** Validate and return a backend-specific filesystem retry count. */ export declare function requireFilesystemRetryCount(maxRetries: number, semantics: FilesystemRetryCountSemantics): number; /** * Resolve and defensively validate filesystem retry configuration at direct * adapter-construction boundaries. */ export declare function normalizeFilesystemRetryConfig(input: FilesystemRetryConfigInput | undefined, defaults: FilesystemRetryConfig, semantics: FilesystemRetryCountSemantics): FilesystemRetryConfig; /** * Resolve public Veryfront API retry defaults and enforce the ten-attempt * resource boundary. */ export declare function normalizeVeryfrontApiRetryConfig(input: BoundedRetryConfigInput | undefined, defaults?: BoundedRetryConfig): BoundedRetryConfig; /** Validate a complete retry config at an exported transport boundary. */ export declare function requireVeryfrontApiRetryConfig(config: BoundedRetryConfig): BoundedRetryConfig; /** Convert a backend's historical retry field to its total attempt budget. */ export declare function filesystemTotalAttempts(maxRetries: number, semantics: FilesystemRetryCountSemantics): number; //# sourceMappingURL=config-resource-limits.d.ts.map