import { ILintFinding, ILintFix, ISurveyLintOptions, ISurveyLintResult } from "survey-core/linter"; export interface ISurveyTextWorkerOptions { lint?: boolean; lintOptions?: ISurveyLintOptions; } export interface ISurveyTextWorkerNode { node: any; parent: any; key: string | number; } export declare abstract class SurveyTextWorkerError { at: number; text: string; rowAt: number; columnAt: number; constructor(at: number, text: string); abstract getErrorType(): string; get isBlocking(): boolean; get isFixable(): boolean; fixError(text: string): string; } export declare class SurveyTextWorkerParserError extends SurveyTextWorkerError { getErrorType(): string; } export declare class SurveyTextWorkerLinterFinding extends SurveyTextWorkerError { finding: ILintFinding; private fixer?; constructor(at: number, text: string, finding: ILintFinding, fixer?: SurveyTextWorkerFixer); getErrorType(): string; get severity(): string; get ruleId(): string; get reason(): string; get isBlocking(): boolean; get isFixable(): boolean; fixError(text: string): string; } declare class SurveyTextWorkerFixer { private fix; constructor(fix: ILintFix); get isFixable(): boolean; fixError(text: string): string; private applyEdit; } export declare class SurveyTextWorker { text: string; private options?; static onProcessJson: ((json: any) => void) | undefined; static newLineChar: string; errors: Array; findings: Array; lintResult: ISurveyLintResult; private jsonValue; constructor(text: string, options?: ISurveyTextWorkerOptions); get json(): any; get isJsonCorrect(): boolean; get isJsonHasErrors(): boolean; protected process(): void; private lint; private createFixer; private getFindingPosition; private getKeyPosition; private updateJsonPositions; getAllNames(): Array; getNodeByPath(path: string): ISurveyTextWorkerNode | undefined; getPositionByPath(path: string): { at: number; rowAt: number; columnAt: number; }; private getIndexInRange; private setErrorsPositionByChartAt; private getPostionByChartAt; } export {};