/** * Commonly supported character encodings for CSV parsing in browser environments. * * @remarks * This list includes the most commonly used encodings that are supported across * all modern browsers. TextDecoder supports additional encodings, but this list * focuses on the most widely-used ones for CSV files. * * ### Common Character Encodings: * - **UTF-8**: Universal encoding, recommended for all new content * - **UTF-16LE/UTF-16BE**: Unicode encodings with byte order * - **ISO-8859-X**: Legacy single-byte encodings for Western European languages * - **Windows-125X**: Windows-specific legacy encodings * - **Shift_JIS, EUC-JP, ISO-2022-JP**: Japanese encodings * - **GB18030, GBK**: Chinese encodings * - **EUC-KR**: Korean encoding * * ### Using Non-Standard Charsets * * If you need to use a charset not in this list, you can: * 1. Set the `allowNonStandardCharsets` option to `true` * 2. Be aware that this may cause errors if the browser doesn't support the encoding * 3. Consider implementing fallback handling for unsupported charsets * * @example * ```typescript * // Use non-standard charset (may fail in some browsers) * const records = parseResponse(response, { * allowNonStandardCharsets: true * }); * ``` * * @see {@link https://encoding.spec.whatwg.org/#names-and-labels | WHATWG Encoding Standard} * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder | TextDecoder} */ export declare const SUPPORTED_CHARSETS: ReadonlySet;