import ParserTypes from 'web-tree-sitter'; import { z } from 'zod'; export declare enum NodeType { Product = "product", Package = "package", Symbol = "symbol" } export declare enum ProductKind { Domain = "domain", Application = "application", Story = "story" } export declare enum PackageKind { App = "app", Service = "service", Lib = "lib", Cli = "cli" } export declare enum SymbolKind { Function = "function", Class = "class", Interface = "interface", Variable = "variable", Type = "type", Enum = "enum", Component = "component", Prop = "prop", Method = "method", Endpoint = "endpoint", Config = "config", Hook = "hook", Process = "process" } export type NodeKind = ProductKind | PackageKind | SymbolKind; export declare enum Grounding { Code = "code", Concept = "concept" } export declare enum Visibility { Exported = "exported", Public = "public", Protected = "protected", Internal = "internal" } export interface NodeRecord { id: string; type: NodeType; kind: NodeKind; grounding: Grounding; name: string; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; } export declare enum EdgeType { Contains = "contains", Imports = "imports", ImportsType = "imports_type", Calls = "calls", Extends = "extends", Implements = "implements", ParamType = "param_type", ReturnType = "return_type", OfType = "of_type", DependsOn = "depends_on", RelatedTo = "related_to", Corresponds = "corresponds", Refines = "refines", AnchoredTo = "anchored_to", Supersedes = "supersedes", Conflicts = "conflicts", References = "references" } export declare enum EdgeSource { Ast = "ast", Doc = "doc", Manual = "manual" } export interface EdgeRecord { id: string; type: EdgeType; from_id: string; to_id: string; grounding: Grounding; source: EdgeSource; confidence: number; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; } export declare enum FactKind { Description = "description", Spec = "spec", Warning = "warning", Principle = "principle", Decision = "decision", Incident = "incident", Guide = "guide", Example = "example", Changelog = "changelog" } export declare enum FactSourceType { Code = "code", Doc = "doc", Oncall = "oncall", Meeting = "meeting", Manual = "manual" } export declare enum FactStatus { Proposed = "proposed", Active = "active", Deprecated = "deprecated" } export declare enum FactConfidence { Verified = "verified", Confirmed = "confirmed", Inferred = "inferred", Speculative = "speculative" } export declare enum FactRelation { Implements = "implements", Refines = "refines", Conflicts = "conflicts", Supersedes = "supersedes", References = "references" } export type FactAnchorType = "node" | "edge"; export interface FactSourceSpan { start: number; end: number; } export interface RelatedFact { fact_id: string; relation: FactRelation; } export interface FactRecord { id: string; anchor_id: string; anchor_type: FactAnchorType; kind: FactKind; content: string; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: FactSourceSpan | null; related_facts: RelatedFact[] | null; valid_from: number | null; valid_until: number | null; status: FactStatus; confidence: FactConfidence; workspace_id: string | null; /** Redundant source_id inherited from anchor Node's source_id. * Used for fast fact_count filtering without parsing anchor_id or querying GraphStore. */ source_id: string | null; created_at: string; updated_at: string; } export type EntityRefPointer = `ref:entity:${string}`; export type RefPointer = EntityRefPointer | `ref:relation:${string}` | `ref:content:${string}`; export type SourceRefSpan = { start: number; end: number; }; export type SourceRef = { ref: RefPointer; span?: SourceRefSpan; }; export interface ResolvedRef { type: "entity" | "relation" | "content"; id: string; exists: boolean; summary?: { name?: string; entity_type?: string; byte_size?: number; }; } type ParsedRef = { type: "entity" | "relation" | "content"; id: string; }; export declare function parseRef(pointer: string): ParsedRef | null; export declare function buildRef(type: ParsedRef["type"], id: string): RefPointer; export declare function isRefPointer(value: unknown): value is RefPointer; export declare function extractAllRefs(data: unknown): { pointer: RefPointer; fieldPath: string; }[]; export declare const entityAtomSchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodOptional; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>; export declare const relationAtomSchema: z.ZodObject<{ from: z.ZodString; to: z.ZodString; type: z.ZodString; description: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>; export declare const behaviorAtomSchema: z.ZodObject<{ name: z.ZodString; signature: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>; export declare const attributeAtomSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodString; value: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>; export declare const stateAtomSchema: z.ZodObject<{ name: z.ZodString; values: z.ZodArray; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>; export declare const ruleAtomSchema: z.ZodObject<{ description: z.ZodString; expression: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>; export declare const transitionAtomSchema: z.ZodObject<{ from: z.ZodString; to: z.ZodString; trigger: z.ZodString; guard: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>; export declare const eventAtomSchema: z.ZodObject<{ name: z.ZodString; trigger_for: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>; export declare const decisionPhaseSchema: z.ZodObject<{ phase: z.ZodString; decision: z.ZodString; rationale: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>; export declare const decisionAtomSchema: z.ZodObject<{ name: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>; export declare const metricMilestoneSchema: z.ZodObject<{ date: z.ZodString; target_value: z.ZodString; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>; export declare const metricAtomSchema: z.ZodObject<{ name: z.ZodString; target: z.ZodString; threshold: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>; export declare const roleAtomSchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<[ "human", "team", "persona" ]>; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>; export declare const constraintAtomSchema: z.ZodObject<{ description: z.ZodString; severity: z.ZodEnum<[ "must", "should", "may" ]>; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>; export declare const boundaryAtomSchema: z.ZodObject<{ name: z.ZodString; contains: z.ZodArray; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>; export declare const comparisonDimensionValueSchema: z.ZodObject<{ subject: z.ZodString; value: z.ZodString; rating: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>; export declare const comparisonDimensionSchema: z.ZodObject<{ dimension: z.ZodString; values: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>; export declare const comparisonAtomSchema: z.ZodObject<{ name: z.ZodString; subjects: z.ZodArray; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>; export declare const paragraphAtomSchema: z.ZodObject<{ entities: z.ZodOptional; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>, "many">>; relations: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>, "many">>; behaviors: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>, "many">>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>, "many">>; states: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>, "many">>; rules: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>, "many">>; transitions: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>, "many">>; events: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>, "many">>; decisions: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>, "many">>; metrics: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>, "many">>; roles: z.ZodOptional; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>, "many">>; constraints: z.ZodOptional; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>, "many">>; comparisons: z.ZodOptional; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>, "many">>; boundaries: z.ZodOptional; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }>; export declare const sectionSchema: z.ZodObject<{ heading: z.ZodString; level: z.ZodNumber; paragraphs: z.ZodArray; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>, "many">>; relations: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>, "many">>; behaviors: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>, "many">>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>, "many">>; states: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>, "many">>; rules: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>, "many">>; transitions: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>, "many">>; events: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>, "many">>; decisions: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>, "many">>; metrics: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>, "many">>; roles: z.ZodOptional; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>, "many">>; constraints: z.ZodOptional; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>, "many">>; comparisons: z.ZodOptional; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>, "many">>; boundaries: z.ZodOptional; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }, { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }>, "many">; }, "strip", z.ZodTypeAny, { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }, { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }>; export declare const embeddingEntrySchema: z.ZodObject<{ sectionIndex: z.ZodNumber; paragraphIndex: z.ZodNumber; vector: z.ZodArray; }, "strip", z.ZodTypeAny, { sectionIndex: number; paragraphIndex: number; vector: number[]; }, { sectionIndex: number; paragraphIndex: number; vector: number[]; }>; export declare const docDigestSchema: z.ZodObject<{ version: z.ZodLiteral<"1">; sections: z.ZodArray; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>, "many">>; relations: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>, "many">>; behaviors: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>, "many">>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>, "many">>; states: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>, "many">>; rules: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>, "many">>; transitions: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>, "many">>; events: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>, "many">>; decisions: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>, "many">>; metrics: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>, "many">>; roles: z.ZodOptional; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>, "many">>; constraints: z.ZodOptional; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>, "many">>; comparisons: z.ZodOptional; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>, "many">>; boundaries: z.ZodOptional; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }, { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }>, "many">; }, "strip", z.ZodTypeAny, { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }, { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }>, "many">; embeddings: z.ZodArray; }, "strip", z.ZodTypeAny, { sectionIndex: number; paragraphIndex: number; vector: number[]; }, { sectionIndex: number; paragraphIndex: number; vector: number[]; }>, "many">; metadata: z.ZodObject<{ sourceId: z.ZodString; hashId: z.ZodString; sourcePath: z.ZodString; contentHash: z.ZodString; chunkCount: z.ZodNumber; totalTokens: z.ZodNumber; llmCalls: z.ZodNumber; processedAt: z.ZodString; }, "strip", z.ZodTypeAny, { sourceId: string; hashId: string; sourcePath: string; contentHash: string; chunkCount: number; totalTokens: number; llmCalls: number; processedAt: string; }, { sourceId: string; hashId: string; sourcePath: string; contentHash: string; chunkCount: number; totalTokens: number; llmCalls: number; processedAt: string; }>; }, "strip", z.ZodTypeAny, { version: "1"; sections: { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }[]; embeddings: { sectionIndex: number; paragraphIndex: number; vector: number[]; }[]; metadata: { sourceId: string; hashId: string; sourcePath: string; contentHash: string; chunkCount: number; totalTokens: number; llmCalls: number; processedAt: string; }; }, { version: "1"; sections: { heading: string; level: number; paragraphs: { text: string; atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; }[]; }[]; embeddings: { sectionIndex: number; paragraphIndex: number; vector: number[]; }[]; metadata: { sourceId: string; hashId: string; sourcePath: string; contentHash: string; chunkCount: number; totalTokens: number; llmCalls: number; processedAt: string; }; }>; export declare const docChunkParagraphSchema: z.ZodObject<{ tag: z.ZodString; atoms: z.ZodObject<{ entities: z.ZodOptional; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>, "many">>; relations: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>, "many">>; behaviors: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>, "many">>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>, "many">>; states: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>, "many">>; rules: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>, "many">>; transitions: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>, "many">>; events: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>, "many">>; decisions: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>, "many">>; metrics: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>, "many">>; roles: z.ZodOptional; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>, "many">>; constraints: z.ZodOptional; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>, "many">>; comparisons: z.ZodOptional; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>, "many">>; boundaries: z.ZodOptional; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }, { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }>; export declare const docChunkResultSchema: z.ZodObject<{ paragraphs: z.ZodArray; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }, { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }>, "many">>; relations: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }, { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }>, "many">>; behaviors: z.ZodOptional; description: z.ZodOptional; performed_by: z.ZodOptional>; ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }, { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }>, "many">>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; name: string; value?: unknown; confidence?: number | undefined; }, { type: string; name: string; value?: unknown; confidence?: number | undefined; }>, "many">>; states: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }, { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }>, "many">>; rules: z.ZodOptional; depends_on: z.ZodOptional>; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }, { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }>, "many">>; transitions: z.ZodOptional; ref_sor: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }, { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }>, "many">>; events: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }, { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }>, "many">>; decisions: z.ZodOptional; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional>; impact: z.ZodOptional>; phases: z.ZodOptional; }, "strip", z.ZodTypeAny, { decision: string; phase: string; rationale?: string | undefined; }, { decision: string; phase: string; rationale?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }, { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }>, "many">>; metrics: z.ZodOptional; unit: z.ZodOptional; milestones: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; target_value: string; label?: string | undefined; }, { date: string; target_value: string; label?: string | undefined; }>, "many">>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }, { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }>, "many">>; roles: z.ZodOptional; performs: z.ZodOptional>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }, { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }>, "many">>; constraints: z.ZodOptional; metric_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }, { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }>, "many">>; comparisons: z.ZodOptional; dimensions: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string; subject: string; rating?: string | undefined; }, { value: string; subject: string; rating?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }, { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }>, "many">; conclusion: z.ZodOptional; decision_ref: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }, { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }>, "many">>; boundaries: z.ZodOptional; excludes: z.ZodOptional>; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }, { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }, { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }, { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }>, "many">; }, "strip", z.ZodTypeAny, { paragraphs: { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }[]; }, { paragraphs: { atoms: { entities?: { name: string; ref?: string | undefined; confidence?: number | undefined; kind?: string | undefined; }[] | undefined; relations?: { type: string; from: string; to: string; description?: string | undefined; confidence?: number | undefined; }[] | undefined; behaviors?: { name: string; description?: string | undefined; ref?: string | undefined; confidence?: number | undefined; signature?: string | undefined; performed_by?: string[] | undefined; }[] | undefined; attributes?: { type: string; name: string; value?: unknown; confidence?: number | undefined; }[] | undefined; states?: { values: string[]; name: string; confidence?: number | undefined; ref_sor?: string | undefined; }[] | undefined; rules?: { description: string; depends_on?: string[] | undefined; confidence?: number | undefined; ref_sor?: string | undefined; expression?: string | undefined; }[] | undefined; transitions?: { from: string; to: string; trigger: string; confidence?: number | undefined; ref_sor?: string | undefined; guard?: string | undefined; }[] | undefined; events?: { name: string; confidence?: number | undefined; trigger_for?: string[] | undefined; }[] | undefined; decisions?: { description: string; rationale: string; name?: string | undefined; confidence?: number | undefined; alternatives?: string[] | undefined; impact?: string[] | undefined; phases?: { decision: string; phase: string; rationale?: string | undefined; }[] | undefined; }[] | undefined; metrics?: { name: string; target: string; confidence?: number | undefined; threshold?: string | undefined; unit?: string | undefined; milestones?: { date: string; target_value: string; label?: string | undefined; }[] | undefined; }[] | undefined; roles?: { name: string; kind: "human" | "team" | "persona"; description?: string | undefined; performs?: string[] | undefined; }[] | undefined; constraints?: { description: string; severity: "must" | "should" | "may"; confidence?: number | undefined; metric_ref?: string | undefined; }[] | undefined; comparisons?: { name: string; subjects: string[]; dimensions: { values: { value: string; subject: string; rating?: string | undefined; }[]; dimension: string; }[]; confidence?: number | undefined; conclusion?: string | undefined; decision_ref?: string | undefined; }[] | undefined; boundaries?: { contains: string[]; name: string; confidence?: number | undefined; excludes?: string[] | undefined; }[] | undefined; }; tag: string; }[]; }>; export type DocDigest = z.infer; export type DocChunkResult = z.infer; export declare const PathFilterConfigSchema: z.ZodObject<{ package: z.ZodDefault>; }, "strip", z.ZodTypeAny, { include: string[]; }, { include?: string[] | undefined; }>>; code: z.ZodDefault>; exclude: z.ZodDefault>; }, "strip", z.ZodTypeAny, { include: string[]; exclude: string[]; }, { include?: string[] | undefined; exclude?: string[] | undefined; }>>; doc: z.ZodDefault>; exclude: z.ZodDefault>; }, "strip", z.ZodTypeAny, { include: string[]; exclude: string[]; }, { include?: string[] | undefined; exclude?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { package: { include: string[]; }; code: { include: string[]; exclude: string[]; }; doc: { include: string[]; exclude: string[]; }; }, { package?: { include?: string[] | undefined; } | undefined; code?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; doc?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; }>; export type PathFilterConfig = z.infer; export declare const DEFAULT_PATH_FILTER: PathFilterConfig; /** * Read path_filter from source metadata, falling back to DEFAULT_PATH_FILTER. * Returns the config and whether it's the default. */ export declare function resolvePathFilter(metadata?: Record | null): { config: PathFilterConfig; isDefault: boolean; }; export declare const sourceRefSpanSchema: z.ZodObject<{ start: z.ZodNumber; end: z.ZodNumber; }, "strip", z.ZodTypeAny, { start: number; end: number; }, { start: number; end: number; }>; export declare const sourceRefSchema: z.ZodObject<{ ref: z.ZodString; span: z.ZodOptional>; }, "strip", z.ZodTypeAny, { ref: string; span?: { start: number; end: number; } | undefined; }, { ref: string; span?: { start: number; end: number; } | undefined; }>; export declare const nodeTypeSchema: z.ZodEnum<[ NodeType, ...NodeType[] ]>; export declare const productKindSchema: z.ZodEnum<[ ProductKind, ...ProductKind[] ]>; export declare const packageKindSchema: z.ZodEnum<[ PackageKind, ...PackageKind[] ]>; export declare const symbolKindSchema: z.ZodEnum<[ SymbolKind, ...SymbolKind[] ]>; export declare const groundingSchema: z.ZodEnum<[ Grounding, ...Grounding[] ]>; export declare const visibilitySchema: z.ZodEnum<[ Visibility, ...Visibility[] ]>; export declare const nodeSchema: z.ZodDiscriminatedUnion<"type", [ z.ZodObject<{ id: z.ZodString; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; name: z.ZodString; language: z.ZodNullable; visibility: z.ZodNullable>; source_id: z.ZodNullable; valid_from: z.ZodNullable; valid_until: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { type: z.ZodLiteral; kind: z.ZodEnum<[ ProductKind, ...ProductKind[] ]>; }, "strip", z.ZodTypeAny, { type: NodeType.Product; id: string; name: string; kind: ProductKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }, { type: NodeType.Product; id: string; name: string; kind: ProductKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }>, z.ZodObject<{ id: z.ZodString; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; name: z.ZodString; language: z.ZodNullable; visibility: z.ZodNullable>; source_id: z.ZodNullable; valid_from: z.ZodNullable; valid_until: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { type: z.ZodLiteral; kind: z.ZodEnum<[ PackageKind, ...PackageKind[] ]>; }, "strip", z.ZodTypeAny, { type: NodeType.Package; id: string; name: string; kind: PackageKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }, { type: NodeType.Package; id: string; name: string; kind: PackageKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }>, z.ZodObject<{ id: z.ZodString; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; name: z.ZodString; language: z.ZodNullable; visibility: z.ZodNullable>; source_id: z.ZodNullable; valid_from: z.ZodNullable; valid_until: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { type: z.ZodLiteral; kind: z.ZodEnum<[ SymbolKind, ...SymbolKind[] ]>; }, "strip", z.ZodTypeAny, { type: NodeType.Symbol; id: string; name: string; kind: SymbolKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }, { type: NodeType.Symbol; id: string; name: string; kind: SymbolKind; grounding: Grounding; language: string | null; visibility: Visibility | null; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; }> ]>; export declare const edgeTypeSchema: z.ZodEnum<[ EdgeType, ...EdgeType[] ]>; export declare const edgeSourceSchema: z.ZodEnum<[ EdgeSource, ...EdgeSource[] ]>; export declare const edgeSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<[ EdgeType, ...EdgeType[] ]>; from_id: z.ZodString; to_id: z.ZodString; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; source: z.ZodEnum<[ EdgeSource, ...EdgeSource[] ]>; confidence: z.ZodNumber; valid_from: z.ZodNullable; valid_until: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { type: EdgeType; id: string; confidence: number; grounding: Grounding; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; from_id: string; to_id: string; source: EdgeSource; }, { type: EdgeType; id: string; confidence: number; grounding: Grounding; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; from_id: string; to_id: string; source: EdgeSource; }>; export declare const factKindSchema: z.ZodEnum<[ FactKind, ...FactKind[] ]>; export declare const factSourceTypeSchema: z.ZodEnum<[ FactSourceType, ...FactSourceType[] ]>; export declare const factStatusSchema: z.ZodEnum<[ FactStatus, ...FactStatus[] ]>; export declare const factConfidenceSchema: z.ZodEnum<[ FactConfidence, ...FactConfidence[] ]>; export declare const factRelationSchema: z.ZodEnum<[ FactRelation, ...FactRelation[] ]>; export declare const sourceSpanSchema: z.ZodNullable>; export declare const relatedFactSchema: z.ZodObject<{ fact_id: z.ZodString; relation: z.ZodEnum<[ FactRelation, ...FactRelation[] ]>; }, "strip", z.ZodTypeAny, { relation: FactRelation; fact_id: string; }, { relation: FactRelation; fact_id: string; }>; export declare const factSchemaBase: z.ZodObject<{ id: z.ZodString; anchor_id: z.ZodString; anchor_type: z.ZodEnum<[ "node", "edge" ]>; kind: z.ZodEnum<[ FactKind, ...FactKind[] ]>; content: z.ZodString; detail: z.ZodNullable; source_type: z.ZodEnum<[ FactSourceType, ...FactSourceType[] ]>; source_ref: z.ZodString; source_span: z.ZodNullable>; related_facts: z.ZodNullable; }, "strip", z.ZodTypeAny, { relation: FactRelation; fact_id: string; }, { relation: FactRelation; fact_id: string; }>, "many">>; valid_from: z.ZodNullable; valid_until: z.ZodNullable; status: z.ZodEnum<[ FactStatus, ...FactStatus[] ]>; confidence: z.ZodEnum<[ FactConfidence, ...FactConfidence[] ]>; workspace_id: z.ZodNullable; source_id: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; id: string; status: FactStatus; confidence: FactConfidence; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }, { content: string; id: string; status: FactStatus; confidence: FactConfidence; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }>; export declare const factSchema: z.ZodUnion<[ z.ZodObject<{ id: z.ZodString; anchor_id: z.ZodString; anchor_type: z.ZodEnum<[ "node", "edge" ]>; kind: z.ZodEnum<[ FactKind, ...FactKind[] ]>; content: z.ZodString; detail: z.ZodNullable; source_type: z.ZodEnum<[ FactSourceType, ...FactSourceType[] ]>; source_ref: z.ZodString; source_span: z.ZodNullable>; related_facts: z.ZodNullable; }, "strip", z.ZodTypeAny, { relation: FactRelation; fact_id: string; }, { relation: FactRelation; fact_id: string; }>, "many">>; valid_from: z.ZodNullable; valid_until: z.ZodNullable; workspace_id: z.ZodNullable; source_id: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { status: z.ZodLiteral; confidence: z.ZodEnum<[ FactConfidence.Confirmed, FactConfidence.Inferred, FactConfidence.Speculative ]>; }, "strip", z.ZodTypeAny, { content: string; id: string; status: FactStatus.Proposed; confidence: FactConfidence.Confirmed | FactConfidence.Inferred | FactConfidence.Speculative; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }, { content: string; id: string; status: FactStatus.Proposed; confidence: FactConfidence.Confirmed | FactConfidence.Inferred | FactConfidence.Speculative; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }>, z.ZodObject<{ id: z.ZodString; anchor_id: z.ZodString; anchor_type: z.ZodEnum<[ "node", "edge" ]>; kind: z.ZodEnum<[ FactKind, ...FactKind[] ]>; content: z.ZodString; detail: z.ZodNullable; source_type: z.ZodEnum<[ FactSourceType, ...FactSourceType[] ]>; source_ref: z.ZodString; source_span: z.ZodNullable>; related_facts: z.ZodNullable; }, "strip", z.ZodTypeAny, { relation: FactRelation; fact_id: string; }, { relation: FactRelation; fact_id: string; }>, "many">>; valid_from: z.ZodNullable; valid_until: z.ZodNullable; workspace_id: z.ZodNullable; source_id: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { status: z.ZodLiteral; confidence: z.ZodEnum<[ FactConfidence.Verified, FactConfidence.Confirmed, FactConfidence.Inferred ]>; }, "strip", z.ZodTypeAny, { content: string; id: string; status: FactStatus.Active; confidence: FactConfidence.Verified | FactConfidence.Confirmed | FactConfidence.Inferred; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }, { content: string; id: string; status: FactStatus.Active; confidence: FactConfidence.Verified | FactConfidence.Confirmed | FactConfidence.Inferred; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }>, z.ZodObject<{ id: z.ZodString; anchor_id: z.ZodString; anchor_type: z.ZodEnum<[ "node", "edge" ]>; kind: z.ZodEnum<[ FactKind, ...FactKind[] ]>; content: z.ZodString; detail: z.ZodNullable; source_type: z.ZodEnum<[ FactSourceType, ...FactSourceType[] ]>; source_ref: z.ZodString; source_span: z.ZodNullable>; related_facts: z.ZodNullable; }, "strip", z.ZodTypeAny, { relation: FactRelation; fact_id: string; }, { relation: FactRelation; fact_id: string; }>, "many">>; valid_from: z.ZodNullable; valid_until: z.ZodNullable; workspace_id: z.ZodNullable; source_id: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodString; } & { status: z.ZodLiteral; confidence: z.ZodEnum<[ FactConfidence.Verified, FactConfidence.Confirmed, FactConfidence.Inferred ]>; }, "strip", z.ZodTypeAny, { content: string; id: string; status: FactStatus.Deprecated; confidence: FactConfidence.Verified | FactConfidence.Confirmed | FactConfidence.Inferred; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }, { content: string; id: string; status: FactStatus.Deprecated; confidence: FactConfidence.Verified | FactConfidence.Confirmed | FactConfidence.Inferred; kind: FactKind; source_id: string | null; valid_from: number | null; valid_until: number | null; created_at: string; updated_at: string; anchor_id: string; anchor_type: "node" | "edge"; detail: string | null; source_type: FactSourceType; source_ref: string; source_span: { start: number; end: number; } | null; related_facts: { relation: FactRelation; fact_id: string; }[] | null; workspace_id: string | null; }> ]>; export declare const indexerEvidenceAdapterFactSchema: z.ZodObject<{ fact_ref: z.ZodString; kind: z.ZodEffects; locator: z.ZodObject<{ source_ref: z.ZodString; module_ref: z.ZodNullable; normalized_path: z.ZodEffects; qualified_item_path: z.ZodString; signature_digest: z.ZodString; }, "strict", z.ZodTypeAny, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }>; payload_digest: z.ZodString; denominator: z.ZodEnum<[ "none", "eligible-file", "loc", "symbol", "protocol-item" ]>; }, "strict", z.ZodTypeAny, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }>; export declare const indexerEvidenceAdapterFileSchema: z.ZodEffects; normalized_path: z.ZodEffects; role: z.ZodEnum<[ "primary-owner", "enricher" ]>; coverage_tier: z.ZodEnum<[ "ast-catalog", "lightweight-evidence" ]>; disposition: z.ZodEnum<[ "analyzed", "unsupported", "excluded" ]>; facts: z.ZodArray; locator: z.ZodObject<{ source_ref: z.ZodString; module_ref: z.ZodNullable; normalized_path: z.ZodEffects; qualified_item_path: z.ZodString; signature_digest: z.ZodString; }, "strict", z.ZodTypeAny, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }>; payload_digest: z.ZodString; denominator: z.ZodEnum<[ "none", "eligible-file", "loc", "symbol", "protocol-item" ]>; }, "strict", z.ZodTypeAny, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }>, "many">; }, "strict", z.ZodTypeAny, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }>, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }>; export declare const indexerEvidenceAdapterResultSchema: z.ZodEffects; adapter: z.ZodObject<{ id: z.ZodEffects; package: z.ZodString; export: z.ZodString; version: z.ZodString; digest: z.ZodString; }, "strict", z.ZodTypeAny, { package: string; id: string; version: string; digest: string; export: string; }, { package: string; id: string; version: string; digest: string; export: string; }>; authorized_scope: z.ZodObject<{ source_ref: z.ZodString; module_refs: z.ZodArray; scope_digest: z.ZodString; }, "strict", z.ZodTypeAny, { source_ref: string; module_refs: string[]; scope_digest: string; }, { source_ref: string; module_refs: string[]; scope_digest: string; }>; input_digest: z.ZodString; precedence: z.ZodNumber; files: z.ZodArray; normalized_path: z.ZodEffects; role: z.ZodEnum<[ "primary-owner", "enricher" ]>; coverage_tier: z.ZodEnum<[ "ast-catalog", "lightweight-evidence" ]>; disposition: z.ZodEnum<[ "analyzed", "unsupported", "excluded" ]>; facts: z.ZodArray; locator: z.ZodObject<{ source_ref: z.ZodString; module_ref: z.ZodNullable; normalized_path: z.ZodEffects; qualified_item_path: z.ZodString; signature_digest: z.ZodString; }, "strict", z.ZodTypeAny, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }, { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }>; payload_digest: z.ZodString; denominator: z.ZodEnum<[ "none", "eligible-file", "loc", "symbol", "protocol-item" ]>; }, "strict", z.ZodTypeAny, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }, { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }>, "many">; }, "strict", z.ZodTypeAny, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }>, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }, { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }>, "many">; diagnostics: z.ZodArray; fact_ref: z.ZodOptional; severity: z.ZodEnum<[ "info", "warning", "error" ]>; detail_digest: z.ZodString; }, "strict", z.ZodTypeAny, { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }, { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }>, "many">; toolchain: z.ZodArray; package: z.ZodString; export: z.ZodString; version: z.ZodString; digest: z.ZodString; capabilities: z.ZodArray, "many">; input_digest: z.ZodString; output_digest: z.ZodString; }, "strict", z.ZodTypeAny, { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }, { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }>, { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }, { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }>, "many">; output_digest: z.ZodString; }, "strict", z.ZodTypeAny, { input_digest: string; output_digest: string; protocol: "context.indexer.evidence-adapter-result/v1"; adapter: { package: string; id: string; version: string; digest: string; export: string; }; authorized_scope: { source_ref: string; module_refs: string[]; scope_digest: string; }; precedence: number; files: { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }[]; toolchain: { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }[]; }, { input_digest: string; output_digest: string; protocol: "context.indexer.evidence-adapter-result/v1"; adapter: { package: string; id: string; version: string; digest: string; export: string; }; authorized_scope: { source_ref: string; module_refs: string[]; scope_digest: string; }; precedence: number; files: { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }[]; toolchain: { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }[]; }>, { input_digest: string; output_digest: string; protocol: "context.indexer.evidence-adapter-result/v1"; adapter: { package: string; id: string; version: string; digest: string; export: string; }; authorized_scope: { source_ref: string; module_refs: string[]; scope_digest: string; }; precedence: number; files: { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }[]; toolchain: { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }[]; }, { input_digest: string; output_digest: string; protocol: "context.indexer.evidence-adapter-result/v1"; adapter: { package: string; id: string; version: string; digest: string; export: string; }; authorized_scope: { source_ref: string; module_refs: string[]; scope_digest: string; }; precedence: number; files: { source_ref: string; module_ref: string | null; normalized_path: string; file_ref: string; role: "primary-owner" | "enricher"; coverage_tier: "ast-catalog" | "lightweight-evidence"; disposition: "analyzed" | "unsupported" | "excluded"; facts: { kind: string; fact_ref: string; locator: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; signature_digest: string; }; payload_digest: string; denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item"; }[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; detail_digest: string; fact_ref?: string | undefined; }[]; toolchain: { package: string; version: string; digest: string; export: string; step: string; capabilities: string[]; input_digest: string; output_digest: string; }[]; }>; export type IndexerEvidenceAdapterResult = z.infer; export type IndexerEvidenceAdapterFile = z.infer; export type IndexerEvidenceAdapterFact = z.infer; export type IndexerEvidenceAdapterFactPayloadValue = null | boolean | number | string | IndexerEvidenceAdapterFactPayloadValue[] | { [key: string]: IndexerEvidenceAdapterFactPayloadValue; }; export interface IndexerEvidenceAdapterFactPayload { fact_ref: string; payload: IndexerEvidenceAdapterFactPayloadValue; } export interface IndexerEvidenceAdapterMaterialization { result: IndexerEvidenceAdapterResult; fact_payloads: IndexerEvidenceAdapterFactPayload[]; } export declare function indexerEvidenceAdapterProtocolDigest(value: unknown): string; export declare function indexerEvidenceAdapterFileRef(input: { source_ref: string; module_ref: string | null; normalized_path: string; }): string; export declare function indexerEvidenceAdapterFactRef(input: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; kind: string; signature_digest: string; }): string; export declare function createIndexerEvidenceAdapterFact(input: { source_ref: string; module_ref: string | null; normalized_path: string; qualified_item_path: string; kind: string; signature: unknown; payload: unknown; denominator: IndexerEvidenceAdapterFact["denominator"]; }): IndexerEvidenceAdapterFact; export declare function indexerEvidenceAdapterFactPayloads(result: IndexerEvidenceAdapterResult): IndexerEvidenceAdapterFactPayload[]; /** * Materializes the parser fact payload sidecar while it is still available in * the parser process. The payloads intentionally do not survive serializing * the Evidence Adapter Result wire carrier. */ export declare function materializeIndexerEvidenceAdapterResult(result: IndexerEvidenceAdapterResult): IndexerEvidenceAdapterMaterialization; export declare function indexerEvidenceAdapterOutputDigest(value: Omit): string; export type IndexerEvidenceAdapterResultInput = Omit; /** * Builds the parser-side wire result in the same canonical order enforced by * Context. Semantic ownership and cross-adapter conflicts remain a Context * merge concern because they require the complete eligible-file inventory. */ export declare function buildIndexerEvidenceAdapterResult(input: IndexerEvidenceAdapterResultInput): IndexerEvidenceAdapterResult; export declare enum ErrorCode { VALIDATION_FAILED = "VALIDATION_FAILED", VALIDATION_SCHEMA = "VALIDATION_SCHEMA", STORAGE_FAILED = "STORAGE_FAILED", STORAGE_NOT_FOUND = "STORAGE_NOT_FOUND", STORAGE_CONFLICT = "STORAGE_CONFLICT", PARSE_FAILED = "PARSE_FAILED", PARSE_YAML = "PARSE_YAML", API_NOT_IMPLEMENTED = "API_NOT_IMPLEMENTED", API_UNAUTHORIZED = "API_UNAUTHORIZED", API_RATE_LIMITED = "API_RATE_LIMITED", ENTITY_NOT_FOUND = "ENTITY_NOT_FOUND", ENTITY_DUPLICATE = "ENTITY_DUPLICATE", RELATION_INVALID = "RELATION_INVALID", BATCH_PARTIAL_FAILURE = "BATCH_PARTIAL_FAILURE", QUERY_INVALID_PARAMS = "QUERY_INVALID_PARAMS", BACKUP_FAILED = "BACKUP_FAILED", RESTORE_FAILED = "RESTORE_FAILED", PURGE_FAILED = "PURGE_FAILED", BACKUP_VERSION_INCOMPATIBLE = "BACKUP_VERSION_INCOMPATIBLE", BACKUP_MANIFEST_INVALID = "BACKUP_MANIFEST_INVALID", BACKUP_DIR_NOT_FOUND = "BACKUP_DIR_NOT_FOUND", EMBEDDING_NOT_AVAILABLE = "EMBEDDING_NOT_AVAILABLE", EMBEDDING_FAILED = "EMBEDDING_FAILED", LLM_NOT_AVAILABLE = "LLM_NOT_AVAILABLE", LLM_CALL_FAILED = "LLM_CALL_FAILED", LLM_AUTH_FAILED = "LLM_AUTH_FAILED", AUTH_REQUIRED = "AUTH_REQUIRED", AUTH_INVALID_TOKEN = "AUTH_INVALID_TOKEN", AUTH_INVALID_API_KEY = "AUTH_INVALID_API_KEY", AUTH_PROVIDER_ERROR = "AUTH_PROVIDER_ERROR", AUTH_RESERVED_NAME = "AUTH_RESERVED_NAME", DAEMON_OFFLINE = "DAEMON_OFFLINE", SOURCE_NOT_FOUND = "SOURCE_NOT_FOUND", REPO_PATH_NOT_FOUND = "REPO_PATH_NOT_FOUND", COMMIT_NOT_FOUND = "COMMIT_NOT_FOUND", INDEX_IN_PROGRESS = "INDEX_IN_PROGRESS", DIGEST_NOT_FOUND = "DIGEST_NOT_FOUND", INVALID_REGEX = "INVALID_REGEX", SOURCE_ACCESS_DENIED = "SOURCE_ACCESS_DENIED", NOT_INDEXED = "NOT_INDEXED", QUERY_TIMEOUT = "QUERY_TIMEOUT", INTENT_NOT_AVAILABLE = "INTENT_NOT_AVAILABLE", SUB_PATH_CONFLICT = "SUB_PATH_CONFLICT", WORKSPACE_ISOLATION = "WORKSPACE_ISOLATION", VECTOR_DIMENSION_MISMATCH = "VECTOR_DIMENSION_MISMATCH", VECTOR_REBUILD_PARTIAL = "VECTOR_REBUILD_PARTIAL", COMMIT_NOT_AVAILABLE = "COMMIT_NOT_AVAILABLE", DAEMON_AUTO_START_FAILED = "DAEMON_AUTO_START_FAILED", GIT_ARCHIVE_FAILED = "GIT_ARCHIVE_FAILED", GIT_HOST_NOT_CONFIGURED = "GIT_HOST_NOT_CONFIGURED", GIT_API_RATE_LIMITED = "GIT_API_RATE_LIMITED", GIT_API_TREE_TRUNCATED = "GIT_API_TREE_TRUNCATED", GIT_API_AUTH_FAILED = "GIT_API_AUTH_FAILED", GIT_API_REPO_NOT_FOUND = "GIT_API_REPO_NOT_FOUND", GIT_API_NETWORK_ERROR = "GIT_API_NETWORK_ERROR", DOC_INDEX_LLM_UNAVAILABLE = "DOC_INDEX_LLM_UNAVAILABLE", DOC_INDEX_EMBEDDING_UNAVAILABLE = "DOC_INDEX_EMBEDDING_UNAVAILABLE", DOC_INDEX_CONTENT_MISSING = "DOC_INDEX_CONTENT_MISSING", DOC_INDEX_PARSE_FAILED = "DOC_INDEX_PARSE_FAILED", DOC_INDEX_LLM_EXHAUSTED = "DOC_INDEX_LLM_EXHAUSTED", UNKNOWN = "UNKNOWN" } export type ErrorDetails = Record | string | null; export type ErrorResponse = { code: ErrorCode; message: string; details?: ErrorDetails; }; export declare class C4AError extends Error { readonly code: ErrorCode; readonly details: ErrorDetails | undefined; constructor(code: ErrorCode, message: string, details?: ErrorDetails, options?: ErrorOptions); toResponse(): ErrorResponse; } export type HttpStatusCode = 200 | 400 | 401 | 403 | 422 | 504 | 502 | 404 | 409 | 429 | 500 | 503 | 501; export declare function mapErrorCodeToStatus(code: ErrorCode): HttpStatusCode; export declare function generateId(type: string, parentId: string, name: string): string; export declare function generateUUID(): string; export declare function contentHash(content: string | Buffer): string; /** Type-safe check for plain objects (not arrays, null, or class instances). */ export declare function isPlainObject(value: unknown): value is Record; /** * Recursively merge `override` into `defaults`. * - Only keys present in `defaults` are merged (unknown keys in override are ignored). * - Nested plain objects are merged recursively. * - null/undefined values in override are ignored (default is preserved). * - If default is a plain object but override is not, override is ignored (type mismatch protection). */ export declare function mergeDefaults>(defaults: T, override: Record): T; export declare function isPathSafe(inputPath: string): boolean; export declare function serializeYaml(value: unknown): string; export declare function parseYaml(value: string): unknown; /** Convert a glob pattern to a RegExp. Supports `*`, `**`, `{a,b}`, `?`, `[abc]`. */ export declare const globToRegex: (glob: string) => RegExp; /** * Create a path matcher from include/exclude rules. * A path matches if it matches ANY include pattern AND does NOT match ANY exclude pattern. * If include is empty, nothing matches. */ export declare function createPathMatcher(rules: { include: string[]; exclude: string[]; }): (path: string) => boolean; export type PathFilterCategory = "package" | "code" | "doc"; /** * Check whether a path matches the given category's rules in the config. * - package: only has include rules * - code/doc: include + exclude */ export declare function matchesPathFilter(path: string, category: PathFilterCategory, config: { package: { include: string[]; }; code: { include: string[]; exclude: string[]; }; doc: { include: string[]; exclude: string[]; }; }): boolean; export declare function encodeVersionLabel(label: string): number | null; export declare function isVersionVisible(record: { valid_from: number | null; valid_until: number | null; }, versionCode?: number | null): boolean; /** * 构造 "检索增强" 前缀。api 在写入 Fact 时会把这段前缀拼到 content 开头, * 目的是让 BM25 / 向量 embedding 能召回到这些关键词(如组件名、包名、业务术语)。 * * Fact 是通用实体,关键词列表本身不绑定任何业务概念——caller 放什么,api 原样拼。 * 读取 Fact 时通过 stripSearchPrefix 剥离,消费端看到干净原文。 */ export declare function buildSearchPrefix(keywords: readonly string[] | null | undefined): string; /** 剥离 content 开头的 [c4a:search ...] 前缀(写入时加的检索增强头) */ export declare function stripSearchPrefix(content: string | null | undefined): string; export declare const DEFAULT_WORKSPACE_NAME = "My Brain"; export declare const DEFAULT_CLOUD_LIBRARY_NAME = "My Drive"; export declare const SUPERTEST_EMAIL = "supertest@context4ai.org"; export declare const SUPERTEST_USER_NAME = "SuperTest"; export declare const RESERVED_USER_NAMES: string[]; export declare const DAEMON_HEARTBEAT_INTERVAL = 30000; export declare const DAEMON_OFFLINE_THRESHOLD = 60000; export declare const CLOUD_DAEMON_IDLE_TIMEOUT = 300000; /** * Directory names to always exclude from import and indexing. * Shared between extract (filesystem scanning) and API (remote import / CAS indexing). */ export declare const SCAN_EXCLUDED_DIRS: Set; /** Digest type key for tree-chunked code extraction. */ export declare const CODE_DIGEST_TYPE = "code_tc_b"; /** Check whether a file path contains any excluded directory segment. */ export declare const hasExcludedSegment: (filePath: string) => boolean; export type ContentTypeCategory = "doc" | "code" | "package" | "binary"; export type ContentTypeDefinition = { id: string; category: ContentTypeCategory; match: { extensions?: string[]; filenames?: string[]; }; cas: { encoding: "utf8" | "base64"; hashInput: "content" | "identity"; }; pipeline: { digest: string[]; extraction: string[]; }; display: { icon: string; renderer: "text" | "code" | "package-card" | "binary-preview"; }; }; export declare class ContentTypeRegistry { private definitions; private extensionIndex; private filenameIndex; constructor(definitions: ContentTypeDefinition[]); resolve(filename: string): ContentTypeDefinition | null; getManifestFilenames(): string[]; getDefinitions(): ContentTypeDefinition[]; } export declare const defaultRegistry: ContentTypeRegistry; export declare const DEFAULT_CONTENT_TYPE_DEFINITIONS: ContentTypeDefinition[]; /** * Centralized file-type whitelists derived from ContentTypeRegistry. * * Three categories: * - **Indexable** — files the extract engine can parse and model. * - **Uploadable** — files users can upload as documents (including non-indexable formats). * - **Text** — subset of uploadable files that are plain-text (read as UTF-8, not base64). */ export declare const INDEXABLE_CODE_EXTENSIONS: Set; export declare const INDEXABLE_DOC_EXTENSIONS: Set; export declare const INDEXABLE_EXTENSIONS: Set; export declare const UPLOAD_ALLOWED_EXTENSIONS: Set; export declare const TEXT_EXTENSIONS: Set; export declare const UPLOAD_MAX_FILE_SIZE: number; export declare const UPLOAD_MAX_FILES = 20; /** Extract lower-case extension including the dot. */ export declare function getFileExtension(name: string): string; /** * Check whether a file name represents an indexable file. * Matches against both extension-based sets and manifest file names. */ export declare function isIndexableFile(fileName: string, manifestFiles: Set): boolean; export declare const INDEXER_OUTPUT_REDACTION_MARKER = "[REDACTED:indexer-output]"; export type IndexerOutputChannel = "success-payload" | "stdout" | "stderr" | "exception-message" | "ipc-envelope" | "review-sample" | "audit-report"; export type IndexerBlockedOutputScalar = string | number; export interface IndexerOutputRedactionPolicy { blocked_scalars?: readonly IndexerBlockedOutputScalar[]; } export interface IndexerOutputRedactionResult { value: T; redacted: boolean; replacement_count: number; } export declare function redactIndexerOutput(input: { channel: IndexerOutputChannel; value: T; policy?: IndexerOutputRedactionPolicy; }): IndexerOutputRedactionResult; export declare function redactIndexerOutputText(input: { channel: "stdout" | "stderr" | "exception-message"; value: string; policy?: IndexerOutputRedactionPolicy; }): string; export declare function assertIndexerOutputSafe(input: { channel: "success-payload" | "ipc-envelope" | "review-sample" | "audit-report"; value: T; policy?: IndexerOutputRedactionPolicy; }): T; export declare const symbolParamSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodNullable; optional: z.ZodOptional; rest: z.ZodOptional; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string | null; name: string; optional?: boolean | undefined; rest?: boolean | undefined; defaultValue?: string | undefined; }, { type: string | null; name: string; optional?: boolean | undefined; rest?: boolean | undefined; defaultValue?: string | undefined; }>; declare const registrationSchema: z.ZodObject<{ kind: z.ZodEnum<[ "http", "schedule", "event" ]>; key: z.ZodString; handler: z.ZodString; method: z.ZodOptional; middleware: z.ZodArray; }, "strip", z.ZodTypeAny, { key: string; kind: "http" | "schedule" | "event"; handler: string; middleware: string[]; method?: string | undefined; }, { key: string; kind: "http" | "schedule" | "event"; handler: string; middleware: string[]; method?: string | undefined; }>; export type SymbolInfo = { name: string; kind: SymbolKind; visibility: Visibility; file: string; line: number; endLine: number; members?: SymbolInfo[] | undefined; params?: z.infer[] | undefined; optional?: boolean | undefined; readonly?: boolean | undefined; defaultValue?: string | undefined; typeParameters?: string | undefined; overloads?: string[] | undefined; publicEntrypoints?: string[] | undefined; contractResolution?: "resolved" | "declaration-only" | undefined; registration?: z.infer | undefined; returnType?: string | null | undefined; typeAnnotation?: string | null | undefined; extends?: string | null | undefined; implements?: string[] | undefined; doc?: string | null | undefined; propsType?: string | null | undefined; unionValues?: string[] | undefined; initializer?: string | null | undefined; signature?: string | null | undefined; }; export declare const symbolInfoSchema: z.ZodType; export declare const relationInfoSchema: z.ZodObject<{ type: z.ZodEnum<[ EdgeType.Imports, EdgeType.ImportsType, EdgeType.Calls, EdgeType.Extends, EdgeType.Implements, EdgeType.ParamType, EdgeType.ReturnType, EdgeType.OfType, EdgeType.DependsOn, EdgeType.Contains ]>; from: z.ZodString; to: z.ZodString; file: z.ZodOptional; isExternal: z.ZodBoolean; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; confidence: z.ZodNumber; source: z.ZodEnum<[ EdgeSource.Ast, EdgeSource.Doc, EdgeSource.Manual ]>; line: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }>; export declare const fileInfoSchema: z.ZodObject<{ path: z.ZodString; language: z.ZodString; lines: z.ZodNumber; }, "strip", z.ZodTypeAny, { path: string; language: string; lines: number; }, { path: string; language: string; lines: number; }>; export declare const extractionDiagnosticSchema: z.ZodObject<{ code: z.ZodString; severity: z.ZodEnum<[ "info", "warning", "error" ]>; file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; }, "strip", z.ZodTypeAny, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }>; export declare const extractionCoverageSchema: z.ZodObject<{ tier: z.ZodEnum<[ "ast-catalog", "lightweight-evidence" ]>; capabilities: z.ZodArray; files: z.ZodArray; diagnosticCodes: z.ZodArray; }, "strip", z.ZodTypeAny, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }>, "many">; diagnostics: z.ZodArray; file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; }, "strip", z.ZodTypeAny, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }>, "many">; }, "strip", z.ZodTypeAny, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }>; export declare const extractionMetaSchema: z.ZodObject<{ extractedAt: z.ZodString; pluginId: z.ZodString; commitHash: z.ZodNullable; language: z.ZodString; }, "strip", z.ZodTypeAny, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }>; export declare const extractionPackageSchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<[ PackageKind, ...PackageKind[] ]>; language: z.ZodString; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: PackageKind; language: string; version?: string | undefined; }, { name: string; kind: PackageKind; language: string; version?: string | undefined; }>; export declare const extractionStatsSchema: z.ZodObject<{ files: z.ZodNumber; lines: z.ZodNumber; exportedSymbols: z.ZodNumber; internalSymbols: z.ZodNumber; relations: z.ZodNumber; }, "strip", z.ZodTypeAny, { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }, { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }>; export declare const extractionResultSchema: z.ZodObject<{ version: z.ZodLiteral<"2">; meta: z.ZodObject<{ extractedAt: z.ZodString; pluginId: z.ZodString; commitHash: z.ZodNullable; language: z.ZodString; }, "strip", z.ZodTypeAny, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }>; package: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<[ PackageKind, ...PackageKind[] ]>; language: z.ZodString; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: PackageKind; language: string; version?: string | undefined; }, { name: string; kind: PackageKind; language: string; version?: string | undefined; }>; files: z.ZodArray, "many">; symbols: z.ZodArray, "many">; relations: z.ZodArray; from: z.ZodString; to: z.ZodString; file: z.ZodOptional; isExternal: z.ZodBoolean; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; confidence: z.ZodNumber; source: z.ZodEnum<[ EdgeSource.Ast, EdgeSource.Doc, EdgeSource.Manual ]>; line: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }>, "many">; coverage: z.ZodOptional; capabilities: z.ZodArray; files: z.ZodArray; diagnosticCodes: z.ZodArray; }, "strip", z.ZodTypeAny, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }>, "many">; diagnostics: z.ZodArray; file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; }, "strip", z.ZodTypeAny, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }>, "many">; }, "strip", z.ZodTypeAny, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }>>; stats: z.ZodObject<{ files: z.ZodNumber; lines: z.ZodNumber; exportedSymbols: z.ZodNumber; internalSymbols: z.ZodNumber; relations: z.ZodNumber; }, "strip", z.ZodTypeAny, { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }, { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }>; }, "strip", z.ZodTypeAny, { package: { name: string; kind: PackageKind; language: string; version?: string | undefined; }; relations: { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }[]; version: "2"; files: { path: string; language: string; lines: number; }[]; meta: { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }; symbols: SymbolInfo[]; stats: { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }; coverage?: { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; } | undefined; }, { package: { name: string; kind: PackageKind; language: string; version?: string | undefined; }; relations: { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }[]; version: "2"; files: { path: string; language: string; lines: number; }[]; meta: { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }; symbols: SymbolInfo[]; stats: { relations: number; files: number; lines: number; exportedSymbols: number; internalSymbols: number; }; coverage?: { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; } | undefined; }>; export declare const digestStatsSchema: z.ZodObject<{ files: z.ZodNumber; lines: z.ZodNumber; exported_count: z.ZodNumber; internal_count: z.ZodNumber; relations: z.ZodNumber; }, "strip", z.ZodTypeAny, { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }, { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }>; export declare const digestDataSchema: z.ZodObject<{ version: z.ZodLiteral<"2">; meta: z.ZodObject<{ extractedAt: z.ZodString; pluginId: z.ZodString; commitHash: z.ZodNullable; language: z.ZodString; }, "strip", z.ZodTypeAny, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }, { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }>; package: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<[ PackageKind, ...PackageKind[] ]>; language: z.ZodString; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; kind: PackageKind; language: string; version?: string | undefined; }, { name: string; kind: PackageKind; language: string; version?: string | undefined; }>; files: z.ZodArray, "many">; symbols: z.ZodArray, "many">; relations: z.ZodArray; from: z.ZodString; to: z.ZodString; file: z.ZodOptional; isExternal: z.ZodBoolean; grounding: z.ZodEnum<[ Grounding, ...Grounding[] ]>; confidence: z.ZodNumber; source: z.ZodEnum<[ EdgeSource.Ast, EdgeSource.Doc, EdgeSource.Manual ]>; line: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }, { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }>, "many">; coverage: z.ZodOptional; capabilities: z.ZodArray; files: z.ZodArray; diagnosticCodes: z.ZodArray; }, "strip", z.ZodTypeAny, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }, { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }>, "many">; diagnostics: z.ZodArray; file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; }, "strip", z.ZodTypeAny, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }, { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }>, "many">; }, "strip", z.ZodTypeAny, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }, { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; }>>; stats: z.ZodObject<{ files: z.ZodNumber; lines: z.ZodNumber; exported_count: z.ZodNumber; internal_count: z.ZodNumber; relations: z.ZodNumber; }, "strip", z.ZodTypeAny, { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }, { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }>; }, "strip", z.ZodTypeAny, { package: { name: string; kind: PackageKind; language: string; version?: string | undefined; }; relations: { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }[]; version: "2"; files: { path: string; language: string; lines: number; }[]; meta: { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }; symbols: SymbolInfo[]; stats: { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }; coverage?: { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; } | undefined; }, { package: { name: string; kind: PackageKind; language: string; version?: string | undefined; }; relations: { type: EdgeType.Contains | EdgeType.Imports | EdgeType.ImportsType | EdgeType.Calls | EdgeType.Extends | EdgeType.Implements | EdgeType.ParamType | EdgeType.ReturnType | EdgeType.OfType | EdgeType.DependsOn; confidence: number; from: string; to: string; grounding: Grounding; source: EdgeSource; isExternal: boolean; file?: string | undefined; line?: number | undefined; }[]; version: "2"; files: { path: string; language: string; lines: number; }[]; meta: { language: string; extractedAt: string; pluginId: string; commitHash: string | null; }; symbols: SymbolInfo[]; stats: { relations: number; files: number; lines: number; exported_count: number; internal_count: number; }; coverage?: { capabilities: string[]; files: { path: string; disposition: "analyzed" | "unsupported" | "excluded"; diagnosticCodes: string[]; }[]; diagnostics: { code: string; severity: "warning" | "info" | "error"; file: string; line: number; column: number; }[]; tier: "ast-catalog" | "lightweight-evidence"; } | undefined; }>; export declare const symbolDiffSchema: z.ZodObject<{ added: z.ZodArray; removed: z.ZodArray; }, "strip", z.ZodTypeAny, { added: string[]; removed: string[]; }, { added: string[]; removed: string[]; }>; export type RelationInfo = z.infer; export type FileInfo = z.infer; export type ExtractionMeta = z.infer; export type ExtractionPackageInfo = z.infer; export type ExtractionStats = z.infer; export type ExtractionDiagnostic = z.infer; export type ExtractionCoverage = z.infer; export type ExtractionResult = z.infer; export type DigestData = z.infer; export type SymbolDiff = z.infer; export declare const manifestTypeSchema: z.ZodEnum<[ "package.json", "pyproject.toml", "Cargo.toml", "go.mod", "pom.xml" ]>; export declare const entryFileSchema: z.ZodObject<{ path: z.ZodString; subpath: z.ZodString; type: z.ZodEnum<[ "library", "cli", "service", "webapp" ]>; }, "strip", z.ZodTypeAny, { type: "service" | "cli" | "library" | "webapp"; path: string; subpath: string; }, { type: "service" | "cli" | "library" | "webapp"; path: string; subpath: string; }>; export declare const manifestInfoSchema: z.ZodObject<{ type: z.ZodEnum<[ "package.json", "pyproject.toml", "Cargo.toml", "go.mod", "pom.xml" ]>; path: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }, { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }>; export declare const sourceInfoSchema: z.ZodObject<{ path: z.ZodString; manifests: z.ZodArray; path: z.ZodString; content: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }, { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }>, "many">; language: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; manifests: { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }[]; language?: string | undefined; }, { path: string; manifests: { type: "package.json" | "go.mod" | "pyproject.toml" | "Cargo.toml" | "pom.xml"; content: Record; path: string; }[]; language?: string | undefined; }>; export declare const entryDetectionResultSchema: z.ZodType; export declare const patternDetectionResultSchema: z.ZodObject<{ endpoints: z.ZodOptional, "many">>; implicitDeps: z.ZodOptional; target: z.ZodString; file: z.ZodString; line: z.ZodNumber; }, "strip", z.ZodTypeAny, { target: string; file: string; line: number; verb: "depends_on" | "produce" | "consume" | "serve"; }, { target: string; file: string; line: number; verb: "depends_on" | "produce" | "consume" | "serve"; }>, "many">>; configRefs: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { endpoints?: { method: string; path: string; handler: string; file: string; line: number; }[] | undefined; implicitDeps?: { target: string; file: string; line: number; verb: "depends_on" | "produce" | "consume" | "serve"; }[] | undefined; configRefs?: { key: string; file: string; line: number; }[] | undefined; }, { endpoints?: { method: string; path: string; handler: string; file: string; line: number; }[] | undefined; implicitDeps?: { target: string; file: string; line: number; verb: "depends_on" | "produce" | "consume" | "serve"; }[] | undefined; configRefs?: { key: string; file: string; line: number; }[] | undefined; }>; export type EntryFile = z.infer; export type ManifestInfo = z.infer; export type SourceInfo = z.infer; export type EntryDetectionResult = { package: { name: string; kind: PackageKind; language: string; version?: string | undefined; }; entries: EntryFile[]; subPackages?: EntryDetectionResult[] | undefined; }; export type PatternDetectionResult = z.infer; interface FileSystem$1 { readFile(path: string): Promise; readdir(path: string): Promise; exists(path: string): Promise; readJson(path: string): Promise; } export interface ExtractionPlugin { id: string; languages: string[]; packageManagers: string[]; capabilities?: string[]; coverageTier?: "ast-catalog" | "lightweight-evidence"; manifestTypes?: ManifestInfo["type"][]; canHandle(source: SourceInfo): boolean; detectEntries(manifest: ManifestInfo, fs: FileSystem$1): Promise; extractSymbols(entries: EntryFile[], fs: FileSystem$1): Promise; detectPatterns?(fs: FileSystem$1): Promise; } export declare class ExtractionPluginRegistry { #private; register(plugin: ExtractionPlugin): void; resolve(source: SourceInfo): ExtractionPlugin | null; list(): ExtractionPlugin[]; } export declare const generateDigest: (result: ExtractionResult) => DigestData; export declare const generateSymbolDiff: (current: DigestData, previous: DigestData | null) => SymbolDiff; export interface DocumentCaptureFidelityIssue { severity: "warning" | "error"; impact: "evidence" | "projection"; code: string; block_type: string; count: number; reason: string; } export interface DocumentCaptureFidelityReport { status: "complete" | "warning" | "error"; evidence_status: "complete" | "error"; projection_status: "complete" | "generic" | "warning" | "error"; discovered: Record; converted: Record; skipped: Array<{ block_type: string; count: number; reason: string; }>; issues: DocumentCaptureFidelityIssue[]; } export declare const DOCUMENT_RESOURCE_SOURCE_MISSING_REASON_CODE = "document.resource.source-missing"; export declare const DOCUMENT_RESOURCE_PERMISSION_DENIED_REASON_CODE = "document.resource.permission-denied"; export declare function isNonBlockingDocumentResourceFailureReasonCode(code: string | undefined): boolean; export interface DocumentResourceMaterializationItem { kind: string; locator: string; status: "materialized" | "reference-only" | "failed"; required: boolean; asset_paths: string[]; reason_code?: string; reason?: string; } export interface DocumentResourceMaterializationReport { status: "complete" | "warning" | "error"; discovered: Record; materialized: Record; reference_only: Record; failed: Record; items: DocumentResourceMaterializationItem[]; } export declare function parseDocumentCaptureFidelity(value: unknown, field: string): DocumentCaptureFidelityReport | undefined; export declare function parseDocumentResourceMaterialization(value: unknown, field: string): DocumentResourceMaterializationReport | undefined; export declare const DOCUMENT_EVIDENCE_NORMALIZER_VERSION = "document-evidence-normalizer.v2"; export declare const DOCUMENT_SNAPSHOT_MANIFEST_SCHEMA_VERSION = "document.snapshot.v2"; export declare const DEFAULT_SOURCE_SPAN_HASH_LENGTH = 12; export type DocumentSourceType = "file" | "lark" | "note" | "sessions"; export interface LogicalRawHashFile { path: string; bytes: string | Uint8Array; } export interface DocumentSourceSpan { heading_hint: string; heading_path: string[]; line_start: number; line_end: number; line_range: string; span_hash: string; full_span_hash: string; text: string; text_preview: string; } export interface ParsedSpanSourceRef { locator?: string; heading_hint: string; line_start: number; line_end: number; span_hash: string; } export interface DocumentSourceLocator { sourceType: DocumentSourceType; sourceName: string; documentPath: string; } export interface DocumentSnapshotFileInput { path: string; bytes: string | Uint8Array; title?: string; locator?: string; source_path?: string; } export interface DocumentSnapshotFileEntry { path: string; source_path?: string; content_hash: string; line_count: number; title?: string; locator?: string; } export interface DocumentSnapshotAssetEntry { path: string; content_hash?: string; media_type?: string; role?: "evidence" | "presentation" | "audit"; source?: Record; } export interface DocumentSnapshotManifestMetadata { source?: { url?: string; docToken?: string; wikiToken?: string; title?: string; revisionId?: string; }; capture?: { include?: string[]; documentExtensions?: string[]; routeFiles?: Array<{ path: string; routes: string[]; }>; routeHints?: Array<{ documentPath: string; route: string; metadataPath: string; }>; report?: { path: string; fidelityStatus: DocumentCaptureFidelityReport["status"]; evidenceStatus: DocumentCaptureFidelityReport["evidence_status"]; projectionStatus: DocumentCaptureFidelityReport["projection_status"]; resourceStatus: DocumentResourceMaterializationReport["status"]; }; fidelity?: DocumentCaptureFidelityReport; resourceMaterialization?: DocumentResourceMaterializationReport; }; } export interface DocumentSnapshotManifest { schema_version: typeof DOCUMENT_SNAPSHOT_MANIFEST_SCHEMA_VERSION; source_type: DocumentSourceType; source_name: string; captured_at: string; snapshot_hash: string; normalizer_version: string; files: DocumentSnapshotFileEntry[]; assets?: DocumentSnapshotAssetEntry[]; metadata?: DocumentSnapshotManifestMetadata; } export declare function normalizeDocumentSourceName(name: string): string; export declare function normalizeSnapshotRelativePath(path: string): string; export declare function encodeSnapshotLocatorPath(path: string): string; export declare function decodeSnapshotLocatorPath(path: string): string; export declare function parseDocumentSourceLocator(source: string): DocumentSourceLocator | null; export declare function normalizeMarkdownDocument(input: string): string; export declare function computeDocumentContentHash(bytes: string | Uint8Array): string; export declare function countMarkdownLines(bytes: string | Uint8Array): number; export declare function computeLogicalRawHash(files: readonly LogicalRawHashFile[]): string; export declare function truncateSourceSpanHash(hash: string, length?: number): string; export declare function createDocumentSourceSpan(markdown: string, input: { lineStart: number; lineEnd: number; hashLength?: number; }): DocumentSourceSpan; export declare function formatSpanSourceRef(span: Pick, options?: { locator?: string; hashLength?: number; }): string; export declare function formatCanonicalProseSourceRef(input: { sourceType: DocumentSourceType; sourceName: string; documentPath: string; span: Pick; hashLength?: number; }): string; export declare function parseSpanSourceRef(value: string): ParsedSpanSourceRef | null; export declare function sourceSpanHashMatches(refHash: string, fullSpanHash: string): boolean; export declare function createDocumentSnapshotFileEntry(input: DocumentSnapshotFileInput): DocumentSnapshotFileEntry; export declare function createDocumentSnapshotManifest(input: { sourceType: DocumentSourceType; sourceName: string; capturedAt: string; files: readonly DocumentSnapshotFileInput[]; assets?: readonly DocumentSnapshotAssetEntry[]; metadata?: DocumentSnapshotManifestMetadata; normalizerVersion?: string; }): DocumentSnapshotManifest; export declare function parseDocumentSnapshotManifest(value: unknown): DocumentSnapshotManifest; /** Check if a directory name should be skipped during scanning. */ export declare const isScanExcludedDir: (name: string) => boolean; export type ModuleScanResult = { name: string; path: string; files: string[]; excludedFiles?: string[]; fileCount: number; totalLines: number; }; export type ModuleBoundaryResult = { name: string; path: string; manifest: string; manifests: string[]; version?: string; }; export declare const scanSourceFiles: (rootDir: string, excludeDirs?: Set, ref?: string, pathFilter?: PathFilterConfig) => Promise; export declare const detectModules: (repoPath: string, ref?: string, pathFilter?: PathFilterConfig) => Promise; /** * Detect module/package boundaries without scanning source files or counting * lines. This is intended for planning and human scope confirmation. It reuses * the same git-backed manifest discovery path as detectModules(), so large * monorepos avoid ad hoc filesystem walks when git metadata is available. */ export declare const detectModuleBoundaries: (repoPath: string, ref?: string, pathFilter?: PathFilterConfig) => Promise; /** * Build a ModuleScanResult for a single module directory without scanning * the entire repository. Much faster than detectModules() when the caller * already knows which directories to index. * * @param repoPath - Repository root (used for relative path calculation) * @param modulePath - Relative posix path of the module (e.g. "packages/api"), or "." for root */ export declare const detectModuleAt: (repoPath: string, modulePath: string, ref?: string, pathFilter?: PathFilterConfig) => Promise; export declare const PACKAGE_JSON = "package.json"; export declare const GO_MOD = "go.mod"; export interface RepositoryExtractionProgressEvent { phase: "scanning" | "parsing" | "uploading"; progress: number; module_name?: string; module_path?: string; message?: string; } export interface RepositoryExtractionInput { repoPath: string; modules?: string[]; ref?: string; commitHash?: string | null; moduleCommits?: Record; pathFilter?: PathFilterConfig; entrySelection?: RepositoryEntrySelection; plugins: ExtractionPlugin[]; onProgress?: (event: RepositoryExtractionProgressEvent) => void; } export type RepositoryEntrySelection = { mode: "auto"; } | { mode: "configured"; entries: readonly string[]; } | { mode: "scan"; }; export interface RepositoryExtractionModuleResult { module: ModuleScanResult; sourceInfo: SourceInfo; entryDetection: EntryDetectionResult; moduleDoc?: string; extraction: ExtractionResult; } export interface RepositoryExtractionModuleError { module_name: string; module_path: string; error: string; } export interface RepositoryExtractionResult { repoPath: string; results: RepositoryExtractionModuleResult[]; moduleErrors: RepositoryExtractionModuleError[]; } export declare const normalizeRelativePath: (value: string) => string; export declare const resolveRepoRelativePath: (modulePath: string, value: string) => string; export declare const resolveModuleDir: (repoPath: string, modulePath: string) => string; export declare const resolveModuleFsPath: (moduleDir: string, filePath: string) => string; export declare const createModuleFileSystem: (moduleDir: string) => FileSystem$1; export declare const loadSourceInfo: (modulePath: string, fs: FileSystem$1) => Promise; export declare const prefixSymbolPaths: (symbol: SymbolInfo, modulePath: string) => SymbolInfo; export declare const prefixEntryDetectionPaths: (entryDetection: EntryDetectionResult, modulePath: string) => EntryDetectionResult; export declare const prefixExtractionPaths: (extraction: ExtractionResult, modulePath: string, commitHash: string | null) => ExtractionResult; export declare const normalizeExtractionPaths: (extraction: ExtractionResult, entryDetection: EntryDetectionResult, modulePath: string, commitHash: string | null) => { extraction: ExtractionResult; entryDetection: EntryDetectionResult; }; export declare const runRepositoryExtraction: (input: RepositoryExtractionInput) => Promise; export interface FlatSymbolRow extends Omit { package: string; package_name: string; symbol_id: string; modulePath: string; module_path: string; } export interface CodePackageRow { name: string; kind: string; language: string; modulePath: string; hash_id: string; version?: string; description?: string; } export interface CodeEdgeRow extends RelationInfo { package: string; package_name: string; modulePath: string; module_path: string; version_label: string; hash_id: string; } export type CodeVersionSource = "explicit" | "package-json" | "fallback-0.0.1"; export interface CodeDigestRow { hash_id: string; module_name: string; module_path: string; package_name: string; dir_commit: string; version_label: string; version_source: CodeVersionSource; module_content_hash: string; dirty: boolean; doc?: string; digest: DigestData; } export interface CodeSourceFileRow { source_id: string; source_path: string; hash_id: string; digest_hash_id: string; version_label: string; version_source: CodeVersionSource; branch: string | null; package_name: string; module_path: string; } export interface CodeSnapshotManifest { snapshot_id: string; source_id: string; source_slug: string; source_type: "aspect-code"; captured_at: string; code_snapshot_contract_version: string; head_commit: string | null; dirty: boolean; script_hash: string; toolchain: CodeSnapshotToolchain; version_policy: CodeSourceManifest["version_policy"]; version_label?: string; version_source?: CodeVersionSource | "mixed"; snapshot_content_hash: string; worktree_content_hash?: string; total_bytes: number; module_count: number; symbol_count: number; edge_count: number; } export declare const CODE_SNAPSHOT_META_SCHEMA_VERSION = "code.snapshot.meta.v2"; export interface CodeSnapshotMeta { schema_version: typeof CODE_SNAPSHOT_META_SCHEMA_VERSION; source_id: string; aspect: "code"; commit: string | null; captured_at: string; script_hash: string; content_hash: string; inputs: Array<{ module_path: string; package_name: string; hash_id: string; digest_hash_id: string; dir_commit: string; module_content_hash: string; dirty: boolean; version_label: string; version_source: CodeVersionSource; }>; snapshot_id: string; source_slug: string; code_snapshot_contract_version: string; snapshot_content_hash: string; toolchain: CodeSnapshotToolchain; version_policy: CodeSourceManifest["version_policy"]; version_label?: string; version_source?: CodeVersionSource | "mixed"; head_commit: string | null; dirty: boolean; worktree_content_hash?: string; } export interface CodeSnapshotToolchain { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; } export interface CodeSourceManifest { source_id: string; source_slug: string; source_type: "aspect-code"; repo_path: string; origin_path: string; snapshot_id: string; snapshot_content_hash: string; code_snapshot_contract_version: string; toolchain: CodeSnapshotToolchain; version_policy: "package-version" | "module-commit" | "explicit" | "none"; version_label?: string; version_source?: CodeVersionSource | "mixed"; captured_at: string; } export interface CodeSnapshotRows { packages: CodePackageRow[]; symbols: FlatSymbolRow[]; edges: CodeEdgeRow[]; digests: CodeDigestRow[]; sourceFiles: CodeSourceFileRow[]; } export interface BuildDigestDataInput { moduleName: string; modulePath: string; extraction: ExtractionResult; dirCommit: string; versionLabel?: string | null; versionSource?: CodeVersionSource; moduleDoc?: string; dirty?: boolean; } export interface BuildCodeSnapshotInput { sourceId: string; sourceSlug: string; snapshotId: string; repoPath: string; sourceCommit?: string | null; originPath?: string; capturedAt?: string; codeSnapshotContractVersion: string; scriptHash: string; toolchain: CodeSnapshotToolchain; versionPolicy?: "package-version" | "module-commit" | "explicit" | "none"; dirCommits?: Record; versionLabels?: Record; versionSources?: Record; dirtyModules?: Record; worktreeContentHash?: string; results: RepositoryExtractionModuleResult[]; } export interface CodeSnapshotPayload { source: CodeSourceManifest; manifest: CodeSnapshotManifest; rows: CodeSnapshotRows; files: Record; } export declare const stableStringify: (value: unknown) => string; export declare const hashStable: (value: unknown) => string; export declare const jsonl: (rows: unknown[]) => string; export declare const manifestText: (value: unknown) => string; export declare const canonicalizeCodeVersionLabel: (value: string) => string | null; export declare const metaText: (manifest: CodeSnapshotManifest, source: CodeSourceManifest, rows: CodeSnapshotRows) => string; export declare function flattenSymbols(symbols: SymbolInfo[], packageName: string, modulePath: string): FlatSymbolRow[]; export declare const buildHashId: (packageName: string, dirCommit: string, moduleContentHash?: string, dirty?: boolean) => string; export declare const buildSourceFileHashId: (packageName: string, sourceCommit: string | null | undefined) => string; export declare const buildPackageHashId: (packageName: string, modulePath: string, version: string | undefined, description: string | undefined) => string; export declare const buildEdgeHashId: (edge: RelationInfo, packageName: string, modulePath: string, versionLabel: string) => string; export declare const buildDigestData: (input: BuildDigestDataInput) => CodeDigestRow; export declare const buildCodeSnapshot: (input: BuildCodeSnapshotInput) => CodeSnapshotPayload; export interface CodeExtractRunnerPluginSpec { package: string; exportName?: string | undefined; } export interface CodeExtractRunnerInput { repoPath: string; modules?: string[]; ref?: string; commitHash?: string | null; moduleCommits?: Record; pathFilter?: PathFilterConfig; entrySelection?: { mode: "auto"; } | { mode: "configured"; entries: string[]; } | { mode: "scan"; }; plugins: CodeExtractRunnerPluginSpec[]; snapshot?: { sourceId: string; sourceSlug: string; snapshotId: string; codeSnapshotContractVersion: string; scriptHash: string; toolchain: { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; }; sourceCommit?: string | null; versionPolicy?: "package-version" | "module-commit" | "explicit" | "none"; originPath?: string; worktreeContentHash?: string; }; } export type CodeExtractRunnerEvent = { type: "progress"; phase: string; progress: number; module_name?: string; module_path?: string; message?: string; } | { type: "module_error"; module_name: string; module_path: string; error: string; } | { type: "summary"; extraction: RepositoryExtractionResult; snapshot?: CodeSnapshotPayload; } | { type: "error"; code: string; message: string; }; export declare const codeExtractRunnerInputSchema: z.ZodObject<{ repoPath: z.ZodString; modules: z.ZodOptional>; ref: z.ZodOptional; commitHash: z.ZodOptional>; moduleCommits: z.ZodOptional>>; pathFilter: z.ZodOptional>; }, "strip", z.ZodTypeAny, { include: string[]; }, { include?: string[] | undefined; }>>; code: z.ZodDefault>; exclude: z.ZodDefault>; }, "strip", z.ZodTypeAny, { include: string[]; exclude: string[]; }, { include?: string[] | undefined; exclude?: string[] | undefined; }>>; doc: z.ZodDefault>; exclude: z.ZodDefault>; }, "strip", z.ZodTypeAny, { include: string[]; exclude: string[]; }, { include?: string[] | undefined; exclude?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { package: { include: string[]; }; code: { include: string[]; exclude: string[]; }; doc: { include: string[]; exclude: string[]; }; }, { package?: { include?: string[] | undefined; } | undefined; code?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; doc?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; }>>; entrySelection: z.ZodOptional; }, "strip", z.ZodTypeAny, { mode: "auto"; }, { mode: "auto"; }>, z.ZodObject<{ mode: z.ZodLiteral<"configured">; entries: z.ZodArray; }, "strip", z.ZodTypeAny, { entries: string[]; mode: "configured"; }, { entries: string[]; mode: "configured"; }>, z.ZodObject<{ mode: z.ZodLiteral<"scan">; }, "strip", z.ZodTypeAny, { mode: "scan"; }, { mode: "scan"; }> ]>>; plugins: z.ZodArray; }, "strip", z.ZodTypeAny, { package: string; exportName?: string | undefined; }, { package: string; exportName?: string | undefined; }>, "many">; snapshot: z.ZodOptional; sourceCommit: z.ZodOptional>; versionPolicy: z.ZodOptional>; originPath: z.ZodOptional; worktreeContentHash: z.ZodOptional; }, "strip", z.ZodTypeAny, { sourceId: string; toolchain: { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; }; sourceSlug: string; snapshotId: string; codeSnapshotContractVersion: string; scriptHash: string; sourceCommit?: string | null | undefined; versionPolicy?: "none" | "explicit" | "package-version" | "module-commit" | undefined; originPath?: string | undefined; worktreeContentHash?: string | undefined; }, { sourceId: string; toolchain: { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; }; sourceSlug: string; snapshotId: string; codeSnapshotContractVersion: string; scriptHash: string; sourceCommit?: string | null | undefined; versionPolicy?: "none" | "explicit" | "package-version" | "module-commit" | undefined; originPath?: string | undefined; worktreeContentHash?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { repoPath: string; plugins: { package: string; exportName?: string | undefined; }[]; ref?: string | undefined; commitHash?: string | null | undefined; modules?: string[] | undefined; moduleCommits?: Record | undefined; pathFilter?: { package: { include: string[]; }; code: { include: string[]; exclude: string[]; }; doc: { include: string[]; exclude: string[]; }; } | undefined; entrySelection?: { mode: "auto"; } | { entries: string[]; mode: "configured"; } | { mode: "scan"; } | undefined; snapshot?: { sourceId: string; toolchain: { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; }; sourceSlug: string; snapshotId: string; codeSnapshotContractVersion: string; scriptHash: string; sourceCommit?: string | null | undefined; versionPolicy?: "none" | "explicit" | "package-version" | "module-commit" | undefined; originPath?: string | undefined; worktreeContentHash?: string | undefined; } | undefined; }, { repoPath: string; plugins: { package: string; exportName?: string | undefined; }[]; ref?: string | undefined; commitHash?: string | null | undefined; modules?: string[] | undefined; moduleCommits?: Record | undefined; pathFilter?: { package?: { include?: string[] | undefined; } | undefined; code?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; doc?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; } | undefined; entrySelection?: { mode: "auto"; } | { entries: string[]; mode: "configured"; } | { mode: "scan"; } | undefined; snapshot?: { sourceId: string; toolchain: { manager_package: string; manager_version: string; runner_package: string; runner_package_version: string; runner_bin: string; plugin_package: string; plugin_package_version: string; plugin_export: string; }; sourceSlug: string; snapshotId: string; codeSnapshotContractVersion: string; scriptHash: string; sourceCommit?: string | null | undefined; versionPolicy?: "none" | "explicit" | "package-version" | "module-commit" | undefined; originPath?: string | undefined; worktreeContentHash?: string | undefined; } | undefined; }>; export declare const loadRunnerPlugins: (pluginSpecs: CodeExtractRunnerPluginSpec[], cwd?: string) => Promise; export declare const runCodeExtractRunner: (rawInput: unknown, cwd?: string) => Promise; export declare const runCodeExtractCli: () => Promise; export declare const runCodeExtractCliFromFile: (inputFile: string) => Promise; export declare const NO_ENTRY_DETECTED: "NO_ENTRY_DETECTED"; export declare class ExtractionInputError extends Error { readonly code: string; readonly detail: Record | undefined; constructor(code: string, message: string, detail?: Record); } export interface ExtractionEvidenceAdapterInvocation { adapter: IndexerEvidenceAdapterResult["adapter"]; authorized_scope: IndexerEvidenceAdapterResult["authorized_scope"]; module_ref: string | null; input_digest: string; precedence: number; role?: "primary-owner" | "enricher"; /** Already scoped source text; used only for physical file extents, never persisted. */ source_files?: Readonly>; } /** * Converts the legacy ExtractionResult v2 carrier into the common parser ABI. * Coverage is mandatory: silently treating a parser result as analyzed would * let unsupported files inflate the eligible-file and symbol denominators. */ export declare function extractionResultToEvidenceAdapterResult(extraction: ExtractionResult, invocation: ExtractionEvidenceAdapterInvocation): IndexerEvidenceAdapterResult; /** Builds the wire result and its process-local structured fact payload sidecar. */ export declare function extractionResultToEvidenceAdapterMaterialization(extraction: ExtractionResult, invocation: ExtractionEvidenceAdapterInvocation): IndexerEvidenceAdapterMaterialization; export type ConfigFormat = "json" | "yaml" | "toml" | "excluded"; export type ConfigValueType = "object" | "array" | "string" | "number" | "boolean" | "null" | "datetime"; export type ConfigValueClassification = "container" | "scalar" | "secret-like" | "reference-like" | "enum-allowlisted"; export type ConfigBoundaryCandidate = "entry" | "route" | "build" | "protocol" | "runtime" | "dependency"; export interface ConfigLocator { path: string; line: number; column: number; qualified_item_path: string; } export interface ConfigValueFact { config_ref: string; key_path: string[]; value_type: ConfigValueType; classification: ConfigValueClassification; boundary_candidate: ConfigBoundaryCandidate | null; value_digest: string | null; normalized_value?: string | number | boolean | null; locator: ConfigLocator; } export interface ConfigDiagnostic { code: "config-source-unsupported" | "config-enum-value-not-allowlisted"; severity: "warning" | "error"; locator: ConfigLocator; detail: string; } export interface ConfigDocumentCatalog { path: string; format: ConfigFormat; disposition: "analyzed" | "unsupported" | "excluded"; values: ConfigValueFact[]; diagnostics: ConfigDiagnostic[]; } export type ConfigAllowlistedScalar = string | number | boolean | null; export interface ConfigScalarAllowlistEntry { path: string; key_path: readonly string[]; allowed_values: readonly ConfigAllowlistedScalar[]; } export interface ConfigParseOptions { non_sensitive_enums?: readonly ConfigScalarAllowlistEntry[]; } export interface ConfigEvidenceAdapterInvocation { adapter: IndexerEvidenceAdapterResult["adapter"]; authorized_scope: IndexerEvidenceAdapterResult["authorized_scope"]; input_digest: string; precedence: number; module_refs?: Readonly>; role?: "primary-owner" | "enricher"; } export declare function parseConfigSources(files: Readonly>, options?: ConfigParseOptions): ConfigDocumentCatalog[]; export declare function configSourcesToEvidenceAdapterResult(files: Readonly>, invocation: ConfigEvidenceAdapterInvocation, options?: ConfigParseOptions): IndexerEvidenceAdapterResult; /** Builds the wire result and its process-local structured fact payload sidecar. */ export declare function configSourcesToEvidenceAdapterMaterialization(files: Readonly>, invocation: ConfigEvidenceAdapterInvocation, options?: ConfigParseOptions): IndexerEvidenceAdapterMaterialization; type Language = ParserTypes.Language; type Tree = ParserTypes.Tree; export declare const initParser: () => Promise<{ parser: ParserTypes; tsLanguage: Language; tsxLanguage: Language; }>; export declare const parseFile: (source: string, isTsx: boolean) => Promise; export declare const getGitCommitHash: (repoPath: string) => string | null; export declare const detectTechStack: (repoPath: string) => Promise; export declare const CONFIG_EVIDENCE_ADAPTER_EXPORT = "configSourcesToEvidenceAdapterMaterialization"; export { FileSystem$1 as FileSystem, }; export {};