import { GenericDiagnostic, Position } from '@utam/diagnostics'; import { Node } from 'jsonc-parser'; export declare class UtamValidationError extends Error { position?: Position; utamError: boolean; constructor(diagnostic: GenericDiagnostic); /** * produce complete error message for errors report * @param pageObjectName name of the page object * @returns string with message */ toString(pageObjectName: string): string; } /** * error thrown in Json parsing phase (pre-validation) * always throws code 900 */ export declare class UtamCompilerParserError extends UtamValidationError { constructor(error: { offset: number; message: string; }); } /** * error thrown in generation phase (after validation) */ export declare class UtamCompilerGenerationError extends UtamValidationError { constructor(errCode: number, args?: Array); } /** * error thrown in Json validation phase */ export declare class UtamCompilerValidationError extends UtamValidationError { constructor(node: Node, errCode: number, args?: Array); } /** * error thrown during validation of Json (prior to generation) */ export declare class UtamSchemaValidationError extends UtamValidationError { constructor(diagnostic: GenericDiagnostic); } /** * error thrown by Json parser */ export declare class UtamJsonValidationError extends UtamValidationError { json: boolean; constructor(diagnostic: GenericDiagnostic); } export declare function calculatePositionFromSource(error: UtamValidationError, source: string): Position | undefined; //# sourceMappingURL=errors.d.ts.map