export declare function detectIndent(text: string): IndentInfo; /** * Detect newline type in a string * * @returns '\r\n' (CRLF - Windows), '\n' (LF - Unix), '\r' (CR - old Mac), or null */ export declare function detectNewline(text: string): '\r\n' | '\n' | '\r' | null; /** * Detect newline type with graceful fallback */ export declare function detectNewlineGraceful(text: string, fallback?: '\r\n' | '\n'): '\r\n' | '\n' | '\r'; /** * Normalize newlines in text to specified type */ export declare function normalizeNewlines(text: string, newline?: '\r\n' | '\n' | '\r'): string; /** * Count different types of newlines in text */ export declare function countNewlines(text: string): { crlf: number lf: number cr: number total: number }; /** * Text detection utilities (detect-indent and detect-newline replacements) */ /** * Detect indentation type and amount in a string */ export declare interface IndentInfo { amount: number type: 'space' | 'tab' | null indent: string }