/** Wire/storage encoding for published files. */ export type RestContentEncoding = 'br' | 'gzip' | 'none'; /** An encoded file body plus the HTTP Content-Encoding it should be served with. */ export interface EncodedBody { /** Encoded bytes written to the object store. */ body: Uint8Array; /** HTTP content-encoding metadata matching the encoded body. */ contentEncoding?: 'br' | 'gzip'; } /** * Encodes a JSON string for storage. Bodies are pre-compressed at write time and stored * with the matching Content-Encoding so HTTP clients decompress transparently — keys keep * their .JSON extension and Content-Type stays application/json. */ export declare function encodeBody(json: string, encoding: RestContentEncoding): EncodedBody; /** Decodes a stored body back to its JSON string using the object's Content-Encoding. */ export declare function decodeBody(body: Uint8Array, contentEncoding?: string): string; //# sourceMappingURL=encoding.d.ts.map