declare namespace ansiRegex {1interface Options {2/**3Match only the first ANSI escape.45@default false6*/7onlyFirst: boolean;8}9}1011/**12Regular expression for matching ANSI escape codes.1314@example15```16import ansiRegex = require('ansi-regex');1718ansiRegex().test('\u001B[4mcake\u001B[0m');19//=> true2021ansiRegex().test('cake');22//=> false2324'\u001B[4mcake\u001B[0m'.match(ansiRegex());25//=> ['\u001B[4m', '\u001B[0m']2627'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));28//=> ['\u001B[4m']2930'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());31//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']32```33*/34declare function ansiRegex(options?: ansiRegex.Options): RegExp;3536export = ansiRegex;373839