/** * handlers/flac.ts — FLAC handler * * FLAC files start with "fLaC" and a series of metadata blocks before audio frames. * We embed in a VORBIS_COMMENT block (block type 4) using a standard key=value pair: * MAJIK-SIGNATURE= * * FLAC metadata block header: * [1B: last-block flag (7) | block_type (7)][3B: block_length] * * VORBIS_COMMENT format (all LE): * [4B vendor_length][vendor_string] * [4B comment_count] * [4B comment_length][comment_utf8] × comment_count */ import { FormatHandler } from "../../types"; export declare class FlacHandler implements FormatHandler { readonly name = "FLAC"; readonly supportedMimeTypes: readonly ["audio/flac", "audio/x-flac"]; canHandle(bytes: Uint8Array, mimeType?: string): boolean; embed(bytes: Uint8Array, signatureJson: string): Promise; extract(bytes: Uint8Array): Promise; strip(bytes: Uint8Array): Promise; private _parseBlocks; private _serializeBlocks; private _buildVorbisComment; private _serializeVorbisComment; private _readVorbisComment; }