/**
 * Parser for the feature adapter DSL.
 * Implements recursive descent parsing with operator precedence:
 * 1. NOT (highest)
 * 2. AND
 * 3. OR (lowest)
 */
import { PatternExpression } from "./adapter-models";
/**
 * Parser for DSL patterns.
 */
export declare class Parser {
    private input;
    private tokens;
    private position;
    private current;
    private groupCounter;
    constructor(input: string);
    /**
     * Parse the pattern and return the AST.
     */
    parse(): PatternExpression;
    /**
     * Parse OR expression (lowest precedence).
     * or_expr := and_expr (OR and_expr | OR NOT and_expr)*
     */
    private parseOrExpression;
    /**
     * Parse AND expression (middle precedence).
     * and_expr := primary (AND primary | AND NOT primary)*
     */
    private parseAndExpression;
    /**
     * Parse primary expression (clause or grouped expression).
     * primary := clause | '(' or_expr ')' | '[' clause ']' | '[' NAME ':' clause ']'
     */
    private parsePrimary;
    /**
     * Parse a captured clause: [name:clause] or [clause]
     */
    private parseCapturedClause;
    /**
     * Parse a clause: name [operator value]
     */
    private parseClause;
    /**
     * Advance to the next token.
     */
    private advance;
    /**
     * Peek at the next token without consuming it.
     */
    private peek;
    /**
     * Get context around a position for error messages.
     */
    private getContext;
}
