import { type ResultFailure } from "../../runtime/result.js"; /** * S3 reports errors as a small fixed XML document * (`……`). We extract the two * fields we care about with a narrow tag scan — no XML-parser dependency. */ export type S3ErrorFields = { code: string; message: string; }; /** Best-effort: returns empty fields when the body is not the expected XML. */ export declare function parseS3Error(xmlBody: string): S3ErrorFields; /** Turn a non-2xx S3 response into a coded `failure`. */ export declare function s3ErrorToFailure(status: number, statusText: string, url: string, body: string): ResultFailure;