/******* * Split a flat “array body” string into top-level segments by a single-character separator, * while ignoring separators that appear inside: * - quoted strings ("…" or '…', with backslash escapes), * - nested arrays (both `[...]` and `«...»`), * - tag headers (`<...>`), meaning the attribute/header region only. * * This is a lightweight, single-pass scanner used to safely split list-like * surfaces (e.g. comma-separated items) without being fooled by commas that * are syntactically “owned” by deeper structures. * * Important limitations / expectations: * - `separator` is treated as a *single character* (the code compares `ch === separator`). * - The tag-header guard only covers `<...>` headers; it does not attempt to * understand or skip content between `` and ``. * - Quote handling supports backslash escaping and ends a string only when the * matching quote character is encountered unescaped. * - Nesting depths are tracked independently for square brackets and guillemets. * Depths are assumed to be well-formed in the input. * * Output: * - Each segment is `trim()`’d. * - Empty segments are dropped (e.g. trailing separators or `a,,b`), but note that * truly empty *quoted* values (like `""`) survive because their segment length is * non-zero. * * @param str - The input string to split (typically a bracketless/flat slice). * @param separator - The single-character separator to split on (commonly `,`). * @returns An array of top-level segments with surrounding whitespace removed. *******/ export declare function split_array_string(str: string, separator: string): string[]; //# sourceMappingURL=split-array-string.d.ts.map