//#region src/web/lib/statusLine.d.ts export interface Selection { /** Empty when the session runs without a profile, which is a valid choice. */ profile: string; preset: string; domains: string[]; /** True while a preset switch is journaled but not yet applied. */ pending: boolean; } export declare const emptySelection: Selection; interface Segment { text: string; rgb: [number, number, number] | null; } /** Splits an ANSI string into runs of text carrying the truecolor in force. */ export declare function ansiSegments(input: string): Segment[]; export declare function stripAnsi(input: string): string; /** * Reads Po's footer status line. * * The line is the only place the session publishes its selection, so this * parses the shape `*profile*:[preset]:domains` structurally and uses the * colour of the preset segment solely to tell a pending switch from a settled one. */ export declare function parseSelection(statusText: string): Selection; //#endregion export {}; //# sourceMappingURL=statusLine.d.mts.map