/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * How the paging runtime reads what a fetch threw: which server errors no retry * can fix while the dataset holds the same content, which say the dataset has * no value, the reason a failed read throws, and how long a read that failed * waits before it is fetched again. * * @packageDocumentation */ import type { TreePath } from "@elaraai/e3-types"; /** Minimum gap between retries of a read whose fetch failed. */ export declare const RETRY_AFTER_MS = 2000; /** Server error codes that say the dataset has no value, so the source has no * snapshot until one lands. */ export declare const NO_VALUE_ERRORS: Set; /** A caught error's server code, when it carries one. */ export declare function errorCode(err: unknown): string | undefined; /** Whether a caught fetch error is one no retry can fix. */ export declare function isPermanentPageError(err: unknown): boolean; /** What a failed read throws: the server's code and message, or the error's own. */ export declare function failureOf(path: TreePath, err: unknown): string; //# sourceMappingURL=errors.d.ts.map