import type { Theme } from "../../theme.js"; import type { ToolStatusEntry } from "../types.js"; export type WrappedTextLine = { text: string; copyText: string; continuesOnNextLine?: boolean; }; export declare function sanitizeText(text: string): string; export declare function alertIconPrefixLength(text: string): number | undefined; export declare function normalizePastedTextForDuplicateKey(text: string): string; export declare function shortHash(text: string): string; export declare function hasLspDiagnosticsAfterMutation(output: string): boolean; export declare function hasToolLspDiagnosticsAfterMutation(entry: ToolStatusEntry): boolean; export declare function lspDiagnosticSeverityForLine(line: string): "error" | "warning" | "hint" | undefined; export declare function toolLspDiagnosticsAfterMutationSeverity(entry: ToolStatusEntry): "error" | "warning" | undefined; export declare function toolStatusIcon(entry: ToolStatusEntry): string; export declare function toolStatusIconColor(entry: ToolStatusEntry, colors: Theme["colors"]): string; export declare function wrapLine(text: string, width: number): string[]; export declare function wrapText(text: string, width: number): string[]; export declare function wrapTextLines(text: string, width: number): WrappedTextLine[]; export declare function padOrTrimPlain(text: string, width: number): string; export declare function horizontalPaddingLayout(width: number): { left: number; right: number; contentWidth: number; }; export declare function padHorizontalText(text: string, width: number): string; export declare function ellipsizeDisplay(text: string, width: number): string;