/**
 * The following code is modified based on
 * https://github.com/webpack/webpack-dev-server
 *
 * MIT Licensed
 * Author Tobias Koppers @sokra
 * Copyright (c) JS Foundation and other contributors
 * https://github.com/webpack/webpack-dev-server/blob/main/LICENSE
 */
interface AnsiHtmlTags {
    open: typeof _openTags;
    close: typeof _closeTags;
}
type Option<T> = T | null | undefined;
type Match = {
    advance: (n: number) => void;
} & Array<string>;
declare const _defColors: Record<string, string | Array<string>>;
declare const _openTags: Record<string, string | ((m: Match) => Option<string>)>;
declare const _closeTags: Record<string, string | ((ansiCodes: Option<Array<string>>) => string)>;
/**
 * Converts text with ANSI color codes to HTML markup.
 */
declare function ansiHTML(text: string): string;
declare namespace ansiHTML {
    var setColors: (colors: typeof _defColors) => void;
    var reset: () => void;
    var tags: AnsiHtmlTags;
}
export default ansiHTML;
