import { TextlintKernelConstructorOptions, TextlintKernelOptions } from "./textlint-kernel-interface.js"; import type { TextlintFixResult, TextlintResult } from "@textlint/types"; /** * TextlintKernel is core logic written by pure JavaScript. * * Pass * * - config * - plugins * - rules * - filterRules * - messageProcessor * */ export declare class TextlintKernel { private readonly config; private readonly messageProcessManager; /** * @param config */ constructor(config?: TextlintKernelConstructorOptions); /** * lint text by registered rules. * The result contains target filePath and error messages. * @param {string} text * @param {Object} options linting options * @returns {Promise.} */ lintText(text: string, options: TextlintKernelOptions): Promise; /** * fix texts and return fix result object * @param {string} text * @param {Object} options lint options * @returns {Promise.} */ fixText(text: string, options: TextlintKernelOptions): Promise; /** * process text in parallel for Rules and return {Promise.} * In other word, parallel flow process. * @param {*} processor * @param {string} text * @param {Object} options * @returns {Promise.} * @private */ private _parallelProcess; /** * process text in series for Rules and return {Promise.} * In other word, sequence flow process. * @param {*} processor * @param {string} text * @param {TextlintKernelOptions} options * @returns {Promise.} * @private */ private _sequenceProcess; } //# sourceMappingURL=textlint-kernel.d.ts.map