import { z } from 'zod'; import type { ExpressionValidationContext, RefExpressionParseResult, RefExpressionWarning } from '#src/references/expression-types.js'; import { RefExpressionParser } from '#src/references/expression-types.js'; /** * A test parser that always returns a configurable set of warnings. * * Used to test expression validation infrastructure without needing * real expression parsing logic. * * @example * ```typescript * const parser = new WarningParser([{ message: 'Field not found' }]); * const schema = ctx.withExpression(parser); * ``` */ export declare class WarningParser extends RefExpressionParser { readonly name = "warning-parser"; private readonly warningsToReturn; constructor(warnings: RefExpressionWarning[]); createSchema(): z.ZodType; parse(value: string): RefExpressionParseResult; getWarnings(_parseResult: string, _context: ExpressionValidationContext): RefExpressionWarning[]; getReferencedEntities(): []; } /** * A test parser whose parse() returns a failure result. * * Used to test that expression validation gracefully handles parse failures. */ export declare class FailingParser extends RefExpressionParser { readonly name = "failing-parser"; createSchema(): z.ZodType; parse(): RefExpressionParseResult; getWarnings(): RefExpressionWarning[]; getReferencedEntities(): []; } //# sourceMappingURL=expression-warning-parser.test-helper.d.ts.map