import { z } from 'zod'; 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; }[]; }>; type IndexerEvidenceAdapterResult = z.infer; type IndexerEvidenceAdapterFactPayloadValue = null | boolean | number | string | IndexerEvidenceAdapterFactPayloadValue[] | { [key: string]: IndexerEvidenceAdapterFactPayloadValue; }; interface IndexerEvidenceAdapterFactPayload { fact_ref: string; payload: IndexerEvidenceAdapterFactPayloadValue; } interface IndexerEvidenceAdapterMaterialization { result: IndexerEvidenceAdapterResult; fact_payloads: IndexerEvidenceAdapterFactPayload[]; } export interface ThriftToken { kind: "identifier" | "string" | "number" | "symbol"; value: string; line: number; column: number; } export declare class ThriftSyntaxError extends Error { readonly line: number; readonly column: number; constructor(message: string, line: number, column: number); } export declare function lexThrift(source: string): ThriftToken[]; interface ThriftField { name: string; type: string; number: string; optional?: boolean; defaultValue?: string; location: { line: number; column: number; }; } export interface ThriftLocator { path: string; line: number; column: number; } export interface ThriftImport { path: string; resolved_path: string; locator: ThriftLocator; } export interface ThriftType { kind: "typedef" | "enum" | "struct" | "union" | "exception"; name: string; fields?: ThriftField[]; locator: ThriftLocator; } export interface ThriftMethod { name: string; return_type: string; oneway: boolean; fields?: ThriftField[]; throws?: ThriftField[]; locator: ThriftLocator; } export interface ThriftService { name: string; extends: string | null; methods: ThriftMethod[]; locator: ThriftLocator; } export interface ThriftAnnotation { owner: string; name: string; locator: ThriftLocator; } export interface ThriftDocument { path: string; disposition: "analyzed" | "unsupported" | "excluded"; imports: ThriftImport[]; namespaces: Array<{ scope: string; name: string; locator: ThriftLocator; }>; types: ThriftType[]; services: ThriftService[]; annotations: ThriftAnnotation[]; diagnostic: string | null; } export declare function parseThriftSources(files: Readonly>): ThriftDocument[]; export declare const THRIFT_EVIDENCE_ADAPTER_EXPORT = "thriftSourcesToEvidenceAdapterMaterialization"; export interface ThriftEvidenceAdapterInvocation { adapter: IndexerEvidenceAdapterResult["adapter"]; authorized_scope: IndexerEvidenceAdapterResult["authorized_scope"]; input_digest: string; precedence: number; module_refs?: Readonly>; role?: "primary-owner" | "enricher"; } /** Parses only the caller-provided source map and converts it to the common Evidence ABI. */ export declare function thriftSourcesToEvidenceAdapterResult(files: Readonly>, invocation: ThriftEvidenceAdapterInvocation): IndexerEvidenceAdapterResult; export declare function thriftSourcesToEvidenceAdapterMaterialization(files: Readonly>, invocation: ThriftEvidenceAdapterInvocation): IndexerEvidenceAdapterMaterialization; export {};