export interface DecodedBinaryString { bytes: Uint8Array; mime?: string; encoding: 'base64' | 'data-url'; } /** Encode bytes as unprefixed base64 for storage or an enclosing data URL. */ export declare function encodeBytesAsBase64(bytes: Uint8Array): string; /** Encode bytes as the JSON wire representation for a binary protocol field. */ export declare function encodeBytesAsDataUrl(bytes: Uint8Array, mime?: string): string; /** Decode an unprefixed base64 string or base64 data URL into semantic bytes. */ export declare function decodeBinaryString(value: string): DecodedBinaryString; /** Whether a string is a valid unprefixed base64 value or base64 data URL. */ export declare function isEncodedBinaryString(value: string): boolean; //# sourceMappingURL=binary.d.ts.map