import { type Result } from './reporter'; import type { Configuration } from './typings/types'; export declare type ConfigValue = string | number | boolean | undefined | (string | number)[] | Config; export interface Config { mew?: boolean; linters?: any; format?: any; level?: number; [index: number]: ConfigValue; [key: string]: ConfigValue; } export interface Helper { indent(content: string, config?: Config): string; trim(content: string, config?: Config): string; } export declare type Formatter = (content: string, node: HTMLElement, config: Config, helper: Helper) => string | Promise; export interface FormatMapper { script: Formatter; style: Formatter; } export declare function hint(code: string, config?: Partial): Result[]; export declare function hintAsync(code: string, config?: Partial): Promise; export declare function format(code: string, config?: Partial | null): string; export declare function formatAsync(code: string, config?: Partial): Promise; export declare const addRule: (options: T | import("./typings/types").Rule) => number;