/**
 * ParseStage - Parser selection, AST generation, and cache lookup/store.
 *
 * Handles:
 * - Tree-sitter pre-initialization (outside sandbox)
 * - AST cache lookup
 * - Legacy parser vs tree-sitter parser selection
 * - AST cache storage
 */
import type { ExecutionLimits } from "../../limits.js";
import type { PipelineContext, PipelineStage, StageResult } from "../types.js";
export declare class ParseStage implements PipelineStage {
    readonly name = "parse";
    private readonly parserEngine;
    private readonly treeSitterConfig?;
    private readonly limits;
    constructor(opts: {
        parserEngine: "legacy" | "tree-sitter";
        treeSitterConfig?: {
            webTreeSitterWasm: string | Uint8Array;
            bashGrammarWasm?: string | Uint8Array;
            grammars?: Record<string, string | Uint8Array>;
        };
        limits: Required<ExecutionLimits>;
    });
    execute(context: PipelineContext): Promise<StageResult>;
}
