import { a as StyledChar } from "./tokenize-Dx1y_l5H.js"; import { i as Cell, t as ColorProfile } from "./color-profile-CyeHnG1T.js"; import { n as Screen, t as Line } from "./screen-CgC2WlVM.js"; //#region src/screen/ansi.d.ts /** Converts the renderer's canonical ANSI state into backend-neutral cells. */ declare function cellsFromAnsi(text: string): Cell[]; declare function cellFromStyledChar(character: StyledChar, width?: number): Cell; //#endregion //#region src/screen/serialize.d.ts type SerializeOptions = { readonly colorProfile: ColorProfile; readonly trimEnd?: boolean; readonly styles?: boolean; }; /** Serializes one structured cell run with minimal style transitions. */ declare function serializeLine(line: Line, options: SerializeOptions): string; declare function serializeScreen(screen: Screen, options: SerializeOptions): string; /** Converts a semantic cell to the canonical ANSI compatibility style state. */ declare function styledCharFromCell(cell: Cell, profile: ColorProfile, styles?: boolean): StyledChar; //#endregion export { cellFromStyledChar as a, styledCharFromCell as i, serializeLine as n, cellsFromAnsi as o, serializeScreen as r, SerializeOptions as t };