/** * Encoding Utilities * * Handles text encoding issues across different platforms. */ /** * Strip UTF-8 BOM (Byte Order Mark) from a string. * * The UTF-8 BOM is the byte sequence EF BB BF (U+FEFF). * Some Windows editors add this to the start of files, * which can break environment variable parsing. * * @param str - String that may contain a BOM * @returns String with BOM removed if present */ export declare function stripBOM(str: string): string; /** * Detect if a string has a UTF-8 BOM. * * @param str - String to check * @returns true if BOM is present */ export declare function hasBOM(str: string): boolean; //# sourceMappingURL=encoding.d.ts.map