import type { AsciiProfile, ColorMode } from './types.js'; import { AsciiFrame } from './frame.js'; export declare const FRAME_FORMAT_VERSION = 1; /** Serialize a frame to asciif/1 bytes (ALGORITHM.md ยง15). SoA/channel-planar. */ export declare function encodeFrame(frame: AsciiFrame): Uint8Array; export interface FrameMeta { columns: number; rows: number; colorMode: ColorMode; profileFingerprint: string; profileId?: string; } /** Read frame header/metadata without needing the profile. */ export declare function peekFrame(bytes: Uint8Array): FrameMeta; /** Decode asciif/1 bytes against the profile it was built with. */ export declare function decodeFrame(bytes: Uint8Array, profile: AsciiProfile): AsciiFrame;