/** * One line for a swallowed failure. Expected absence stays quiet. * The line is one JSON object (the runner's stderr is ndjson, see * src/bin/sync-runner.ts "Channels") carrying its own event type, the stable * event name and the error class or code. It is not an `error` event, so the * menubar and the exit-code rollup do not count it as a sync failure. * The message is never included: it can carry a user-file path. */ export declare const SWALLOWED_ERROR_EVENT_TYPE = "swallowed-error"; export declare function swallowedErrorClass(error: unknown): string; /** * Missing file, missing prefix, or an HTTP/S3 404. ENOTDIR is not absence: * it means a state directory was replaced by a file, which should be seen. */ export declare function isExpectedAbsence(error: unknown): boolean; export declare function noteSwallowedError(log: (line: string) => void, event: string, error: unknown, options?: { quietOnAbsence?: boolean; }): void; //# sourceMappingURL=best-effort-error.d.ts.map