import { z } from 'zod';
import type { EntityBounds } from './entity/types.js';
declare const EXACT_TOKENIZERS: readonly ["o200k_base", "cl100k_base"];
export declare const AtomCoverageSchema: z.ZodEnum<{
    partial: "partial";
    unavailable: "unavailable";
    complete: "complete";
}>;
export type AtomCoverage = z.infer<typeof AtomCoverageSchema>;
export declare const AtomSourceSpanV1Schema: z.ZodObject<{
    start_line: z.ZodNumber;
    end_line: z.ZodNumber;
    exact: z.ZodBoolean;
}, z.core.$strict>;
export type AtomSourceSpanV1 = z.infer<typeof AtomSourceSpanV1Schema>;
export declare const AtomCoordinateV1Schema: z.ZodObject<{
    oid: z.ZodString;
    path: z.ZodString;
    span: z.ZodObject<{
        start_line: z.ZodNumber;
        end_line: z.ZodNumber;
        exact: z.ZodBoolean;
    }, z.core.$strict>;
    span_digest: z.ZodString;
}, z.core.$strict>;
export type AtomCoordinateV1 = z.infer<typeof AtomCoordinateV1Schema>;
export declare const AtomChangeFlagsV1Schema: z.ZodObject<{
    path_changed: z.ZodOptional<z.ZodBoolean>;
    name_changed: z.ZodOptional<z.ZodBoolean>;
    container_changed: z.ZodOptional<z.ZodBoolean>;
    kind_changed: z.ZodOptional<z.ZodBoolean>;
    body_changed: z.ZodOptional<z.ZodBoolean>;
    logic_changed: z.ZodOptional<z.ZodBoolean>;
    cosmetic_only: z.ZodOptional<z.ZodBoolean>;
    order_changed: z.ZodOptional<z.ZodBoolean>;
    signature_changed: z.ZodOptional<z.ZodBoolean>;
    export_changed: z.ZodOptional<z.ZodBoolean>;
    span_inexact: z.ZodOptional<z.ZodBoolean>;
    git_rename_applied: z.ZodOptional<z.ZodBoolean>;
    ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
    evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
    bound_hit: z.ZodOptional<z.ZodBoolean>;
    birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
export type AtomChangeFlagsV1 = z.infer<typeof AtomChangeFlagsV1Schema>;
export declare const AtomMatchEvidenceV1Schema: z.ZodObject<{
    pool: z.ZodEnum<{
        none: "none";
        "same-path": "same-path";
        "git-rename": "git-rename";
        "cross-file": "cross-file";
    }>;
    hashes_comparable: z.ZodBoolean;
    body_hash_equal: z.ZodOptional<z.ZodBoolean>;
    normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
    structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
    signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
    similarity: z.ZodOptional<z.ZodNumber>;
    runner_up_similarity: z.ZodOptional<z.ZodNumber>;
    tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
    candidate_count: z.ZodOptional<z.ZodNumber>;
    git_rename_similarity: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>;
export type AtomMatchEvidenceV1 = z.infer<typeof AtomMatchEvidenceV1Schema>;
export declare const AtomEntityChangeV1Schema: z.ZodObject<{
    before: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    after: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    change_class: z.ZodEnum<{
        unknown: "unknown";
        added: "added";
        renamed: "renamed";
        moved: "moved";
        reordered: "reordered";
        removed: "removed";
        logic: "logic";
        cosmetic: "cosmetic";
    }>;
    semantic_class: z.ZodEnum<{
        unknown: "unknown";
        logic: "logic";
        cosmetic: "cosmetic";
        neutral: "neutral";
    }>;
    lineage_id: z.ZodString;
    match_reason: z.ZodEnum<{
        none: "none";
        similarity: "similarity";
        "exact-identity": "exact-identity";
        "git-rename-identity": "git-rename-identity";
        "content-hash": "content-hash";
        "normalized-hash": "normalized-hash";
        "structural-hash": "structural-hash";
        "signature-name": "signature-name";
        "qualified-name": "qualified-name";
    }>;
    match_confidence: z.ZodNumber;
    match_evidence: z.ZodOptional<z.ZodObject<{
        pool: z.ZodEnum<{
            none: "none";
            "same-path": "same-path";
            "git-rename": "git-rename";
            "cross-file": "cross-file";
        }>;
        hashes_comparable: z.ZodBoolean;
        body_hash_equal: z.ZodOptional<z.ZodBoolean>;
        normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
        structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
        signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
        similarity: z.ZodOptional<z.ZodNumber>;
        runner_up_similarity: z.ZodOptional<z.ZodNumber>;
        tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
        candidate_count: z.ZodOptional<z.ZodNumber>;
        git_rename_similarity: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strict>>;
    flags: z.ZodObject<{
        path_changed: z.ZodOptional<z.ZodBoolean>;
        name_changed: z.ZodOptional<z.ZodBoolean>;
        container_changed: z.ZodOptional<z.ZodBoolean>;
        kind_changed: z.ZodOptional<z.ZodBoolean>;
        body_changed: z.ZodOptional<z.ZodBoolean>;
        logic_changed: z.ZodOptional<z.ZodBoolean>;
        cosmetic_only: z.ZodOptional<z.ZodBoolean>;
        order_changed: z.ZodOptional<z.ZodBoolean>;
        signature_changed: z.ZodOptional<z.ZodBoolean>;
        export_changed: z.ZodOptional<z.ZodBoolean>;
        span_inexact: z.ZodOptional<z.ZodBoolean>;
        git_rename_applied: z.ZodOptional<z.ZodBoolean>;
        ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
        evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
        bound_hit: z.ZodOptional<z.ZodBoolean>;
        birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type AtomEntityChangeV1 = z.infer<typeof AtomEntityChangeV1Schema>;
export declare const AtomDiagnosticV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"diagnostic">;
    severity: z.ZodEnum<{
        error: "error";
        warning: "warning";
    }>;
    code: z.ZodString;
    message: z.ZodString;
    parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    child_ref: z.ZodOptional<z.ZodString>;
    path: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
export type AtomDiagnosticV1 = z.infer<typeof AtomDiagnosticV1Schema>;
export declare const AtomMeasuresV1Schema: z.ZodObject<{
    basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
    tokens: z.ZodNumber;
    bytes: z.ZodNumber;
    lines: z.ZodNumber;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    coverage: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
}, z.core.$strict>;
export type AtomMeasuresV1 = z.infer<typeof AtomMeasuresV1Schema>;
export declare const AtomModulePairV1Schema: z.ZodObject<{
    key: z.ZodString;
    module_a: z.ZodString;
    module_b: z.ZodString;
}, z.core.$strict>;
export type AtomModulePairV1 = z.infer<typeof AtomModulePairV1Schema>;
export declare const AtomModulePairsTouchedV1Schema: z.ZodObject<{
    count: z.ZodNumber;
    modules: z.ZodArray<z.ZodString>;
    pairs: z.ZodArray<z.ZodObject<{
        key: z.ZodString;
        module_a: z.ZodString;
        module_b: z.ZodString;
    }, z.core.$strict>>;
    basis: z.ZodLiteral<"changed-directory-module-pairs">;
    coverage: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
}, z.core.$strict>;
export type AtomModulePairsTouchedV1 = z.infer<typeof AtomModulePairsTouchedV1Schema>;
export declare const AtomRevertEdgeV1Schema: z.ZodObject<{
    child_ref: z.ZodString;
    parent_ref: z.ZodNullable<z.ZodString>;
    parent_index: z.ZodNullable<z.ZodNumber>;
}, z.core.$strict>;
export type AtomRevertEdgeV1 = z.infer<typeof AtomRevertEdgeV1Schema>;
export declare const AtomEpisodeV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"episode">;
    cursor: z.ZodString;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    observed_at: z.ZodString;
    message_ref: z.ZodString;
    author: z.ZodObject<{
        name: z.ZodString;
        email: z.ZodString;
        authored_at: z.ZodString;
    }, z.core.$strict>;
    entities: z.ZodArray<z.ZodObject<{
        before: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        after: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        change_class: z.ZodEnum<{
            unknown: "unknown";
            added: "added";
            renamed: "renamed";
            moved: "moved";
            reordered: "reordered";
            removed: "removed";
            logic: "logic";
            cosmetic: "cosmetic";
        }>;
        semantic_class: z.ZodEnum<{
            unknown: "unknown";
            logic: "logic";
            cosmetic: "cosmetic";
            neutral: "neutral";
        }>;
        lineage_id: z.ZodString;
        match_reason: z.ZodEnum<{
            none: "none";
            similarity: "similarity";
            "exact-identity": "exact-identity";
            "git-rename-identity": "git-rename-identity";
            "content-hash": "content-hash";
            "normalized-hash": "normalized-hash";
            "structural-hash": "structural-hash";
            "signature-name": "signature-name";
            "qualified-name": "qualified-name";
        }>;
        match_confidence: z.ZodNumber;
        match_evidence: z.ZodOptional<z.ZodObject<{
            pool: z.ZodEnum<{
                none: "none";
                "same-path": "same-path";
                "git-rename": "git-rename";
                "cross-file": "cross-file";
            }>;
            hashes_comparable: z.ZodBoolean;
            body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
            structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
            similarity: z.ZodOptional<z.ZodNumber>;
            runner_up_similarity: z.ZodOptional<z.ZodNumber>;
            tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
            candidate_count: z.ZodOptional<z.ZodNumber>;
            git_rename_similarity: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strict>>;
        flags: z.ZodObject<{
            path_changed: z.ZodOptional<z.ZodBoolean>;
            name_changed: z.ZodOptional<z.ZodBoolean>;
            container_changed: z.ZodOptional<z.ZodBoolean>;
            kind_changed: z.ZodOptional<z.ZodBoolean>;
            body_changed: z.ZodOptional<z.ZodBoolean>;
            logic_changed: z.ZodOptional<z.ZodBoolean>;
            cosmetic_only: z.ZodOptional<z.ZodBoolean>;
            order_changed: z.ZodOptional<z.ZodBoolean>;
            signature_changed: z.ZodOptional<z.ZodBoolean>;
            export_changed: z.ZodOptional<z.ZodBoolean>;
            span_inexact: z.ZodOptional<z.ZodBoolean>;
            git_rename_applied: z.ZodOptional<z.ZodBoolean>;
            ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
            evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            bound_hit: z.ZodOptional<z.ZodBoolean>;
            birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    measures: z.ZodObject<{
        basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
        tokens: z.ZodNumber;
        bytes: z.ZodNumber;
        lines: z.ZodNumber;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    patch_id: z.ZodNullable<z.ZodString>;
    revert_of: z.ZodNullable<z.ZodObject<{
        child_ref: z.ZodString;
        parent_ref: z.ZodNullable<z.ZodString>;
        parent_index: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strict>>;
    module_pairs_touched: z.ZodObject<{
        count: z.ZodNumber;
        modules: z.ZodArray<z.ZodString>;
        pairs: z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            module_a: z.ZodString;
            module_b: z.ZodString;
        }, z.core.$strict>>;
        basis: z.ZodLiteral<"changed-directory-module-pairs">;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    coverage: z.ZodObject<{
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type AtomEpisodeV1 = z.infer<typeof AtomEpisodeV1Schema>;
export declare const AtomLineageHeadV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"lineage-head">;
    lineage_id: z.ZodString;
    coordinate: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    entity_lineage_id: z.ZodNullable<z.ZodString>;
    resolution: z.ZodEnum<{
        unavailable: "unavailable";
        resolved: "resolved";
        ambiguous: "ambiguous";
        not_found: "not_found";
    }>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type AtomLineageHeadV1 = z.infer<typeof AtomLineageHeadV1Schema>;
export declare const AtomEntityBoundsV1Schema: z.ZodObject<{
    max_commits: z.ZodNumber;
    max_files_per_commit: z.ZodNumber;
    max_blob_bytes: z.ZodNumber;
    max_blob_lines: z.ZodNumber;
    max_total_blob_bytes: z.ZodNumber;
    max_batch_bytes: z.ZodNumber;
    max_entities_per_file: z.ZodNumber;
    max_entities_total: z.ZodNumber;
    max_live_entities: z.ZodNumber;
    max_lineage_events: z.ZodNumber;
    max_cross_file_candidates: z.ZodNumber;
    max_similarity_candidates: z.ZodNumber;
}, z.core.$strict>;
export type AtomEntityBoundsV1 = z.infer<typeof AtomEntityBoundsV1Schema>;
export declare const AtomHeaderV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"header">;
    requested_ref: z.ZodString;
    resolved_ref: z.ZodString;
    since_ref: z.ZodNullable<z.ZodString>;
    resumed_from: z.ZodNullable<z.ZodString>;
    object_format: z.ZodEnum<{
        sha1: "sha1";
        sha256: "sha256";
    }>;
    shallow: z.ZodBoolean;
    lineage_run_id: z.ZodString;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    formats: z.ZodBoolean;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    lineage_thresholds: z.ZodObject<{
        similarity_min: z.ZodNumber;
        similarity_margin: z.ZodNumber;
        similarity_min_tokens: z.ZodNumber;
        similarity_length_ratio_min: z.ZodNumber;
        shingle_width: z.ZodNumber;
    }, z.core.$strict>;
    provenance: z.ZodObject<{
        instrument: z.ZodLiteral<"occ.atoms">;
        instrument_version: z.ZodLiteral<1>;
        occ_version: z.ZodString;
        node_version: z.ZodString;
    }, z.core.$strict>;
    policy: z.ZodObject<{
        topology: z.ZodLiteral<"all-parent-edges">;
        order: z.ZodLiteral<"parents-before-children">;
        replacements: z.ZodLiteral<"disabled">;
        grafts: z.ZodLiteral<"disabled">;
        lazy_fetch: z.ZodLiteral<"disabled">;
        source_bodies: z.ZodLiteral<"omitted">;
        span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
        lineage: z.ZodLiteral<"dag-branch-union-v1">;
        lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v1">;
        lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
        entity_parser: z.ZodLiteral<"occ.code.parsers@1">;
        module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
        native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
        entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
        checkout_node_ids: z.ZodLiteral<"omitted">;
        resume_computation: z.ZodLiteral<"warm-replay">;
    }, z.core.$strict>;
}, z.core.$strict>;
export type AtomHeaderV1 = z.infer<typeof AtomHeaderV1Schema>;
export declare const AtomFooterV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"footer">;
    complete: z.ZodBoolean;
    coverage: z.ZodObject<{
        history: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        head_mapping: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    counts: z.ZodObject<{
        commits_observed: z.ZodNumber;
        transitions_observed: z.ZodNumber;
        episodes_emitted: z.ZodNumber;
        entities_emitted: z.ZodNumber;
        lineages_observed: z.ZodNumber;
        lineage_heads_emitted: z.ZodNumber;
        diagnostics: z.ZodNumber;
    }, z.core.$strict>;
}, z.core.$strict>;
export type AtomFooterV1 = z.infer<typeof AtomFooterV1Schema>;
export declare const OccAtomsEventV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"header">;
    requested_ref: z.ZodString;
    resolved_ref: z.ZodString;
    since_ref: z.ZodNullable<z.ZodString>;
    resumed_from: z.ZodNullable<z.ZodString>;
    object_format: z.ZodEnum<{
        sha1: "sha1";
        sha256: "sha256";
    }>;
    shallow: z.ZodBoolean;
    lineage_run_id: z.ZodString;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    formats: z.ZodBoolean;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    lineage_thresholds: z.ZodObject<{
        similarity_min: z.ZodNumber;
        similarity_margin: z.ZodNumber;
        similarity_min_tokens: z.ZodNumber;
        similarity_length_ratio_min: z.ZodNumber;
        shingle_width: z.ZodNumber;
    }, z.core.$strict>;
    provenance: z.ZodObject<{
        instrument: z.ZodLiteral<"occ.atoms">;
        instrument_version: z.ZodLiteral<1>;
        occ_version: z.ZodString;
        node_version: z.ZodString;
    }, z.core.$strict>;
    policy: z.ZodObject<{
        topology: z.ZodLiteral<"all-parent-edges">;
        order: z.ZodLiteral<"parents-before-children">;
        replacements: z.ZodLiteral<"disabled">;
        grafts: z.ZodLiteral<"disabled">;
        lazy_fetch: z.ZodLiteral<"disabled">;
        source_bodies: z.ZodLiteral<"omitted">;
        span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
        lineage: z.ZodLiteral<"dag-branch-union-v1">;
        lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v1">;
        lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
        entity_parser: z.ZodLiteral<"occ.code.parsers@1">;
        module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
        native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
        entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
        checkout_node_ids: z.ZodLiteral<"omitted">;
        resume_computation: z.ZodLiteral<"warm-replay">;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"diagnostic">;
    severity: z.ZodEnum<{
        error: "error";
        warning: "warning";
    }>;
    code: z.ZodString;
    message: z.ZodString;
    parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    child_ref: z.ZodOptional<z.ZodString>;
    path: z.ZodOptional<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"episode">;
    cursor: z.ZodString;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    observed_at: z.ZodString;
    message_ref: z.ZodString;
    author: z.ZodObject<{
        name: z.ZodString;
        email: z.ZodString;
        authored_at: z.ZodString;
    }, z.core.$strict>;
    entities: z.ZodArray<z.ZodObject<{
        before: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        after: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        change_class: z.ZodEnum<{
            unknown: "unknown";
            added: "added";
            renamed: "renamed";
            moved: "moved";
            reordered: "reordered";
            removed: "removed";
            logic: "logic";
            cosmetic: "cosmetic";
        }>;
        semantic_class: z.ZodEnum<{
            unknown: "unknown";
            logic: "logic";
            cosmetic: "cosmetic";
            neutral: "neutral";
        }>;
        lineage_id: z.ZodString;
        match_reason: z.ZodEnum<{
            none: "none";
            similarity: "similarity";
            "exact-identity": "exact-identity";
            "git-rename-identity": "git-rename-identity";
            "content-hash": "content-hash";
            "normalized-hash": "normalized-hash";
            "structural-hash": "structural-hash";
            "signature-name": "signature-name";
            "qualified-name": "qualified-name";
        }>;
        match_confidence: z.ZodNumber;
        match_evidence: z.ZodOptional<z.ZodObject<{
            pool: z.ZodEnum<{
                none: "none";
                "same-path": "same-path";
                "git-rename": "git-rename";
                "cross-file": "cross-file";
            }>;
            hashes_comparable: z.ZodBoolean;
            body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
            structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
            similarity: z.ZodOptional<z.ZodNumber>;
            runner_up_similarity: z.ZodOptional<z.ZodNumber>;
            tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
            candidate_count: z.ZodOptional<z.ZodNumber>;
            git_rename_similarity: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strict>>;
        flags: z.ZodObject<{
            path_changed: z.ZodOptional<z.ZodBoolean>;
            name_changed: z.ZodOptional<z.ZodBoolean>;
            container_changed: z.ZodOptional<z.ZodBoolean>;
            kind_changed: z.ZodOptional<z.ZodBoolean>;
            body_changed: z.ZodOptional<z.ZodBoolean>;
            logic_changed: z.ZodOptional<z.ZodBoolean>;
            cosmetic_only: z.ZodOptional<z.ZodBoolean>;
            order_changed: z.ZodOptional<z.ZodBoolean>;
            signature_changed: z.ZodOptional<z.ZodBoolean>;
            export_changed: z.ZodOptional<z.ZodBoolean>;
            span_inexact: z.ZodOptional<z.ZodBoolean>;
            git_rename_applied: z.ZodOptional<z.ZodBoolean>;
            ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
            evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            bound_hit: z.ZodOptional<z.ZodBoolean>;
            birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    measures: z.ZodObject<{
        basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
        tokens: z.ZodNumber;
        bytes: z.ZodNumber;
        lines: z.ZodNumber;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    patch_id: z.ZodNullable<z.ZodString>;
    revert_of: z.ZodNullable<z.ZodObject<{
        child_ref: z.ZodString;
        parent_ref: z.ZodNullable<z.ZodString>;
        parent_index: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strict>>;
    module_pairs_touched: z.ZodObject<{
        count: z.ZodNumber;
        modules: z.ZodArray<z.ZodString>;
        pairs: z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            module_a: z.ZodString;
            module_b: z.ZodString;
        }, z.core.$strict>>;
        basis: z.ZodLiteral<"changed-directory-module-pairs">;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    coverage: z.ZodObject<{
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"lineage-head">;
    lineage_id: z.ZodString;
    coordinate: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    entity_lineage_id: z.ZodNullable<z.ZodString>;
    resolution: z.ZodEnum<{
        unavailable: "unavailable";
        resolved: "resolved";
        ambiguous: "ambiguous";
        not_found: "not_found";
    }>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    type: z.ZodLiteral<"footer">;
    complete: z.ZodBoolean;
    coverage: z.ZodObject<{
        history: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        head_mapping: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    counts: z.ZodObject<{
        commits_observed: z.ZodNumber;
        transitions_observed: z.ZodNumber;
        episodes_emitted: z.ZodNumber;
        entities_emitted: z.ZodNumber;
        lineages_observed: z.ZodNumber;
        lineage_heads_emitted: z.ZodNumber;
        diagnostics: z.ZodNumber;
    }, z.core.$strict>;
}, z.core.$strict>], "type">;
export type OccAtomsEventV1 = z.infer<typeof OccAtomsEventV1Schema>;
export interface OccAtomsOptions {
    repoPath: string;
    ref?: string;
    since?: string;
    resume?: string;
    tokenizer?: (typeof EXACT_TOKENIZERS)[number];
    bounds?: EntityBounds;
    formats?: boolean;
    signal?: AbortSignal;
}
declare const CursorPayloadV1Schema: z.ZodObject<{
    schema_version: z.ZodLiteral<1>;
    resolved_ref: z.ZodString;
    since_ref: z.ZodNullable<z.ZodString>;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    lineage_run_id: z.ZodString;
    occ_version: z.ZodString;
    lineage_algorithm: z.ZodLiteral<"dag-branch-union-v1">;
    entity_parser: z.ZodLiteral<"occ.code.parsers@1">;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    formats: z.ZodBoolean;
    options_fingerprint: z.ZodString;
}, z.core.$strict>;
export type AtomsCursorPayloadV1 = z.infer<typeof CursorPayloadV1Schema>;
export declare const AtomChangeFlagsV2Schema: z.ZodObject<{
    path_changed: z.ZodOptional<z.ZodBoolean>;
    name_changed: z.ZodOptional<z.ZodBoolean>;
    container_changed: z.ZodOptional<z.ZodBoolean>;
    kind_changed: z.ZodOptional<z.ZodBoolean>;
    body_changed: z.ZodOptional<z.ZodBoolean>;
    logic_changed: z.ZodOptional<z.ZodBoolean>;
    cosmetic_only: z.ZodOptional<z.ZodBoolean>;
    order_changed: z.ZodOptional<z.ZodBoolean>;
    signature_changed: z.ZodOptional<z.ZodBoolean>;
    export_changed: z.ZodOptional<z.ZodBoolean>;
    span_inexact: z.ZodOptional<z.ZodBoolean>;
    git_rename_applied: z.ZodOptional<z.ZodBoolean>;
    ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
    evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
    bound_hit: z.ZodOptional<z.ZodBoolean>;
    birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
    signature_evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
    semantic_basis: z.ZodOptional<z.ZodEnum<{
        "nontrivia-syntax-change": "nontrivia-syntax-change";
        "whitespace-significance-unverified": "whitespace-significance-unverified";
        "comment-only-change": "comment-only-change";
        "syntax-evidence-unavailable": "syntax-evidence-unavailable";
        "grammar-verification-refused": "grammar-verification-refused";
    }>>;
}, z.core.$strict>;
export type AtomChangeFlagsV2 = z.infer<typeof AtomChangeFlagsV2Schema>;
export declare const AtomMatchEvidenceV2Schema: z.ZodObject<{
    pool: z.ZodEnum<{
        none: "none";
        "same-path": "same-path";
        "git-rename": "git-rename";
        "cross-file": "cross-file";
    }>;
    hashes_comparable: z.ZodBoolean;
    body_hash_equal: z.ZodOptional<z.ZodBoolean>;
    normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
    structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
    signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
    similarity: z.ZodOptional<z.ZodNumber>;
    runner_up_similarity: z.ZodOptional<z.ZodNumber>;
    tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
    candidate_count: z.ZodOptional<z.ZodNumber>;
    git_rename_similarity: z.ZodOptional<z.ZodNumber>;
    exact_body_hash_equal: z.ZodOptional<z.ZodBoolean>;
    signature_evidence_equal: z.ZodOptional<z.ZodBoolean>;
    reverse_runner_up_similarity: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>;
export type AtomMatchEvidenceV2 = z.infer<typeof AtomMatchEvidenceV2Schema>;
export declare const AtomEntityChangeV2Schema: z.ZodObject<{
    before: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    after: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    match_reason: z.ZodEnum<{
        none: "none";
        similarity: "similarity";
        "exact-identity": "exact-identity";
        "git-rename-identity": "git-rename-identity";
        "content-hash": "content-hash";
        "normalized-hash": "normalized-hash";
        "structural-hash": "structural-hash";
        "signature-name": "signature-name";
        "qualified-name": "qualified-name";
    }>;
    change_class: z.ZodEnum<{
        unknown: "unknown";
        added: "added";
        renamed: "renamed";
        moved: "moved";
        reordered: "reordered";
        removed: "removed";
        logic: "logic";
        cosmetic: "cosmetic";
    }>;
    semantic_class: z.ZodEnum<{
        unknown: "unknown";
        logic: "logic";
        cosmetic: "cosmetic";
        neutral: "neutral";
    }>;
    lineage_id: z.ZodString;
    match_confidence: z.ZodNumber;
    match_evidence: z.ZodOptional<z.ZodObject<{
        pool: z.ZodEnum<{
            none: "none";
            "same-path": "same-path";
            "git-rename": "git-rename";
            "cross-file": "cross-file";
        }>;
        hashes_comparable: z.ZodBoolean;
        body_hash_equal: z.ZodOptional<z.ZodBoolean>;
        normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
        structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
        signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
        similarity: z.ZodOptional<z.ZodNumber>;
        runner_up_similarity: z.ZodOptional<z.ZodNumber>;
        tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
        candidate_count: z.ZodOptional<z.ZodNumber>;
        git_rename_similarity: z.ZodOptional<z.ZodNumber>;
        exact_body_hash_equal: z.ZodOptional<z.ZodBoolean>;
        signature_evidence_equal: z.ZodOptional<z.ZodBoolean>;
        reverse_runner_up_similarity: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strict>>;
    flags: z.ZodObject<{
        path_changed: z.ZodOptional<z.ZodBoolean>;
        name_changed: z.ZodOptional<z.ZodBoolean>;
        container_changed: z.ZodOptional<z.ZodBoolean>;
        kind_changed: z.ZodOptional<z.ZodBoolean>;
        body_changed: z.ZodOptional<z.ZodBoolean>;
        logic_changed: z.ZodOptional<z.ZodBoolean>;
        cosmetic_only: z.ZodOptional<z.ZodBoolean>;
        order_changed: z.ZodOptional<z.ZodBoolean>;
        signature_changed: z.ZodOptional<z.ZodBoolean>;
        export_changed: z.ZodOptional<z.ZodBoolean>;
        span_inexact: z.ZodOptional<z.ZodBoolean>;
        git_rename_applied: z.ZodOptional<z.ZodBoolean>;
        ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
        evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
        bound_hit: z.ZodOptional<z.ZodBoolean>;
        birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
        signature_evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
        semantic_basis: z.ZodOptional<z.ZodEnum<{
            "nontrivia-syntax-change": "nontrivia-syntax-change";
            "whitespace-significance-unverified": "whitespace-significance-unverified";
            "comment-only-change": "comment-only-change";
            "syntax-evidence-unavailable": "syntax-evidence-unavailable";
            "grammar-verification-refused": "grammar-verification-refused";
        }>>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type AtomEntityChangeV2 = z.infer<typeof AtomEntityChangeV2Schema>;
export declare const AtomDiagnosticV2Schema: z.ZodObject<{
    message: z.ZodString;
    path: z.ZodOptional<z.ZodString>;
    code: z.ZodString;
    type: z.ZodLiteral<"diagnostic">;
    severity: z.ZodEnum<{
        error: "error";
        warning: "warning";
    }>;
    parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    child_ref: z.ZodOptional<z.ZodString>;
    schema_version: z.ZodLiteral<2>;
}, z.core.$strict>;
export type AtomDiagnosticV2 = z.infer<typeof AtomDiagnosticV2Schema>;
export declare const AtomEpisodeV2Schema: z.ZodObject<{
    coverage: z.ZodObject<{
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    type: z.ZodLiteral<"episode">;
    author: z.ZodObject<{
        name: z.ZodString;
        email: z.ZodString;
        authored_at: z.ZodString;
    }, z.core.$strict>;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    measures: z.ZodObject<{
        basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
        tokens: z.ZodNumber;
        bytes: z.ZodNumber;
        lines: z.ZodNumber;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    module_pairs_touched: z.ZodObject<{
        count: z.ZodNumber;
        modules: z.ZodArray<z.ZodString>;
        pairs: z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            module_a: z.ZodString;
            module_b: z.ZodString;
        }, z.core.$strict>>;
        basis: z.ZodLiteral<"changed-directory-module-pairs">;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    cursor: z.ZodString;
    observed_at: z.ZodString;
    message_ref: z.ZodString;
    patch_id: z.ZodNullable<z.ZodString>;
    revert_of: z.ZodNullable<z.ZodObject<{
        child_ref: z.ZodString;
        parent_ref: z.ZodNullable<z.ZodString>;
        parent_index: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strict>>;
    schema_version: z.ZodLiteral<2>;
    entities: z.ZodArray<z.ZodObject<{
        before: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        after: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        match_reason: z.ZodEnum<{
            none: "none";
            similarity: "similarity";
            "exact-identity": "exact-identity";
            "git-rename-identity": "git-rename-identity";
            "content-hash": "content-hash";
            "normalized-hash": "normalized-hash";
            "structural-hash": "structural-hash";
            "signature-name": "signature-name";
            "qualified-name": "qualified-name";
        }>;
        change_class: z.ZodEnum<{
            unknown: "unknown";
            added: "added";
            renamed: "renamed";
            moved: "moved";
            reordered: "reordered";
            removed: "removed";
            logic: "logic";
            cosmetic: "cosmetic";
        }>;
        semantic_class: z.ZodEnum<{
            unknown: "unknown";
            logic: "logic";
            cosmetic: "cosmetic";
            neutral: "neutral";
        }>;
        lineage_id: z.ZodString;
        match_confidence: z.ZodNumber;
        match_evidence: z.ZodOptional<z.ZodObject<{
            pool: z.ZodEnum<{
                none: "none";
                "same-path": "same-path";
                "git-rename": "git-rename";
                "cross-file": "cross-file";
            }>;
            hashes_comparable: z.ZodBoolean;
            body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
            structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
            similarity: z.ZodOptional<z.ZodNumber>;
            runner_up_similarity: z.ZodOptional<z.ZodNumber>;
            tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
            candidate_count: z.ZodOptional<z.ZodNumber>;
            git_rename_similarity: z.ZodOptional<z.ZodNumber>;
            exact_body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_evidence_equal: z.ZodOptional<z.ZodBoolean>;
            reverse_runner_up_similarity: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strict>>;
        flags: z.ZodObject<{
            path_changed: z.ZodOptional<z.ZodBoolean>;
            name_changed: z.ZodOptional<z.ZodBoolean>;
            container_changed: z.ZodOptional<z.ZodBoolean>;
            kind_changed: z.ZodOptional<z.ZodBoolean>;
            body_changed: z.ZodOptional<z.ZodBoolean>;
            logic_changed: z.ZodOptional<z.ZodBoolean>;
            cosmetic_only: z.ZodOptional<z.ZodBoolean>;
            order_changed: z.ZodOptional<z.ZodBoolean>;
            signature_changed: z.ZodOptional<z.ZodBoolean>;
            export_changed: z.ZodOptional<z.ZodBoolean>;
            span_inexact: z.ZodOptional<z.ZodBoolean>;
            git_rename_applied: z.ZodOptional<z.ZodBoolean>;
            ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
            evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            bound_hit: z.ZodOptional<z.ZodBoolean>;
            birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
            signature_evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            semantic_basis: z.ZodOptional<z.ZodEnum<{
                "nontrivia-syntax-change": "nontrivia-syntax-change";
                "whitespace-significance-unverified": "whitespace-significance-unverified";
                "comment-only-change": "comment-only-change";
                "syntax-evidence-unavailable": "syntax-evidence-unavailable";
                "grammar-verification-refused": "grammar-verification-refused";
            }>>;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type AtomEpisodeV2 = z.infer<typeof AtomEpisodeV2Schema>;
export declare const AtomLineageHeadV2Schema: z.ZodObject<{
    type: z.ZodLiteral<"lineage-head">;
    resolution: z.ZodEnum<{
        unavailable: "unavailable";
        resolved: "resolved";
        ambiguous: "ambiguous";
        not_found: "not_found";
    }>;
    coordinate: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    lineage_id: z.ZodString;
    entity_lineage_id: z.ZodNullable<z.ZodString>;
    schema_version: z.ZodLiteral<2>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type AtomLineageHeadV2 = z.infer<typeof AtomLineageHeadV2Schema>;
export declare const AtomHeaderV2Schema: z.ZodObject<{
    type: z.ZodLiteral<"header">;
    shallow: z.ZodBoolean;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    requested_ref: z.ZodString;
    resolved_ref: z.ZodString;
    object_format: z.ZodEnum<{
        sha1: "sha1";
        sha256: "sha256";
    }>;
    formats: z.ZodBoolean;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    since_ref: z.ZodNullable<z.ZodString>;
    resumed_from: z.ZodNullable<z.ZodString>;
    lineage_thresholds: z.ZodObject<{
        similarity_min: z.ZodNumber;
        similarity_margin: z.ZodNumber;
        similarity_min_tokens: z.ZodNumber;
        similarity_length_ratio_min: z.ZodNumber;
        shingle_width: z.ZodNumber;
    }, z.core.$strict>;
    schema_version: z.ZodLiteral<2>;
    lineage_run_id: z.ZodString;
    provenance: z.ZodObject<{
        instrument: z.ZodLiteral<"occ.atoms">;
        occ_version: z.ZodString;
        node_version: z.ZodString;
        instrument_version: z.ZodLiteral<2>;
    }, z.core.$strict>;
    policy: z.ZodObject<{
        order: z.ZodLiteral<"parents-before-children">;
        lineage: z.ZodLiteral<"dag-branch-union-v1">;
        span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
        source_bodies: z.ZodLiteral<"omitted">;
        topology: z.ZodLiteral<"all-parent-edges">;
        replacements: z.ZodLiteral<"disabled">;
        grafts: z.ZodLiteral<"disabled">;
        lazy_fetch: z.ZodLiteral<"disabled">;
        lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
        module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
        native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
        entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
        checkout_node_ids: z.ZodLiteral<"omitted">;
        resume_computation: z.ZodLiteral<"warm-replay">;
        lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v2">;
        entity_parser: z.ZodUnion<readonly [z.ZodLiteral<"occ.code.parsers@2">, z.ZodLiteral<"occ.code.parsers@3">, z.ZodLiteral<"occ.code.parsers@4">]>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type AtomHeaderV2 = z.infer<typeof AtomHeaderV2Schema>;
export declare const AtomFooterV2Schema: z.ZodObject<{
    coverage: z.ZodObject<{
        history: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        head_mapping: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    type: z.ZodLiteral<"footer">;
    counts: z.ZodObject<{
        commits_observed: z.ZodNumber;
        transitions_observed: z.ZodNumber;
        episodes_emitted: z.ZodNumber;
        entities_emitted: z.ZodNumber;
        lineages_observed: z.ZodNumber;
        lineage_heads_emitted: z.ZodNumber;
        diagnostics: z.ZodNumber;
    }, z.core.$strict>;
    complete: z.ZodBoolean;
    schema_version: z.ZodLiteral<2>;
}, z.core.$strict>;
export type AtomFooterV2 = z.infer<typeof AtomFooterV2Schema>;
export declare const OccAtomsEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"header">;
    shallow: z.ZodBoolean;
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    requested_ref: z.ZodString;
    resolved_ref: z.ZodString;
    object_format: z.ZodEnum<{
        sha1: "sha1";
        sha256: "sha256";
    }>;
    formats: z.ZodBoolean;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    since_ref: z.ZodNullable<z.ZodString>;
    resumed_from: z.ZodNullable<z.ZodString>;
    lineage_thresholds: z.ZodObject<{
        similarity_min: z.ZodNumber;
        similarity_margin: z.ZodNumber;
        similarity_min_tokens: z.ZodNumber;
        similarity_length_ratio_min: z.ZodNumber;
        shingle_width: z.ZodNumber;
    }, z.core.$strict>;
    schema_version: z.ZodLiteral<2>;
    lineage_run_id: z.ZodString;
    provenance: z.ZodObject<{
        instrument: z.ZodLiteral<"occ.atoms">;
        occ_version: z.ZodString;
        node_version: z.ZodString;
        instrument_version: z.ZodLiteral<2>;
    }, z.core.$strict>;
    policy: z.ZodObject<{
        order: z.ZodLiteral<"parents-before-children">;
        lineage: z.ZodLiteral<"dag-branch-union-v1">;
        span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
        source_bodies: z.ZodLiteral<"omitted">;
        topology: z.ZodLiteral<"all-parent-edges">;
        replacements: z.ZodLiteral<"disabled">;
        grafts: z.ZodLiteral<"disabled">;
        lazy_fetch: z.ZodLiteral<"disabled">;
        lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
        module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
        native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
        entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
        checkout_node_ids: z.ZodLiteral<"omitted">;
        resume_computation: z.ZodLiteral<"warm-replay">;
        lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v2">;
        entity_parser: z.ZodUnion<readonly [z.ZodLiteral<"occ.code.parsers@2">, z.ZodLiteral<"occ.code.parsers@3">, z.ZodLiteral<"occ.code.parsers@4">]>;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    message: z.ZodString;
    path: z.ZodOptional<z.ZodString>;
    code: z.ZodString;
    type: z.ZodLiteral<"diagnostic">;
    severity: z.ZodEnum<{
        error: "error";
        warning: "warning";
    }>;
    parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    child_ref: z.ZodOptional<z.ZodString>;
    schema_version: z.ZodLiteral<2>;
}, z.core.$strict>, z.ZodObject<{
    coverage: z.ZodObject<{
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    type: z.ZodLiteral<"episode">;
    author: z.ZodObject<{
        name: z.ZodString;
        email: z.ZodString;
        authored_at: z.ZodString;
    }, z.core.$strict>;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    measures: z.ZodObject<{
        basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
        tokens: z.ZodNumber;
        bytes: z.ZodNumber;
        lines: z.ZodNumber;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    module_pairs_touched: z.ZodObject<{
        count: z.ZodNumber;
        modules: z.ZodArray<z.ZodString>;
        pairs: z.ZodArray<z.ZodObject<{
            key: z.ZodString;
            module_a: z.ZodString;
            module_b: z.ZodString;
        }, z.core.$strict>>;
        basis: z.ZodLiteral<"changed-directory-module-pairs">;
        coverage: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    cursor: z.ZodString;
    observed_at: z.ZodString;
    message_ref: z.ZodString;
    patch_id: z.ZodNullable<z.ZodString>;
    revert_of: z.ZodNullable<z.ZodObject<{
        child_ref: z.ZodString;
        parent_ref: z.ZodNullable<z.ZodString>;
        parent_index: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strict>>;
    schema_version: z.ZodLiteral<2>;
    entities: z.ZodArray<z.ZodObject<{
        before: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        after: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        match_reason: z.ZodEnum<{
            none: "none";
            similarity: "similarity";
            "exact-identity": "exact-identity";
            "git-rename-identity": "git-rename-identity";
            "content-hash": "content-hash";
            "normalized-hash": "normalized-hash";
            "structural-hash": "structural-hash";
            "signature-name": "signature-name";
            "qualified-name": "qualified-name";
        }>;
        change_class: z.ZodEnum<{
            unknown: "unknown";
            added: "added";
            renamed: "renamed";
            moved: "moved";
            reordered: "reordered";
            removed: "removed";
            logic: "logic";
            cosmetic: "cosmetic";
        }>;
        semantic_class: z.ZodEnum<{
            unknown: "unknown";
            logic: "logic";
            cosmetic: "cosmetic";
            neutral: "neutral";
        }>;
        lineage_id: z.ZodString;
        match_confidence: z.ZodNumber;
        match_evidence: z.ZodOptional<z.ZodObject<{
            pool: z.ZodEnum<{
                none: "none";
                "same-path": "same-path";
                "git-rename": "git-rename";
                "cross-file": "cross-file";
            }>;
            hashes_comparable: z.ZodBoolean;
            body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
            structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
            similarity: z.ZodOptional<z.ZodNumber>;
            runner_up_similarity: z.ZodOptional<z.ZodNumber>;
            tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
            candidate_count: z.ZodOptional<z.ZodNumber>;
            git_rename_similarity: z.ZodOptional<z.ZodNumber>;
            exact_body_hash_equal: z.ZodOptional<z.ZodBoolean>;
            signature_evidence_equal: z.ZodOptional<z.ZodBoolean>;
            reverse_runner_up_similarity: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strict>>;
        flags: z.ZodObject<{
            path_changed: z.ZodOptional<z.ZodBoolean>;
            name_changed: z.ZodOptional<z.ZodBoolean>;
            container_changed: z.ZodOptional<z.ZodBoolean>;
            kind_changed: z.ZodOptional<z.ZodBoolean>;
            body_changed: z.ZodOptional<z.ZodBoolean>;
            logic_changed: z.ZodOptional<z.ZodBoolean>;
            cosmetic_only: z.ZodOptional<z.ZodBoolean>;
            order_changed: z.ZodOptional<z.ZodBoolean>;
            signature_changed: z.ZodOptional<z.ZodBoolean>;
            export_changed: z.ZodOptional<z.ZodBoolean>;
            span_inexact: z.ZodOptional<z.ZodBoolean>;
            git_rename_applied: z.ZodOptional<z.ZodBoolean>;
            ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
            evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            bound_hit: z.ZodOptional<z.ZodBoolean>;
            birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
            signature_evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
            semantic_basis: z.ZodOptional<z.ZodEnum<{
                "nontrivia-syntax-change": "nontrivia-syntax-change";
                "whitespace-significance-unverified": "whitespace-significance-unverified";
                "comment-only-change": "comment-only-change";
                "syntax-evidence-unavailable": "syntax-evidence-unavailable";
                "grammar-verification-refused": "grammar-verification-refused";
            }>>;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    type: z.ZodLiteral<"lineage-head">;
    resolution: z.ZodEnum<{
        unavailable: "unavailable";
        resolved: "resolved";
        ambiguous: "ambiguous";
        not_found: "not_found";
    }>;
    coordinate: z.ZodNullable<z.ZodObject<{
        oid: z.ZodString;
        path: z.ZodString;
        span: z.ZodObject<{
            start_line: z.ZodNumber;
            end_line: z.ZodNumber;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
        span_digest: z.ZodString;
    }, z.core.$strict>>;
    lineage_id: z.ZodString;
    entity_lineage_id: z.ZodNullable<z.ZodString>;
    schema_version: z.ZodLiteral<2>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    coverage: z.ZodObject<{
        history: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        entities: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        lineages: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        head_mapping: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        measures: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        patches: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        module_pairs: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
    }, z.core.$strict>;
    type: z.ZodLiteral<"footer">;
    counts: z.ZodObject<{
        commits_observed: z.ZodNumber;
        transitions_observed: z.ZodNumber;
        episodes_emitted: z.ZodNumber;
        entities_emitted: z.ZodNumber;
        lineages_observed: z.ZodNumber;
        lineage_heads_emitted: z.ZodNumber;
        diagnostics: z.ZodNumber;
    }, z.core.$strict>;
    complete: z.ZodBoolean;
    schema_version: z.ZodLiteral<2>;
}, z.core.$strict>], "type">;
export type OccAtomsEventV2 = z.infer<typeof OccAtomsEventV2Schema>;
declare const CursorPayloadV2Schema: z.ZodObject<{
    tokenizer: z.ZodEnum<{
        o200k_base: "o200k_base";
        cl100k_base: "cl100k_base";
    }>;
    resolved_ref: z.ZodString;
    occ_version: z.ZodString;
    formats: z.ZodBoolean;
    parent_ref: z.ZodNullable<z.ZodString>;
    child_ref: z.ZodString;
    parent_index: z.ZodNullable<z.ZodNumber>;
    bounds: z.ZodObject<{
        max_commits: z.ZodNumber;
        max_files_per_commit: z.ZodNumber;
        max_blob_bytes: z.ZodNumber;
        max_blob_lines: z.ZodNumber;
        max_total_blob_bytes: z.ZodNumber;
        max_batch_bytes: z.ZodNumber;
        max_entities_per_file: z.ZodNumber;
        max_entities_total: z.ZodNumber;
        max_live_entities: z.ZodNumber;
        max_lineage_events: z.ZodNumber;
        max_cross_file_candidates: z.ZodNumber;
        max_similarity_candidates: z.ZodNumber;
    }, z.core.$strict>;
    since_ref: z.ZodNullable<z.ZodString>;
    lineage_algorithm: z.ZodLiteral<"dag-branch-union-v1">;
    options_fingerprint: z.ZodString;
    schema_version: z.ZodLiteral<2>;
    lineage_run_id: z.ZodString;
    entity_parser: z.ZodUnion<readonly [z.ZodLiteral<"occ.code.parsers@2">, z.ZodLiteral<"occ.code.parsers@3">, z.ZodLiteral<"occ.code.parsers@4">]>;
}, z.core.$strict>;
export type AtomsCursorPayloadV2 = z.infer<typeof CursorPayloadV2Schema>;
/** Decode a persisted V1 cursor for receipt verification only. */
export declare function decodeAtomsCursorV1(cursor: string): AtomsCursorPayloadV1;
/** Decode a V2 cursor. V1 cursors are readable but intentionally not resumable. */
export declare function decodeAtomsCursor(cursor: string): AtomsCursorPayloadV2;
export declare const OccAtomsRunV1Schema: z.ZodObject<{
    header: z.ZodObject<{
        schema_version: z.ZodLiteral<1>;
        type: z.ZodLiteral<"header">;
        requested_ref: z.ZodString;
        resolved_ref: z.ZodString;
        since_ref: z.ZodNullable<z.ZodString>;
        resumed_from: z.ZodNullable<z.ZodString>;
        object_format: z.ZodEnum<{
            sha1: "sha1";
            sha256: "sha256";
        }>;
        shallow: z.ZodBoolean;
        lineage_run_id: z.ZodString;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        formats: z.ZodBoolean;
        bounds: z.ZodObject<{
            max_commits: z.ZodNumber;
            max_files_per_commit: z.ZodNumber;
            max_blob_bytes: z.ZodNumber;
            max_blob_lines: z.ZodNumber;
            max_total_blob_bytes: z.ZodNumber;
            max_batch_bytes: z.ZodNumber;
            max_entities_per_file: z.ZodNumber;
            max_entities_total: z.ZodNumber;
            max_live_entities: z.ZodNumber;
            max_lineage_events: z.ZodNumber;
            max_cross_file_candidates: z.ZodNumber;
            max_similarity_candidates: z.ZodNumber;
        }, z.core.$strict>;
        lineage_thresholds: z.ZodObject<{
            similarity_min: z.ZodNumber;
            similarity_margin: z.ZodNumber;
            similarity_min_tokens: z.ZodNumber;
            similarity_length_ratio_min: z.ZodNumber;
            shingle_width: z.ZodNumber;
        }, z.core.$strict>;
        provenance: z.ZodObject<{
            instrument: z.ZodLiteral<"occ.atoms">;
            instrument_version: z.ZodLiteral<1>;
            occ_version: z.ZodString;
            node_version: z.ZodString;
        }, z.core.$strict>;
        policy: z.ZodObject<{
            topology: z.ZodLiteral<"all-parent-edges">;
            order: z.ZodLiteral<"parents-before-children">;
            replacements: z.ZodLiteral<"disabled">;
            grafts: z.ZodLiteral<"disabled">;
            lazy_fetch: z.ZodLiteral<"disabled">;
            source_bodies: z.ZodLiteral<"omitted">;
            span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
            lineage: z.ZodLiteral<"dag-branch-union-v1">;
            lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v1">;
            lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
            entity_parser: z.ZodLiteral<"occ.code.parsers@1">;
            module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
            native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
            entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
            checkout_node_ids: z.ZodLiteral<"omitted">;
            resume_computation: z.ZodLiteral<"warm-replay">;
        }, z.core.$strict>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        schema_version: z.ZodLiteral<1>;
        type: z.ZodLiteral<"diagnostic">;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        code: z.ZodString;
        message: z.ZodString;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
        path: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
    episodes: z.ZodArray<z.ZodObject<{
        schema_version: z.ZodLiteral<1>;
        type: z.ZodLiteral<"episode">;
        cursor: z.ZodString;
        parent_ref: z.ZodNullable<z.ZodString>;
        child_ref: z.ZodString;
        parent_index: z.ZodNullable<z.ZodNumber>;
        observed_at: z.ZodString;
        message_ref: z.ZodString;
        author: z.ZodObject<{
            name: z.ZodString;
            email: z.ZodString;
            authored_at: z.ZodString;
        }, z.core.$strict>;
        entities: z.ZodArray<z.ZodObject<{
            before: z.ZodNullable<z.ZodObject<{
                oid: z.ZodString;
                path: z.ZodString;
                span: z.ZodObject<{
                    start_line: z.ZodNumber;
                    end_line: z.ZodNumber;
                    exact: z.ZodBoolean;
                }, z.core.$strict>;
                span_digest: z.ZodString;
            }, z.core.$strict>>;
            after: z.ZodNullable<z.ZodObject<{
                oid: z.ZodString;
                path: z.ZodString;
                span: z.ZodObject<{
                    start_line: z.ZodNumber;
                    end_line: z.ZodNumber;
                    exact: z.ZodBoolean;
                }, z.core.$strict>;
                span_digest: z.ZodString;
            }, z.core.$strict>>;
            change_class: z.ZodEnum<{
                unknown: "unknown";
                added: "added";
                renamed: "renamed";
                moved: "moved";
                reordered: "reordered";
                removed: "removed";
                logic: "logic";
                cosmetic: "cosmetic";
            }>;
            semantic_class: z.ZodEnum<{
                unknown: "unknown";
                logic: "logic";
                cosmetic: "cosmetic";
                neutral: "neutral";
            }>;
            lineage_id: z.ZodString;
            match_reason: z.ZodEnum<{
                none: "none";
                similarity: "similarity";
                "exact-identity": "exact-identity";
                "git-rename-identity": "git-rename-identity";
                "content-hash": "content-hash";
                "normalized-hash": "normalized-hash";
                "structural-hash": "structural-hash";
                "signature-name": "signature-name";
                "qualified-name": "qualified-name";
            }>;
            match_confidence: z.ZodNumber;
            match_evidence: z.ZodOptional<z.ZodObject<{
                pool: z.ZodEnum<{
                    none: "none";
                    "same-path": "same-path";
                    "git-rename": "git-rename";
                    "cross-file": "cross-file";
                }>;
                hashes_comparable: z.ZodBoolean;
                body_hash_equal: z.ZodOptional<z.ZodBoolean>;
                normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
                structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
                signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
                similarity: z.ZodOptional<z.ZodNumber>;
                runner_up_similarity: z.ZodOptional<z.ZodNumber>;
                tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
                candidate_count: z.ZodOptional<z.ZodNumber>;
                git_rename_similarity: z.ZodOptional<z.ZodNumber>;
            }, z.core.$strict>>;
            flags: z.ZodObject<{
                path_changed: z.ZodOptional<z.ZodBoolean>;
                name_changed: z.ZodOptional<z.ZodBoolean>;
                container_changed: z.ZodOptional<z.ZodBoolean>;
                kind_changed: z.ZodOptional<z.ZodBoolean>;
                body_changed: z.ZodOptional<z.ZodBoolean>;
                logic_changed: z.ZodOptional<z.ZodBoolean>;
                cosmetic_only: z.ZodOptional<z.ZodBoolean>;
                order_changed: z.ZodOptional<z.ZodBoolean>;
                signature_changed: z.ZodOptional<z.ZodBoolean>;
                export_changed: z.ZodOptional<z.ZodBoolean>;
                span_inexact: z.ZodOptional<z.ZodBoolean>;
                git_rename_applied: z.ZodOptional<z.ZodBoolean>;
                ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
                evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
                bound_hit: z.ZodOptional<z.ZodBoolean>;
                birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
            }, z.core.$strict>;
        }, z.core.$strict>>;
        measures: z.ZodObject<{
            basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
            tokens: z.ZodNumber;
            bytes: z.ZodNumber;
            lines: z.ZodNumber;
            tokenizer: z.ZodEnum<{
                o200k_base: "o200k_base";
                cl100k_base: "cl100k_base";
            }>;
            coverage: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        patch_id: z.ZodNullable<z.ZodString>;
        revert_of: z.ZodNullable<z.ZodObject<{
            child_ref: z.ZodString;
            parent_ref: z.ZodNullable<z.ZodString>;
            parent_index: z.ZodNullable<z.ZodNumber>;
        }, z.core.$strict>>;
        module_pairs_touched: z.ZodObject<{
            count: z.ZodNumber;
            modules: z.ZodArray<z.ZodString>;
            pairs: z.ZodArray<z.ZodObject<{
                key: z.ZodString;
                module_a: z.ZodString;
                module_b: z.ZodString;
            }, z.core.$strict>>;
            basis: z.ZodLiteral<"changed-directory-module-pairs">;
            coverage: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        coverage: z.ZodObject<{
            entities: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            lineages: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            measures: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            patches: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            module_pairs: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        diagnostics: z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            path: z.ZodOptional<z.ZodString>;
            code: z.ZodString;
            severity: z.ZodEnum<{
                error: "error";
                warning: "warning";
            }>;
            parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            child_ref: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    lineage_heads: z.ZodArray<z.ZodObject<{
        schema_version: z.ZodLiteral<1>;
        type: z.ZodLiteral<"lineage-head">;
        lineage_id: z.ZodString;
        coordinate: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        entity_lineage_id: z.ZodNullable<z.ZodString>;
        resolution: z.ZodEnum<{
            unavailable: "unavailable";
            resolved: "resolved";
            ambiguous: "ambiguous";
            not_found: "not_found";
        }>;
        diagnostics: z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            path: z.ZodOptional<z.ZodString>;
            code: z.ZodString;
            severity: z.ZodEnum<{
                error: "error";
                warning: "warning";
            }>;
            parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            child_ref: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    footer: z.ZodObject<{
        schema_version: z.ZodLiteral<1>;
        type: z.ZodLiteral<"footer">;
        complete: z.ZodBoolean;
        coverage: z.ZodObject<{
            history: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            entities: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            lineages: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            head_mapping: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            measures: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            patches: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            module_pairs: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        counts: z.ZodObject<{
            commits_observed: z.ZodNumber;
            transitions_observed: z.ZodNumber;
            episodes_emitted: z.ZodNumber;
            entities_emitted: z.ZodNumber;
            lineages_observed: z.ZodNumber;
            lineage_heads_emitted: z.ZodNumber;
            diagnostics: z.ZodNumber;
        }, z.core.$strict>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type OccAtomsRunV1 = z.infer<typeof OccAtomsRunV1Schema>;
/** Consume through EOF and cross-check a whole atoms stream. */
export declare function collectAtomsRunV1(events: AsyncIterable<unknown> | Iterable<unknown>): Promise<OccAtomsRunV1>;
export declare const OccAtomsRunV2Schema: z.ZodObject<{
    header: z.ZodObject<{
        type: z.ZodLiteral<"header">;
        shallow: z.ZodBoolean;
        tokenizer: z.ZodEnum<{
            o200k_base: "o200k_base";
            cl100k_base: "cl100k_base";
        }>;
        requested_ref: z.ZodString;
        resolved_ref: z.ZodString;
        object_format: z.ZodEnum<{
            sha1: "sha1";
            sha256: "sha256";
        }>;
        formats: z.ZodBoolean;
        bounds: z.ZodObject<{
            max_commits: z.ZodNumber;
            max_files_per_commit: z.ZodNumber;
            max_blob_bytes: z.ZodNumber;
            max_blob_lines: z.ZodNumber;
            max_total_blob_bytes: z.ZodNumber;
            max_batch_bytes: z.ZodNumber;
            max_entities_per_file: z.ZodNumber;
            max_entities_total: z.ZodNumber;
            max_live_entities: z.ZodNumber;
            max_lineage_events: z.ZodNumber;
            max_cross_file_candidates: z.ZodNumber;
            max_similarity_candidates: z.ZodNumber;
        }, z.core.$strict>;
        since_ref: z.ZodNullable<z.ZodString>;
        resumed_from: z.ZodNullable<z.ZodString>;
        lineage_thresholds: z.ZodObject<{
            similarity_min: z.ZodNumber;
            similarity_margin: z.ZodNumber;
            similarity_min_tokens: z.ZodNumber;
            similarity_length_ratio_min: z.ZodNumber;
            shingle_width: z.ZodNumber;
        }, z.core.$strict>;
        schema_version: z.ZodLiteral<2>;
        lineage_run_id: z.ZodString;
        provenance: z.ZodObject<{
            instrument: z.ZodLiteral<"occ.atoms">;
            occ_version: z.ZodString;
            node_version: z.ZodString;
            instrument_version: z.ZodLiteral<2>;
        }, z.core.$strict>;
        policy: z.ZodObject<{
            order: z.ZodLiteral<"parents-before-children">;
            lineage: z.ZodLiteral<"dag-branch-union-v1">;
            span_digest: z.ZodLiteral<"sha256-lf-span-v1">;
            source_bodies: z.ZodLiteral<"omitted">;
            topology: z.ZodLiteral<"all-parent-edges">;
            replacements: z.ZodLiteral<"disabled">;
            grafts: z.ZodLiteral<"disabled">;
            lazy_fetch: z.ZodLiteral<"disabled">;
            lineage_confidence: z.ZodLiteral<"ordered-rung-score-not-probability">;
            module_pair_basis: z.ZodLiteral<"changed-directory-module-pairs">;
            native_identity: z.ZodLiteral<"git-oid-path-span-digest">;
            entity_lineage_mapping: z.ZodLiteral<"pinned-first-parent-entity-index">;
            checkout_node_ids: z.ZodLiteral<"omitted">;
            resume_computation: z.ZodLiteral<"warm-replay">;
            lineage_matcher: z.ZodLiteral<"entity-evidence-ladder-v2">;
            entity_parser: z.ZodUnion<readonly [z.ZodLiteral<"occ.code.parsers@2">, z.ZodLiteral<"occ.code.parsers@3">, z.ZodLiteral<"occ.code.parsers@4">]>;
        }, z.core.$strict>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        path: z.ZodOptional<z.ZodString>;
        code: z.ZodString;
        type: z.ZodLiteral<"diagnostic">;
        severity: z.ZodEnum<{
            error: "error";
            warning: "warning";
        }>;
        parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        child_ref: z.ZodOptional<z.ZodString>;
        schema_version: z.ZodLiteral<2>;
    }, z.core.$strict>>;
    episodes: z.ZodArray<z.ZodObject<{
        coverage: z.ZodObject<{
            entities: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            lineages: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            measures: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            patches: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            module_pairs: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        type: z.ZodLiteral<"episode">;
        author: z.ZodObject<{
            name: z.ZodString;
            email: z.ZodString;
            authored_at: z.ZodString;
        }, z.core.$strict>;
        parent_ref: z.ZodNullable<z.ZodString>;
        child_ref: z.ZodString;
        parent_index: z.ZodNullable<z.ZodNumber>;
        measures: z.ZodObject<{
            basis: z.ZodLiteral<"git-patch-added-deleted-payload">;
            tokens: z.ZodNumber;
            bytes: z.ZodNumber;
            lines: z.ZodNumber;
            tokenizer: z.ZodEnum<{
                o200k_base: "o200k_base";
                cl100k_base: "cl100k_base";
            }>;
            coverage: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        module_pairs_touched: z.ZodObject<{
            count: z.ZodNumber;
            modules: z.ZodArray<z.ZodString>;
            pairs: z.ZodArray<z.ZodObject<{
                key: z.ZodString;
                module_a: z.ZodString;
                module_b: z.ZodString;
            }, z.core.$strict>>;
            basis: z.ZodLiteral<"changed-directory-module-pairs">;
            coverage: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        cursor: z.ZodString;
        observed_at: z.ZodString;
        message_ref: z.ZodString;
        patch_id: z.ZodNullable<z.ZodString>;
        revert_of: z.ZodNullable<z.ZodObject<{
            child_ref: z.ZodString;
            parent_ref: z.ZodNullable<z.ZodString>;
            parent_index: z.ZodNullable<z.ZodNumber>;
        }, z.core.$strict>>;
        schema_version: z.ZodLiteral<2>;
        entities: z.ZodArray<z.ZodObject<{
            before: z.ZodNullable<z.ZodObject<{
                oid: z.ZodString;
                path: z.ZodString;
                span: z.ZodObject<{
                    start_line: z.ZodNumber;
                    end_line: z.ZodNumber;
                    exact: z.ZodBoolean;
                }, z.core.$strict>;
                span_digest: z.ZodString;
            }, z.core.$strict>>;
            after: z.ZodNullable<z.ZodObject<{
                oid: z.ZodString;
                path: z.ZodString;
                span: z.ZodObject<{
                    start_line: z.ZodNumber;
                    end_line: z.ZodNumber;
                    exact: z.ZodBoolean;
                }, z.core.$strict>;
                span_digest: z.ZodString;
            }, z.core.$strict>>;
            match_reason: z.ZodEnum<{
                none: "none";
                similarity: "similarity";
                "exact-identity": "exact-identity";
                "git-rename-identity": "git-rename-identity";
                "content-hash": "content-hash";
                "normalized-hash": "normalized-hash";
                "structural-hash": "structural-hash";
                "signature-name": "signature-name";
                "qualified-name": "qualified-name";
            }>;
            change_class: z.ZodEnum<{
                unknown: "unknown";
                added: "added";
                renamed: "renamed";
                moved: "moved";
                reordered: "reordered";
                removed: "removed";
                logic: "logic";
                cosmetic: "cosmetic";
            }>;
            semantic_class: z.ZodEnum<{
                unknown: "unknown";
                logic: "logic";
                cosmetic: "cosmetic";
                neutral: "neutral";
            }>;
            lineage_id: z.ZodString;
            match_confidence: z.ZodNumber;
            match_evidence: z.ZodOptional<z.ZodObject<{
                pool: z.ZodEnum<{
                    none: "none";
                    "same-path": "same-path";
                    "git-rename": "git-rename";
                    "cross-file": "cross-file";
                }>;
                hashes_comparable: z.ZodBoolean;
                body_hash_equal: z.ZodOptional<z.ZodBoolean>;
                normalized_hash_equal: z.ZodOptional<z.ZodBoolean>;
                structural_hash_equal: z.ZodOptional<z.ZodBoolean>;
                signature_hash_equal: z.ZodOptional<z.ZodBoolean>;
                similarity: z.ZodOptional<z.ZodNumber>;
                runner_up_similarity: z.ZodOptional<z.ZodNumber>;
                tiebreak_similarity: z.ZodOptional<z.ZodNumber>;
                candidate_count: z.ZodOptional<z.ZodNumber>;
                git_rename_similarity: z.ZodOptional<z.ZodNumber>;
                exact_body_hash_equal: z.ZodOptional<z.ZodBoolean>;
                signature_evidence_equal: z.ZodOptional<z.ZodBoolean>;
                reverse_runner_up_similarity: z.ZodOptional<z.ZodNumber>;
            }, z.core.$strict>>;
            flags: z.ZodObject<{
                path_changed: z.ZodOptional<z.ZodBoolean>;
                name_changed: z.ZodOptional<z.ZodBoolean>;
                container_changed: z.ZodOptional<z.ZodBoolean>;
                kind_changed: z.ZodOptional<z.ZodBoolean>;
                body_changed: z.ZodOptional<z.ZodBoolean>;
                logic_changed: z.ZodOptional<z.ZodBoolean>;
                cosmetic_only: z.ZodOptional<z.ZodBoolean>;
                order_changed: z.ZodOptional<z.ZodBoolean>;
                signature_changed: z.ZodOptional<z.ZodBoolean>;
                export_changed: z.ZodOptional<z.ZodBoolean>;
                span_inexact: z.ZodOptional<z.ZodBoolean>;
                git_rename_applied: z.ZodOptional<z.ZodBoolean>;
                ambiguity_refused: z.ZodOptional<z.ZodBoolean>;
                evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
                bound_hit: z.ZodOptional<z.ZodBoolean>;
                birth_at_window_boundary: z.ZodOptional<z.ZodBoolean>;
                signature_evidence_unavailable: z.ZodOptional<z.ZodBoolean>;
                semantic_basis: z.ZodOptional<z.ZodEnum<{
                    "nontrivia-syntax-change": "nontrivia-syntax-change";
                    "whitespace-significance-unverified": "whitespace-significance-unverified";
                    "comment-only-change": "comment-only-change";
                    "syntax-evidence-unavailable": "syntax-evidence-unavailable";
                    "grammar-verification-refused": "grammar-verification-refused";
                }>>;
            }, z.core.$strict>;
        }, z.core.$strict>>;
        diagnostics: z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            path: z.ZodOptional<z.ZodString>;
            code: z.ZodString;
            severity: z.ZodEnum<{
                error: "error";
                warning: "warning";
            }>;
            parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            child_ref: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    lineage_heads: z.ZodArray<z.ZodObject<{
        type: z.ZodLiteral<"lineage-head">;
        resolution: z.ZodEnum<{
            unavailable: "unavailable";
            resolved: "resolved";
            ambiguous: "ambiguous";
            not_found: "not_found";
        }>;
        coordinate: z.ZodNullable<z.ZodObject<{
            oid: z.ZodString;
            path: z.ZodString;
            span: z.ZodObject<{
                start_line: z.ZodNumber;
                end_line: z.ZodNumber;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
            span_digest: z.ZodString;
        }, z.core.$strict>>;
        lineage_id: z.ZodString;
        entity_lineage_id: z.ZodNullable<z.ZodString>;
        schema_version: z.ZodLiteral<2>;
        diagnostics: z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            path: z.ZodOptional<z.ZodString>;
            code: z.ZodString;
            severity: z.ZodEnum<{
                error: "error";
                warning: "warning";
            }>;
            parent_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
            child_ref: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    footer: z.ZodObject<{
        coverage: z.ZodObject<{
            history: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            entities: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            lineages: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            head_mapping: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            measures: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            patches: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            module_pairs: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
        }, z.core.$strict>;
        type: z.ZodLiteral<"footer">;
        counts: z.ZodObject<{
            commits_observed: z.ZodNumber;
            transitions_observed: z.ZodNumber;
            episodes_emitted: z.ZodNumber;
            entities_emitted: z.ZodNumber;
            lineages_observed: z.ZodNumber;
            lineage_heads_emitted: z.ZodNumber;
            diagnostics: z.ZodNumber;
        }, z.core.$strict>;
        complete: z.ZodBoolean;
        schema_version: z.ZodLiteral<2>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type OccAtomsRunV2 = z.infer<typeof OccAtomsRunV2Schema>;
/** Consume through EOF and cross-check the V2 atoms stream emitted by this build. */
export declare function collectAtomsRun(events: AsyncIterable<unknown> | Iterable<unknown>): Promise<OccAtomsRunV2>;
/** Stream deterministic, source-body-free work episodes over a bounded full Git DAG. */
export declare function emitAtoms(input: OccAtomsOptions): AsyncGenerator<OccAtomsEventV2>;
/** @internal Reuse the lineage overlay without computing patch-only episode fields. */
export declare function observeAtomsForEntityGraph(input: OccAtomsOptions): AsyncGenerator<OccAtomsEventV2>;
export {};
