import type { Message } from "@earendil-works/pi-ai/compat";
import type { NumberedRegion } from "./compaction-types.js";
export declare const FILTERED_MARKER_RE: RegExp;
export declare const LINE_NUMBER_SEPARATOR = "\u2192";
export declare const ROLE_HEADER_RE: RegExp;
export declare function filteredMarker(lineCount: number): string;
/** Serialize provider messages using the durable verbatim-compaction section grammar. */
export declare function serializeConversationForCompaction(messages: Message[]): string;
export declare function createNumberedRegion(text: string, protectedLineNumbers?: ReadonlySet<number>): NumberedRegion;
export declare function numberRegionLines(region: NumberedRegion, start?: number, end?: number): string;
//# sourceMappingURL=transcript-serialization.d.ts.map