UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

26 lines 1.32 kB
export declare function normalizeNewlines(text: string): string; export declare function normalizeWhitespace(text: string, options?: { collapseSpaces?: boolean; trimLines?: boolean; removeEmptyLines?: boolean; }): string; export declare function normalizeIndentation(text: string, mode?: "spaces" | "tabs", spacesPerTab?: number): string; export declare function dedent(text: string): string; export declare function indent(text: string, indent?: string | number): string; export declare function trimText(text: string): string; export declare function normalizeText(text: string, options?: { newlines?: boolean; whitespace?: boolean; indentation?: "spaces" | "tabs" | false; spacesPerTab?: number; dedent?: boolean; trim?: boolean; }): string; export declare function ensureTrailingNewline(text: string): string; export declare function removeTrailingWhitespace(text: string): string; export declare function normalizeForModel(text: string): string; export declare function isWhitespaceOnly(text: string): boolean; export declare function countLines(text: string): number; export declare function getLine(text: string, lineIndex: number): string | null; export declare function replaceLine(text: string, lineIndex: number, newLine: string): string; //# sourceMappingURL=normalize.d.ts.map