import type { APIOptions, MLEngineEventMap } from './types.js'; import type { MLResultInfo } from '../types.js'; import type { ConfigSet, MLFile, Target } from '@markuplint/file-resolver'; import type { PlainData } from '@markuplint/ml-config'; import type { Document, RuleConfigValue } from '@markuplint/ml-core'; import { Emitter } from 'strict-event-emitter'; type MLEngineOptions = { readonly debug?: boolean; readonly watch?: boolean; }; export type FromCodeOptions = APIOptions & MLEngineOptions & { readonly name?: string; readonly dirname?: string; }; export declare class MLEngine extends Emitter { #private; static fromCode(sourceCode: string, options?: FromCodeOptions): Promise; static toMLFile(target: Target): Promise; constructor(file: Readonly, options?: APIOptions & MLEngineOptions); get document(): Document | null; close(): Promise; exec(): Promise; setCode(code: string): Promise; watchMode(enable: boolean): void; private createCore; private i18n; private onChange; private provide; resolveConfig(cache: boolean): Promise; private resolveParser; private resolvePretenders; private resolveRules; private resolveRuleset; private resolveSchemas; private setup; } export {};