import { z } from 'zod';
import type { CodeSourceSpanV1 } from './types.js';
/** Stable defaults for the immutable Git-blob structure instrument. */
export declare const DEFAULT_GIT_BLOB_STRUCTURE_OPTIONS: Readonly<{
    maxRequests: 10000;
    maxBlobBytes: 2097152;
    maxBlobLines: 25000;
    maxTotalBlobBytes: 268435456;
    maxBatchBytes: 33554432;
    maxSpans: 2000;
    formats: true;
    skipMinified: true;
}>;
/** Whether a committed tree path can be expressed as a blob-structure request. */
export declare function isRepresentableBlobPath(relativePath: string): boolean;
export declare const GitBlobStructureRequestV1Schema: z.ZodObject<{
    requestId: z.ZodString;
    oid: z.ZodString;
    relativePath: z.ZodString;
}, z.core.$strict>;
export type GitBlobStructureRequestV1 = z.infer<typeof GitBlobStructureRequestV1Schema>;
export declare const GitBlobStructureOptionsSchema: z.ZodObject<{
    repoPath: z.ZodString;
    maxRequests: z.ZodDefault<z.ZodNumber>;
    maxBlobBytes: z.ZodDefault<z.ZodNumber>;
    maxBlobLines: z.ZodDefault<z.ZodNumber>;
    maxTotalBlobBytes: z.ZodDefault<z.ZodNumber>;
    maxBatchBytes: z.ZodDefault<z.ZodNumber>;
    maxSpans: z.ZodDefault<z.ZodNumber>;
    formats: z.ZodDefault<z.ZodBoolean>;
    skipMinified: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strict>;
export type GitBlobStructureOptions = z.input<typeof GitBlobStructureOptionsSchema> & {
    signal?: AbortSignal;
};
export declare const GitBlobSourceSpanV1Schema: z.ZodObject<{
    startLine: z.ZodNumber;
    startColumn: z.ZodOptional<z.ZodNumber>;
    endLine: z.ZodNumber;
    endColumn: z.ZodOptional<z.ZodNumber>;
    exact: z.ZodBoolean;
}, z.core.$strict>;
export type GitBlobSourceSpanV1 = z.infer<typeof GitBlobSourceSpanV1Schema>;
export declare const GitBlobDeclarationV1Schema: z.ZodObject<{
    kind: z.ZodUnion<readonly [z.ZodEnum<{
        function: "function";
        file: "file";
        enum: "enum";
        type: "type";
        module: "module";
        class: "class";
        interface: "interface";
        variable: "variable";
        parameter: "parameter";
        method: "method";
        other: "other";
    }>, z.ZodEnum<{
        object: "object";
        array: "array";
        "array-item": "array-item";
        property: "property";
        section: "section";
        table: "table";
        "array-table": "array-table";
        heading: "heading";
        row: "row";
        document: "document";
    }>, z.ZodEnum<{
        test: "test";
        test_suite: "test_suite";
    }>]>;
    name: z.ZodString;
    qualifiedName: z.ZodString;
    containerName: z.ZodOptional<z.ZodString>;
    signature: z.ZodOptional<z.ZodString>;
    isExported: z.ZodBoolean;
    ordinal: z.ZodNumber;
    declarationIndex: z.ZodNumber;
    span: z.ZodObject<{
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobDeclarationV1 = z.infer<typeof GitBlobDeclarationV1Schema>;
export declare const GitBlobSyntacticFactV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    factKind: z.ZodLiteral<"import">;
    specifier: z.ZodString;
    importKind: z.ZodEnum<{
        external: "external";
        unresolved: "unresolved";
        local: "local";
    }>;
    bindings: z.ZodArray<z.ZodObject<{
        localName: z.ZodString;
        importedName: z.ZodOptional<z.ZodString>;
        isNamespace: z.ZodOptional<z.ZodBoolean>;
        isDefault: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strict>>;
    isReExport: z.ZodOptional<z.ZodBoolean>;
    span: z.ZodObject<{
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    factKind: z.ZodLiteral<"call">;
    callerName: z.ZodString;
    callerContainerName: z.ZodOptional<z.ZodString>;
    calleeName: z.ZodString;
    qualifier: z.ZodOptional<z.ZodString>;
    span: z.ZodObject<{
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    factKind: z.ZodLiteral<"inheritance">;
    className: z.ZodString;
    baseName: z.ZodString;
    inheritanceKind: z.ZodOptional<z.ZodEnum<{
        implements: "implements";
        extends: "extends";
    }>>;
    span: z.ZodObject<{
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strict>;
}, z.core.$strict>], "factKind">;
export type GitBlobSyntacticFactV1 = z.infer<typeof GitBlobSyntacticFactV1Schema>;
export declare const GitBlobStructureDiagnosticV1Schema: z.ZodObject<{
    code: z.ZodEnum<{
        "blob-too-large": "blob-too-large";
        "blob-too-many-lines": "blob-too-many-lines";
        "oid-format-mismatch": "oid-format-mismatch";
        "missing-object": "missing-object";
        "not-a-blob": "not-a-blob";
        "total-blob-budget-exhausted": "total-blob-budget-exhausted";
        "content-unavailable": "content-unavailable";
        "binary-blob": "binary-blob";
        "invalid-utf8": "invalid-utf8";
        "git-read-failed": "git-read-failed";
        "unsupported-path": "unsupported-path";
        "parser-skipped": "parser-skipped";
        "parser-failed": "parser-failed";
        "span-limit-exhausted": "span-limit-exhausted";
    }>;
    message: z.ZodString;
    limit: z.ZodOptional<z.ZodNumber>;
    actual: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>;
export type GitBlobStructureDiagnosticV1 = z.infer<typeof GitBlobStructureDiagnosticV1Schema>;
export declare const GitBlobStructureProvenanceV1Schema: z.ZodObject<{
    instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
    instrumentVersion: z.ZodLiteral<1>;
    parserName: z.ZodLiteral<"occ.code.parsers">;
    parserVersion: z.ZodLiteral<1>;
    occVersion: z.ZodString;
    nodeVersion: z.ZodString;
    sourceSystem: z.ZodLiteral<"git">;
    acquisition: z.ZodLiteral<"git-cat-file">;
    immutableObject: z.ZodLiteral<true>;
    objectFormat: z.ZodEnum<{
        unknown: "unknown";
        sha1: "sha1";
        sha256: "sha256";
    }>;
    parserTier: z.ZodEnum<{
        none: "none";
        format: "format";
        "typescript-compiler": "typescript-compiler";
        "vue-sfc-typescript": "vue-sfc-typescript";
        "tree-sitter": "tree-sitter";
        "regex-fallback": "regex-fallback";
    }>;
    language: z.ZodOptional<z.ZodString>;
    grammar: z.ZodOptional<z.ZodString>;
    importResolution: z.ZodLiteral<false>;
    bodyIncluded: z.ZodLiteral<false>;
}, z.core.$strict>;
export type GitBlobStructureProvenanceV1 = z.infer<typeof GitBlobStructureProvenanceV1Schema>;
export declare const GitBlobStructureBatchHeaderV1Schema: z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"header">;
    requestCount: z.ZodNumber;
    uniqueObjectCount: z.ZodNumber;
    limits: z.ZodObject<{
        maxRequests: z.ZodNumber;
        maxBlobBytes: z.ZodNumber;
        maxBlobLines: z.ZodNumber;
        maxTotalBlobBytes: z.ZodNumber;
        maxBatchBytes: z.ZodNumber;
        maxSpans: z.ZodNumber;
        formats: z.ZodBoolean;
        skipMinified: z.ZodBoolean;
    }, z.core.$strict>;
    provenance: z.ZodObject<{
        sourceSystem: z.ZodLiteral<"git">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        immutableObjects: z.ZodLiteral<true>;
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        instrumentVersion: z.ZodLiteral<1>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        parserVersion: z.ZodLiteral<1>;
        occVersion: z.ZodString;
        nodeVersion: z.ZodString;
        importResolution: z.ZodLiteral<false>;
        bodiesIncluded: z.ZodLiteral<false>;
        hashesIncluded: z.ZodLiteral<false>;
        lineageIncluded: z.ZodLiteral<false>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobStructureBatchHeaderV1 = z.infer<typeof GitBlobStructureBatchHeaderV1Schema>;
export declare const GitBlobStructureResultV1Schema: z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"result">;
    requestIndex: z.ZodNumber;
    requestId: z.ZodString;
    oid: z.ZodString;
    relativePath: z.ZodString;
    status: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
    declarations: z.ZodArray<z.ZodObject<{
        kind: z.ZodUnion<readonly [z.ZodEnum<{
            function: "function";
            file: "file";
            enum: "enum";
            type: "type";
            module: "module";
            class: "class";
            interface: "interface";
            variable: "variable";
            parameter: "parameter";
            method: "method";
            other: "other";
        }>, z.ZodEnum<{
            object: "object";
            array: "array";
            "array-item": "array-item";
            property: "property";
            section: "section";
            table: "table";
            "array-table": "array-table";
            heading: "heading";
            row: "row";
            document: "document";
        }>, z.ZodEnum<{
            test: "test";
            test_suite: "test_suite";
        }>]>;
        name: z.ZodString;
        qualifiedName: z.ZodString;
        containerName: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
        isExported: z.ZodBoolean;
        ordinal: z.ZodNumber;
        declarationIndex: z.ZodNumber;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        factKind: z.ZodLiteral<"import">;
        specifier: z.ZodString;
        importKind: z.ZodEnum<{
            external: "external";
            unresolved: "unresolved";
            local: "local";
        }>;
        bindings: z.ZodArray<z.ZodObject<{
            localName: z.ZodString;
            importedName: z.ZodOptional<z.ZodString>;
            isNamespace: z.ZodOptional<z.ZodBoolean>;
            isDefault: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>>;
        isReExport: z.ZodOptional<z.ZodBoolean>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>, z.ZodObject<{
        factKind: z.ZodLiteral<"call">;
        callerName: z.ZodString;
        callerContainerName: z.ZodOptional<z.ZodString>;
        calleeName: z.ZodString;
        qualifier: z.ZodOptional<z.ZodString>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>, z.ZodObject<{
        factKind: z.ZodLiteral<"inheritance">;
        className: z.ZodString;
        baseName: z.ZodString;
        inheritanceKind: z.ZodOptional<z.ZodEnum<{
            implements: "implements";
            extends: "extends";
        }>>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>], "factKind">>;
    provenance: z.ZodObject<{
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        instrumentVersion: z.ZodLiteral<1>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        parserVersion: z.ZodLiteral<1>;
        occVersion: z.ZodString;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        immutableObject: z.ZodLiteral<true>;
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserTier: z.ZodEnum<{
            none: "none";
            format: "format";
            "typescript-compiler": "typescript-compiler";
            "vue-sfc-typescript": "vue-sfc-typescript";
            "tree-sitter": "tree-sitter";
            "regex-fallback": "regex-fallback";
        }>;
        language: z.ZodOptional<z.ZodString>;
        grammar: z.ZodOptional<z.ZodString>;
        importResolution: z.ZodLiteral<false>;
        bodyIncluded: z.ZodLiteral<false>;
    }, z.core.$strict>;
    coverage: z.ZodObject<{
        blob: z.ZodEnum<{
            error: "error";
            missing: "missing";
            omitted: "omitted";
            "not-a-blob": "not-a-blob";
            acquired: "acquired";
        }>;
        structure: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        expectedBytes: z.ZodOptional<z.ZodNumber>;
        acquiredBytes: z.ZodNumber;
        lineCount: z.ZodOptional<z.ZodNumber>;
        spansDiscovered: z.ZodNumber;
        spansEmitted: z.ZodNumber;
        declarationsDiscovered: z.ZodNumber;
        declarationsEmitted: z.ZodNumber;
        factsDiscovered: z.ZodNumber;
        factsEmitted: z.ZodNumber;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        code: z.ZodEnum<{
            "blob-too-large": "blob-too-large";
            "blob-too-many-lines": "blob-too-many-lines";
            "oid-format-mismatch": "oid-format-mismatch";
            "missing-object": "missing-object";
            "not-a-blob": "not-a-blob";
            "total-blob-budget-exhausted": "total-blob-budget-exhausted";
            "content-unavailable": "content-unavailable";
            "binary-blob": "binary-blob";
            "invalid-utf8": "invalid-utf8";
            "git-read-failed": "git-read-failed";
            "unsupported-path": "unsupported-path";
            "parser-skipped": "parser-skipped";
            "parser-failed": "parser-failed";
            "span-limit-exhausted": "span-limit-exhausted";
        }>;
        message: z.ZodString;
        limit: z.ZodOptional<z.ZodNumber>;
        actual: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type GitBlobStructureResultV1 = z.infer<typeof GitBlobStructureResultV1Schema>;
export declare const GitBlobStructureBatchFooterV1Schema: z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"footer">;
    coverage: z.ZodObject<{
        requests: z.ZodNumber;
        results: z.ZodNumber;
        uniqueObjectsRequested: z.ZodNumber;
        uniqueObjectsRead: z.ZodNumber;
        blobBytesRead: z.ZodNumber;
        completeResults: z.ZodNumber;
        partialResults: z.ZodNumber;
        unavailableResults: z.ZodNumber;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobStructureBatchFooterV1 = z.infer<typeof GitBlobStructureBatchFooterV1Schema>;
export declare const GitBlobStructureBatchEventV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"header">;
    requestCount: z.ZodNumber;
    uniqueObjectCount: z.ZodNumber;
    limits: z.ZodObject<{
        maxRequests: z.ZodNumber;
        maxBlobBytes: z.ZodNumber;
        maxBlobLines: z.ZodNumber;
        maxTotalBlobBytes: z.ZodNumber;
        maxBatchBytes: z.ZodNumber;
        maxSpans: z.ZodNumber;
        formats: z.ZodBoolean;
        skipMinified: z.ZodBoolean;
    }, z.core.$strict>;
    provenance: z.ZodObject<{
        sourceSystem: z.ZodLiteral<"git">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        immutableObjects: z.ZodLiteral<true>;
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        instrumentVersion: z.ZodLiteral<1>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        parserVersion: z.ZodLiteral<1>;
        occVersion: z.ZodString;
        nodeVersion: z.ZodString;
        importResolution: z.ZodLiteral<false>;
        bodiesIncluded: z.ZodLiteral<false>;
        hashesIncluded: z.ZodLiteral<false>;
        lineageIncluded: z.ZodLiteral<false>;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"result">;
    requestIndex: z.ZodNumber;
    requestId: z.ZodString;
    oid: z.ZodString;
    relativePath: z.ZodString;
    status: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
    declarations: z.ZodArray<z.ZodObject<{
        kind: z.ZodUnion<readonly [z.ZodEnum<{
            function: "function";
            file: "file";
            enum: "enum";
            type: "type";
            module: "module";
            class: "class";
            interface: "interface";
            variable: "variable";
            parameter: "parameter";
            method: "method";
            other: "other";
        }>, z.ZodEnum<{
            object: "object";
            array: "array";
            "array-item": "array-item";
            property: "property";
            section: "section";
            table: "table";
            "array-table": "array-table";
            heading: "heading";
            row: "row";
            document: "document";
        }>, z.ZodEnum<{
            test: "test";
            test_suite: "test_suite";
        }>]>;
        name: z.ZodString;
        qualifiedName: z.ZodString;
        containerName: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
        isExported: z.ZodBoolean;
        ordinal: z.ZodNumber;
        declarationIndex: z.ZodNumber;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>>;
    facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        factKind: z.ZodLiteral<"import">;
        specifier: z.ZodString;
        importKind: z.ZodEnum<{
            external: "external";
            unresolved: "unresolved";
            local: "local";
        }>;
        bindings: z.ZodArray<z.ZodObject<{
            localName: z.ZodString;
            importedName: z.ZodOptional<z.ZodString>;
            isNamespace: z.ZodOptional<z.ZodBoolean>;
            isDefault: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>>;
        isReExport: z.ZodOptional<z.ZodBoolean>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>, z.ZodObject<{
        factKind: z.ZodLiteral<"call">;
        callerName: z.ZodString;
        callerContainerName: z.ZodOptional<z.ZodString>;
        calleeName: z.ZodString;
        qualifier: z.ZodOptional<z.ZodString>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>, z.ZodObject<{
        factKind: z.ZodLiteral<"inheritance">;
        className: z.ZodString;
        baseName: z.ZodString;
        inheritanceKind: z.ZodOptional<z.ZodEnum<{
            implements: "implements";
            extends: "extends";
        }>>;
        span: z.ZodObject<{
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strict>;
    }, z.core.$strict>], "factKind">>;
    provenance: z.ZodObject<{
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        instrumentVersion: z.ZodLiteral<1>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        parserVersion: z.ZodLiteral<1>;
        occVersion: z.ZodString;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        immutableObject: z.ZodLiteral<true>;
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserTier: z.ZodEnum<{
            none: "none";
            format: "format";
            "typescript-compiler": "typescript-compiler";
            "vue-sfc-typescript": "vue-sfc-typescript";
            "tree-sitter": "tree-sitter";
            "regex-fallback": "regex-fallback";
        }>;
        language: z.ZodOptional<z.ZodString>;
        grammar: z.ZodOptional<z.ZodString>;
        importResolution: z.ZodLiteral<false>;
        bodyIncluded: z.ZodLiteral<false>;
    }, z.core.$strict>;
    coverage: z.ZodObject<{
        blob: z.ZodEnum<{
            error: "error";
            missing: "missing";
            omitted: "omitted";
            "not-a-blob": "not-a-blob";
            acquired: "acquired";
        }>;
        structure: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        expectedBytes: z.ZodOptional<z.ZodNumber>;
        acquiredBytes: z.ZodNumber;
        lineCount: z.ZodOptional<z.ZodNumber>;
        spansDiscovered: z.ZodNumber;
        spansEmitted: z.ZodNumber;
        declarationsDiscovered: z.ZodNumber;
        declarationsEmitted: z.ZodNumber;
        factsDiscovered: z.ZodNumber;
        factsEmitted: z.ZodNumber;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        code: z.ZodEnum<{
            "blob-too-large": "blob-too-large";
            "blob-too-many-lines": "blob-too-many-lines";
            "oid-format-mismatch": "oid-format-mismatch";
            "missing-object": "missing-object";
            "not-a-blob": "not-a-blob";
            "total-blob-budget-exhausted": "total-blob-budget-exhausted";
            "content-unavailable": "content-unavailable";
            "binary-blob": "binary-blob";
            "invalid-utf8": "invalid-utf8";
            "git-read-failed": "git-read-failed";
            "unsupported-path": "unsupported-path";
            "parser-skipped": "parser-skipped";
            "parser-failed": "parser-failed";
            "span-limit-exhausted": "span-limit-exhausted";
        }>;
        message: z.ZodString;
        limit: z.ZodOptional<z.ZodNumber>;
        actual: z.ZodOptional<z.ZodNumber>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    type: z.ZodLiteral<"footer">;
    coverage: z.ZodObject<{
        requests: z.ZodNumber;
        results: z.ZodNumber;
        uniqueObjectsRequested: z.ZodNumber;
        uniqueObjectsRead: z.ZodNumber;
        blobBytesRead: z.ZodNumber;
        completeResults: z.ZodNumber;
        partialResults: z.ZodNumber;
        unavailableResults: z.ZodNumber;
    }, z.core.$strict>;
}, z.core.$strict>], "type">;
export type GitBlobStructureBatchEventV1 = z.infer<typeof GitBlobStructureBatchEventV1Schema>;
/**
 * V2 keeps the request envelope stable while replacing line-only structural
 * coordinates with the code index's canonical, half-open UTF-8 byte spans.
 * V1 schemas remain exported for decoding persisted receipts.
 */
export declare const GitBlobStructureRequestV2Schema: z.ZodObject<{
    requestId: z.ZodString;
    oid: z.ZodString;
    relativePath: z.ZodString;
}, z.core.$strict>;
export type GitBlobStructureRequestV2 = GitBlobStructureRequestV1;
export declare const GitBlobSourceSpanV2Schema: z.ZodObject<{
    version: z.ZodLiteral<1>;
    offsetEncoding: z.ZodLiteral<"utf8-bytes">;
    endExclusive: z.ZodLiteral<true>;
    startLine: z.ZodNumber;
    startColumn: z.ZodOptional<z.ZodNumber>;
    endLine: z.ZodNumber;
    endColumn: z.ZodOptional<z.ZodNumber>;
    startByte: z.ZodOptional<z.ZodNumber>;
    endByte: z.ZodOptional<z.ZodNumber>;
    exact: z.ZodBoolean;
}, z.core.$strip>;
export type GitBlobSourceSpanV2 = CodeSourceSpanV1;
export declare const GitBlobDeclarationV2Schema: z.ZodObject<{
    name: z.ZodString;
    kind: z.ZodUnion<readonly [z.ZodEnum<{
        function: "function";
        file: "file";
        enum: "enum";
        type: "type";
        module: "module";
        class: "class";
        interface: "interface";
        variable: "variable";
        parameter: "parameter";
        method: "method";
        other: "other";
    }>, z.ZodEnum<{
        object: "object";
        array: "array";
        "array-item": "array-item";
        property: "property";
        section: "section";
        table: "table";
        "array-table": "array-table";
        heading: "heading";
        row: "row";
        document: "document";
    }>, z.ZodEnum<{
        test: "test";
        test_suite: "test_suite";
    }>]>;
    containerName: z.ZodOptional<z.ZodString>;
    signature: z.ZodOptional<z.ZodString>;
    qualifiedName: z.ZodString;
    isExported: z.ZodBoolean;
    ordinal: z.ZodNumber;
    declarationIndex: z.ZodNumber;
    span: z.ZodObject<{
        version: z.ZodLiteral<1>;
        offsetEncoding: z.ZodLiteral<"utf8-bytes">;
        endExclusive: z.ZodLiteral<true>;
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        startByte: z.ZodOptional<z.ZodNumber>;
        endByte: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strip>;
}, z.core.$strict>;
export type GitBlobDeclarationV2 = z.infer<typeof GitBlobDeclarationV2Schema>;
export declare const GitBlobSyntacticFactV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    specifier: z.ZodString;
    isReExport: z.ZodOptional<z.ZodBoolean>;
    importKind: z.ZodEnum<{
        external: "external";
        unresolved: "unresolved";
        local: "local";
    }>;
    factKind: z.ZodLiteral<"import">;
    bindings: z.ZodArray<z.ZodObject<{
        localName: z.ZodString;
        importedName: z.ZodOptional<z.ZodString>;
        isNamespace: z.ZodOptional<z.ZodBoolean>;
        isDefault: z.ZodOptional<z.ZodBoolean>;
        typeOnly: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strict>>;
    span: z.ZodObject<{
        version: z.ZodLiteral<1>;
        offsetEncoding: z.ZodLiteral<"utf8-bytes">;
        endExclusive: z.ZodLiteral<true>;
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        startByte: z.ZodOptional<z.ZodNumber>;
        endByte: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strip>;
}, z.core.$strict>, z.ZodObject<{
    callerName: z.ZodString;
    callerContainerName: z.ZodOptional<z.ZodString>;
    calleeName: z.ZodString;
    qualifier: z.ZodOptional<z.ZodString>;
    factKind: z.ZodLiteral<"call">;
    span: z.ZodObject<{
        version: z.ZodLiteral<1>;
        offsetEncoding: z.ZodLiteral<"utf8-bytes">;
        endExclusive: z.ZodLiteral<true>;
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        startByte: z.ZodOptional<z.ZodNumber>;
        endByte: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strip>;
}, z.core.$strict>, z.ZodObject<{
    className: z.ZodString;
    baseName: z.ZodString;
    factKind: z.ZodLiteral<"inheritance">;
    inheritanceKind: z.ZodOptional<z.ZodEnum<{
        implements: "implements";
        extends: "extends";
    }>>;
    span: z.ZodObject<{
        version: z.ZodLiteral<1>;
        offsetEncoding: z.ZodLiteral<"utf8-bytes">;
        endExclusive: z.ZodLiteral<true>;
        startLine: z.ZodNumber;
        startColumn: z.ZodOptional<z.ZodNumber>;
        endLine: z.ZodNumber;
        endColumn: z.ZodOptional<z.ZodNumber>;
        startByte: z.ZodOptional<z.ZodNumber>;
        endByte: z.ZodOptional<z.ZodNumber>;
        exact: z.ZodBoolean;
    }, z.core.$strip>;
}, z.core.$strict>], "factKind">;
export type GitBlobSyntacticFactV2 = z.infer<typeof GitBlobSyntacticFactV2Schema>;
export declare const GitBlobStructureDiagnosticV2Schema: z.ZodObject<{
    message: z.ZodString;
    limit: z.ZodOptional<z.ZodNumber>;
    actual: z.ZodOptional<z.ZodNumber>;
    code: z.ZodEnum<{
        "blob-too-large": "blob-too-large";
        "blob-too-many-lines": "blob-too-many-lines";
        "oid-format-mismatch": "oid-format-mismatch";
        "missing-object": "missing-object";
        "not-a-blob": "not-a-blob";
        "total-blob-budget-exhausted": "total-blob-budget-exhausted";
        "content-unavailable": "content-unavailable";
        "binary-blob": "binary-blob";
        "invalid-utf8": "invalid-utf8";
        "git-read-failed": "git-read-failed";
        "unsupported-path": "unsupported-path";
        "parser-skipped": "parser-skipped";
        "parser-failed": "parser-failed";
        "span-limit-exhausted": "span-limit-exhausted";
        "syntax-recovered": "syntax-recovered";
        "fact-coverage-partial": "fact-coverage-partial";
        "exact-span-unavailable": "exact-span-unavailable";
    }>;
    reason: z.ZodOptional<z.ZodEnum<{
        "checker-unavailable": "checker-unavailable";
        "dynamic-dispatch-refused": "dynamic-dispatch-refused";
        "parse-failed": "parse-failed";
        "resolver-join-miss": "resolver-join-miss";
        "vue-script-absent": "vue-script-absent";
        "vue-template-not-parsed": "vue-template-not-parsed";
        "vue-template-dynamic-component": "vue-template-dynamic-component";
        "vue-template-component-unresolved": "vue-template-component-unresolved";
        "vue-template-component-ambiguous": "vue-template-component-ambiguous";
        "vue-template-identifier-unresolved": "vue-template-identifier-unresolved";
        "vue-template-identifier-ambiguous": "vue-template-identifier-ambiguous";
        "vue-template-expression-parse-failed": "vue-template-expression-parse-failed";
        "vue-template-scope-unsupported": "vue-template-scope-unsupported";
        "vue-template-construct-unsupported": "vue-template-construct-unsupported";
    }>>;
}, z.core.$strict>;
export type GitBlobStructureDiagnosticV2 = z.infer<typeof GitBlobStructureDiagnosticV2Schema>;
export declare const GitBlobStructureProvenanceV2Schema: z.ZodObject<{
    objectFormat: z.ZodEnum<{
        unknown: "unknown";
        sha1: "sha1";
        sha256: "sha256";
    }>;
    parserName: z.ZodLiteral<"occ.code.parsers">;
    grammar: z.ZodOptional<z.ZodString>;
    language: z.ZodOptional<z.ZodString>;
    parserTier: z.ZodEnum<{
        none: "none";
        format: "format";
        "typescript-compiler": "typescript-compiler";
        "vue-sfc-typescript": "vue-sfc-typescript";
        "tree-sitter": "tree-sitter";
        "regex-fallback": "regex-fallback";
    }>;
    acquisition: z.ZodLiteral<"git-cat-file">;
    occVersion: z.ZodString;
    instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
    nodeVersion: z.ZodString;
    sourceSystem: z.ZodLiteral<"git">;
    immutableObject: z.ZodLiteral<true>;
    importResolution: z.ZodLiteral<false>;
    bodyIncluded: z.ZodLiteral<false>;
    instrumentVersion: z.ZodLiteral<2>;
    parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
    spanEncoding: z.ZodLiteral<"utf8-bytes">;
    spanEnd: z.ZodLiteral<"exclusive">;
    syntaxStatus: z.ZodEnum<{
        valid: "valid";
        recovered: "recovered";
        unchecked: "unchecked";
    }>;
    syntaxErrorCount: z.ZodNumber;
    capabilities: z.ZodObject<{
        definitions: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        imports: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        calls: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        inheritance: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        exports: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        exactSpans: z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>;
        templateUses: z.ZodOptional<z.ZodEnum<{
            full: "full";
            partial: "partial";
            unavailable: "unavailable";
        }>>;
    }, z.core.$strip>;
}, z.core.$strict>;
export type GitBlobStructureProvenanceV2 = z.infer<typeof GitBlobStructureProvenanceV2Schema>;
export declare const GitBlobStructureBatchHeaderV2Schema: z.ZodObject<{
    type: z.ZodLiteral<"header">;
    limits: z.ZodObject<{
        maxRequests: z.ZodNumber;
        maxBlobBytes: z.ZodNumber;
        maxBlobLines: z.ZodNumber;
        maxTotalBlobBytes: z.ZodNumber;
        maxBatchBytes: z.ZodNumber;
        maxSpans: z.ZodNumber;
        formats: z.ZodBoolean;
        skipMinified: z.ZodBoolean;
    }, z.core.$strict>;
    requestCount: z.ZodNumber;
    uniqueObjectCount: z.ZodNumber;
    schemaVersion: z.ZodLiteral<2>;
    provenance: z.ZodObject<{
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        occVersion: z.ZodString;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        importResolution: z.ZodLiteral<false>;
        immutableObjects: z.ZodLiteral<true>;
        bodiesIncluded: z.ZodLiteral<false>;
        hashesIncluded: z.ZodLiteral<false>;
        lineageIncluded: z.ZodLiteral<false>;
        instrumentVersion: z.ZodLiteral<2>;
        parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
        spanEncoding: z.ZodLiteral<"utf8-bytes">;
        spanEnd: z.ZodLiteral<"exclusive">;
        parserEvidence: z.ZodLiteral<"per-result">;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobStructureBatchHeaderV2 = z.infer<typeof GitBlobStructureBatchHeaderV2Schema>;
export declare const GitBlobStructureResultV2Schema: z.ZodObject<{
    coverage: z.ZodObject<{
        blob: z.ZodEnum<{
            error: "error";
            missing: "missing";
            omitted: "omitted";
            "not-a-blob": "not-a-blob";
            acquired: "acquired";
        }>;
        structure: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        expectedBytes: z.ZodOptional<z.ZodNumber>;
        acquiredBytes: z.ZodNumber;
        lineCount: z.ZodOptional<z.ZodNumber>;
        spansDiscovered: z.ZodNumber;
        spansEmitted: z.ZodNumber;
        declarationsDiscovered: z.ZodNumber;
        declarationsEmitted: z.ZodNumber;
        factsDiscovered: z.ZodNumber;
        factsEmitted: z.ZodNumber;
    }, z.core.$strict>;
    type: z.ZodLiteral<"result">;
    status: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
    oid: z.ZodString;
    relativePath: z.ZodString;
    requestIndex: z.ZodNumber;
    requestId: z.ZodString;
    schemaVersion: z.ZodLiteral<2>;
    declarations: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        kind: z.ZodUnion<readonly [z.ZodEnum<{
            function: "function";
            file: "file";
            enum: "enum";
            type: "type";
            module: "module";
            class: "class";
            interface: "interface";
            variable: "variable";
            parameter: "parameter";
            method: "method";
            other: "other";
        }>, z.ZodEnum<{
            object: "object";
            array: "array";
            "array-item": "array-item";
            property: "property";
            section: "section";
            table: "table";
            "array-table": "array-table";
            heading: "heading";
            row: "row";
            document: "document";
        }>, z.ZodEnum<{
            test: "test";
            test_suite: "test_suite";
        }>]>;
        containerName: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
        qualifiedName: z.ZodString;
        isExported: z.ZodBoolean;
        ordinal: z.ZodNumber;
        declarationIndex: z.ZodNumber;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>>;
    facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        specifier: z.ZodString;
        isReExport: z.ZodOptional<z.ZodBoolean>;
        importKind: z.ZodEnum<{
            external: "external";
            unresolved: "unresolved";
            local: "local";
        }>;
        factKind: z.ZodLiteral<"import">;
        bindings: z.ZodArray<z.ZodObject<{
            localName: z.ZodString;
            importedName: z.ZodOptional<z.ZodString>;
            isNamespace: z.ZodOptional<z.ZodBoolean>;
            isDefault: z.ZodOptional<z.ZodBoolean>;
            typeOnly: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>>;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>, z.ZodObject<{
        callerName: z.ZodString;
        callerContainerName: z.ZodOptional<z.ZodString>;
        calleeName: z.ZodString;
        qualifier: z.ZodOptional<z.ZodString>;
        factKind: z.ZodLiteral<"call">;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>, z.ZodObject<{
        className: z.ZodString;
        baseName: z.ZodString;
        factKind: z.ZodLiteral<"inheritance">;
        inheritanceKind: z.ZodOptional<z.ZodEnum<{
            implements: "implements";
            extends: "extends";
        }>>;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>], "factKind">>;
    provenance: z.ZodObject<{
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        grammar: z.ZodOptional<z.ZodString>;
        language: z.ZodOptional<z.ZodString>;
        parserTier: z.ZodEnum<{
            none: "none";
            format: "format";
            "typescript-compiler": "typescript-compiler";
            "vue-sfc-typescript": "vue-sfc-typescript";
            "tree-sitter": "tree-sitter";
            "regex-fallback": "regex-fallback";
        }>;
        acquisition: z.ZodLiteral<"git-cat-file">;
        occVersion: z.ZodString;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        immutableObject: z.ZodLiteral<true>;
        importResolution: z.ZodLiteral<false>;
        bodyIncluded: z.ZodLiteral<false>;
        instrumentVersion: z.ZodLiteral<2>;
        parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
        spanEncoding: z.ZodLiteral<"utf8-bytes">;
        spanEnd: z.ZodLiteral<"exclusive">;
        syntaxStatus: z.ZodEnum<{
            valid: "valid";
            recovered: "recovered";
            unchecked: "unchecked";
        }>;
        syntaxErrorCount: z.ZodNumber;
        capabilities: z.ZodObject<{
            definitions: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            imports: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            calls: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            inheritance: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            exports: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            exactSpans: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            templateUses: z.ZodOptional<z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>>;
        }, z.core.$strip>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        limit: z.ZodOptional<z.ZodNumber>;
        actual: z.ZodOptional<z.ZodNumber>;
        code: z.ZodEnum<{
            "blob-too-large": "blob-too-large";
            "blob-too-many-lines": "blob-too-many-lines";
            "oid-format-mismatch": "oid-format-mismatch";
            "missing-object": "missing-object";
            "not-a-blob": "not-a-blob";
            "total-blob-budget-exhausted": "total-blob-budget-exhausted";
            "content-unavailable": "content-unavailable";
            "binary-blob": "binary-blob";
            "invalid-utf8": "invalid-utf8";
            "git-read-failed": "git-read-failed";
            "unsupported-path": "unsupported-path";
            "parser-skipped": "parser-skipped";
            "parser-failed": "parser-failed";
            "span-limit-exhausted": "span-limit-exhausted";
            "syntax-recovered": "syntax-recovered";
            "fact-coverage-partial": "fact-coverage-partial";
            "exact-span-unavailable": "exact-span-unavailable";
        }>;
        reason: z.ZodOptional<z.ZodEnum<{
            "checker-unavailable": "checker-unavailable";
            "dynamic-dispatch-refused": "dynamic-dispatch-refused";
            "parse-failed": "parse-failed";
            "resolver-join-miss": "resolver-join-miss";
            "vue-script-absent": "vue-script-absent";
            "vue-template-not-parsed": "vue-template-not-parsed";
            "vue-template-dynamic-component": "vue-template-dynamic-component";
            "vue-template-component-unresolved": "vue-template-component-unresolved";
            "vue-template-component-ambiguous": "vue-template-component-ambiguous";
            "vue-template-identifier-unresolved": "vue-template-identifier-unresolved";
            "vue-template-identifier-ambiguous": "vue-template-identifier-ambiguous";
            "vue-template-expression-parse-failed": "vue-template-expression-parse-failed";
            "vue-template-scope-unsupported": "vue-template-scope-unsupported";
            "vue-template-construct-unsupported": "vue-template-construct-unsupported";
        }>>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export type GitBlobStructureResultV2 = z.infer<typeof GitBlobStructureResultV2Schema>;
export declare const GitBlobStructureBatchFooterV2Schema: z.ZodObject<{
    coverage: z.ZodObject<{
        requests: z.ZodNumber;
        results: z.ZodNumber;
        uniqueObjectsRequested: z.ZodNumber;
        uniqueObjectsRead: z.ZodNumber;
        blobBytesRead: z.ZodNumber;
        completeResults: z.ZodNumber;
        partialResults: z.ZodNumber;
        unavailableResults: z.ZodNumber;
    }, z.core.$strict>;
    type: z.ZodLiteral<"footer">;
    schemaVersion: z.ZodLiteral<2>;
}, z.core.$strict>;
export type GitBlobStructureBatchFooterV2 = z.infer<typeof GitBlobStructureBatchFooterV2Schema>;
export declare const GitBlobStructureBatchEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"header">;
    limits: z.ZodObject<{
        maxRequests: z.ZodNumber;
        maxBlobBytes: z.ZodNumber;
        maxBlobLines: z.ZodNumber;
        maxTotalBlobBytes: z.ZodNumber;
        maxBatchBytes: z.ZodNumber;
        maxSpans: z.ZodNumber;
        formats: z.ZodBoolean;
        skipMinified: z.ZodBoolean;
    }, z.core.$strict>;
    requestCount: z.ZodNumber;
    uniqueObjectCount: z.ZodNumber;
    schemaVersion: z.ZodLiteral<2>;
    provenance: z.ZodObject<{
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        acquisition: z.ZodLiteral<"git-cat-file">;
        occVersion: z.ZodString;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        importResolution: z.ZodLiteral<false>;
        immutableObjects: z.ZodLiteral<true>;
        bodiesIncluded: z.ZodLiteral<false>;
        hashesIncluded: z.ZodLiteral<false>;
        lineageIncluded: z.ZodLiteral<false>;
        instrumentVersion: z.ZodLiteral<2>;
        parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
        spanEncoding: z.ZodLiteral<"utf8-bytes">;
        spanEnd: z.ZodLiteral<"exclusive">;
        parserEvidence: z.ZodLiteral<"per-result">;
    }, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
    coverage: z.ZodObject<{
        blob: z.ZodEnum<{
            error: "error";
            missing: "missing";
            omitted: "omitted";
            "not-a-blob": "not-a-blob";
            acquired: "acquired";
        }>;
        structure: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        expectedBytes: z.ZodOptional<z.ZodNumber>;
        acquiredBytes: z.ZodNumber;
        lineCount: z.ZodOptional<z.ZodNumber>;
        spansDiscovered: z.ZodNumber;
        spansEmitted: z.ZodNumber;
        declarationsDiscovered: z.ZodNumber;
        declarationsEmitted: z.ZodNumber;
        factsDiscovered: z.ZodNumber;
        factsEmitted: z.ZodNumber;
    }, z.core.$strict>;
    type: z.ZodLiteral<"result">;
    status: z.ZodEnum<{
        partial: "partial";
        unavailable: "unavailable";
        complete: "complete";
    }>;
    oid: z.ZodString;
    relativePath: z.ZodString;
    requestIndex: z.ZodNumber;
    requestId: z.ZodString;
    schemaVersion: z.ZodLiteral<2>;
    declarations: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        kind: z.ZodUnion<readonly [z.ZodEnum<{
            function: "function";
            file: "file";
            enum: "enum";
            type: "type";
            module: "module";
            class: "class";
            interface: "interface";
            variable: "variable";
            parameter: "parameter";
            method: "method";
            other: "other";
        }>, z.ZodEnum<{
            object: "object";
            array: "array";
            "array-item": "array-item";
            property: "property";
            section: "section";
            table: "table";
            "array-table": "array-table";
            heading: "heading";
            row: "row";
            document: "document";
        }>, z.ZodEnum<{
            test: "test";
            test_suite: "test_suite";
        }>]>;
        containerName: z.ZodOptional<z.ZodString>;
        signature: z.ZodOptional<z.ZodString>;
        qualifiedName: z.ZodString;
        isExported: z.ZodBoolean;
        ordinal: z.ZodNumber;
        declarationIndex: z.ZodNumber;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>>;
    facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        specifier: z.ZodString;
        isReExport: z.ZodOptional<z.ZodBoolean>;
        importKind: z.ZodEnum<{
            external: "external";
            unresolved: "unresolved";
            local: "local";
        }>;
        factKind: z.ZodLiteral<"import">;
        bindings: z.ZodArray<z.ZodObject<{
            localName: z.ZodString;
            importedName: z.ZodOptional<z.ZodString>;
            isNamespace: z.ZodOptional<z.ZodBoolean>;
            isDefault: z.ZodOptional<z.ZodBoolean>;
            typeOnly: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strict>>;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>, z.ZodObject<{
        callerName: z.ZodString;
        callerContainerName: z.ZodOptional<z.ZodString>;
        calleeName: z.ZodString;
        qualifier: z.ZodOptional<z.ZodString>;
        factKind: z.ZodLiteral<"call">;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>, z.ZodObject<{
        className: z.ZodString;
        baseName: z.ZodString;
        factKind: z.ZodLiteral<"inheritance">;
        inheritanceKind: z.ZodOptional<z.ZodEnum<{
            implements: "implements";
            extends: "extends";
        }>>;
        span: z.ZodObject<{
            version: z.ZodLiteral<1>;
            offsetEncoding: z.ZodLiteral<"utf8-bytes">;
            endExclusive: z.ZodLiteral<true>;
            startLine: z.ZodNumber;
            startColumn: z.ZodOptional<z.ZodNumber>;
            endLine: z.ZodNumber;
            endColumn: z.ZodOptional<z.ZodNumber>;
            startByte: z.ZodOptional<z.ZodNumber>;
            endByte: z.ZodOptional<z.ZodNumber>;
            exact: z.ZodBoolean;
        }, z.core.$strip>;
    }, z.core.$strict>], "factKind">>;
    provenance: z.ZodObject<{
        objectFormat: z.ZodEnum<{
            unknown: "unknown";
            sha1: "sha1";
            sha256: "sha256";
        }>;
        parserName: z.ZodLiteral<"occ.code.parsers">;
        grammar: z.ZodOptional<z.ZodString>;
        language: z.ZodOptional<z.ZodString>;
        parserTier: z.ZodEnum<{
            none: "none";
            format: "format";
            "typescript-compiler": "typescript-compiler";
            "vue-sfc-typescript": "vue-sfc-typescript";
            "tree-sitter": "tree-sitter";
            "regex-fallback": "regex-fallback";
        }>;
        acquisition: z.ZodLiteral<"git-cat-file">;
        occVersion: z.ZodString;
        instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
        nodeVersion: z.ZodString;
        sourceSystem: z.ZodLiteral<"git">;
        immutableObject: z.ZodLiteral<true>;
        importResolution: z.ZodLiteral<false>;
        bodyIncluded: z.ZodLiteral<false>;
        instrumentVersion: z.ZodLiteral<2>;
        parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
        spanEncoding: z.ZodLiteral<"utf8-bytes">;
        spanEnd: z.ZodLiteral<"exclusive">;
        syntaxStatus: z.ZodEnum<{
            valid: "valid";
            recovered: "recovered";
            unchecked: "unchecked";
        }>;
        syntaxErrorCount: z.ZodNumber;
        capabilities: z.ZodObject<{
            definitions: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            imports: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            calls: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            inheritance: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            exports: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            exactSpans: z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>;
            templateUses: z.ZodOptional<z.ZodEnum<{
                full: "full";
                partial: "partial";
                unavailable: "unavailable";
            }>>;
        }, z.core.$strip>;
    }, z.core.$strict>;
    diagnostics: z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        limit: z.ZodOptional<z.ZodNumber>;
        actual: z.ZodOptional<z.ZodNumber>;
        code: z.ZodEnum<{
            "blob-too-large": "blob-too-large";
            "blob-too-many-lines": "blob-too-many-lines";
            "oid-format-mismatch": "oid-format-mismatch";
            "missing-object": "missing-object";
            "not-a-blob": "not-a-blob";
            "total-blob-budget-exhausted": "total-blob-budget-exhausted";
            "content-unavailable": "content-unavailable";
            "binary-blob": "binary-blob";
            "invalid-utf8": "invalid-utf8";
            "git-read-failed": "git-read-failed";
            "unsupported-path": "unsupported-path";
            "parser-skipped": "parser-skipped";
            "parser-failed": "parser-failed";
            "span-limit-exhausted": "span-limit-exhausted";
            "syntax-recovered": "syntax-recovered";
            "fact-coverage-partial": "fact-coverage-partial";
            "exact-span-unavailable": "exact-span-unavailable";
        }>;
        reason: z.ZodOptional<z.ZodEnum<{
            "checker-unavailable": "checker-unavailable";
            "dynamic-dispatch-refused": "dynamic-dispatch-refused";
            "parse-failed": "parse-failed";
            "resolver-join-miss": "resolver-join-miss";
            "vue-script-absent": "vue-script-absent";
            "vue-template-not-parsed": "vue-template-not-parsed";
            "vue-template-dynamic-component": "vue-template-dynamic-component";
            "vue-template-component-unresolved": "vue-template-component-unresolved";
            "vue-template-component-ambiguous": "vue-template-component-ambiguous";
            "vue-template-identifier-unresolved": "vue-template-identifier-unresolved";
            "vue-template-identifier-ambiguous": "vue-template-identifier-ambiguous";
            "vue-template-expression-parse-failed": "vue-template-expression-parse-failed";
            "vue-template-scope-unsupported": "vue-template-scope-unsupported";
            "vue-template-construct-unsupported": "vue-template-construct-unsupported";
        }>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    coverage: z.ZodObject<{
        requests: z.ZodNumber;
        results: z.ZodNumber;
        uniqueObjectsRequested: z.ZodNumber;
        uniqueObjectsRead: z.ZodNumber;
        blobBytesRead: z.ZodNumber;
        completeResults: z.ZodNumber;
        partialResults: z.ZodNumber;
        unavailableResults: z.ZodNumber;
    }, z.core.$strict>;
    type: z.ZodLiteral<"footer">;
    schemaVersion: z.ZodLiteral<2>;
}, z.core.$strict>], "type">;
export type GitBlobStructureBatchEventV2 = z.infer<typeof GitBlobStructureBatchEventV2Schema>;
/**
 * A complete, internally cross-checked V1 receipt for one blob-structure run.
 *
 * This establishes completeness within one trusted local producer process. It
 * is not authentication of a transported payload; hostile-payload validation
 * would require independently rereading and reparsing every physical blob.
 */
export declare const GitBlobStructureBatchV1Schema: z.ZodObject<{
    header: z.ZodObject<{
        schemaVersion: z.ZodLiteral<1>;
        type: z.ZodLiteral<"header">;
        requestCount: z.ZodNumber;
        uniqueObjectCount: z.ZodNumber;
        limits: z.ZodObject<{
            maxRequests: z.ZodNumber;
            maxBlobBytes: z.ZodNumber;
            maxBlobLines: z.ZodNumber;
            maxTotalBlobBytes: z.ZodNumber;
            maxBatchBytes: z.ZodNumber;
            maxSpans: z.ZodNumber;
            formats: z.ZodBoolean;
            skipMinified: z.ZodBoolean;
        }, z.core.$strict>;
        provenance: z.ZodObject<{
            sourceSystem: z.ZodLiteral<"git">;
            acquisition: z.ZodLiteral<"git-cat-file">;
            immutableObjects: z.ZodLiteral<true>;
            objectFormat: z.ZodEnum<{
                unknown: "unknown";
                sha1: "sha1";
                sha256: "sha256";
            }>;
            instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
            instrumentVersion: z.ZodLiteral<1>;
            parserName: z.ZodLiteral<"occ.code.parsers">;
            parserVersion: z.ZodLiteral<1>;
            occVersion: z.ZodString;
            nodeVersion: z.ZodString;
            importResolution: z.ZodLiteral<false>;
            bodiesIncluded: z.ZodLiteral<false>;
            hashesIncluded: z.ZodLiteral<false>;
            lineageIncluded: z.ZodLiteral<false>;
        }, z.core.$strict>;
    }, z.core.$strict>;
    blobs: z.ZodArray<z.ZodObject<{
        schemaVersion: z.ZodLiteral<1>;
        type: z.ZodLiteral<"result">;
        requestIndex: z.ZodNumber;
        requestId: z.ZodString;
        oid: z.ZodString;
        relativePath: z.ZodString;
        status: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        declarations: z.ZodArray<z.ZodObject<{
            kind: z.ZodUnion<readonly [z.ZodEnum<{
                function: "function";
                file: "file";
                enum: "enum";
                type: "type";
                module: "module";
                class: "class";
                interface: "interface";
                variable: "variable";
                parameter: "parameter";
                method: "method";
                other: "other";
            }>, z.ZodEnum<{
                object: "object";
                array: "array";
                "array-item": "array-item";
                property: "property";
                section: "section";
                table: "table";
                "array-table": "array-table";
                heading: "heading";
                row: "row";
                document: "document";
            }>, z.ZodEnum<{
                test: "test";
                test_suite: "test_suite";
            }>]>;
            name: z.ZodString;
            qualifiedName: z.ZodString;
            containerName: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
            isExported: z.ZodBoolean;
            ordinal: z.ZodNumber;
            declarationIndex: z.ZodNumber;
            span: z.ZodObject<{
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
        }, z.core.$strict>>;
        facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            factKind: z.ZodLiteral<"import">;
            specifier: z.ZodString;
            importKind: z.ZodEnum<{
                external: "external";
                unresolved: "unresolved";
                local: "local";
            }>;
            bindings: z.ZodArray<z.ZodObject<{
                localName: z.ZodString;
                importedName: z.ZodOptional<z.ZodString>;
                isNamespace: z.ZodOptional<z.ZodBoolean>;
                isDefault: z.ZodOptional<z.ZodBoolean>;
            }, z.core.$strict>>;
            isReExport: z.ZodOptional<z.ZodBoolean>;
            span: z.ZodObject<{
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
        }, z.core.$strict>, z.ZodObject<{
            factKind: z.ZodLiteral<"call">;
            callerName: z.ZodString;
            callerContainerName: z.ZodOptional<z.ZodString>;
            calleeName: z.ZodString;
            qualifier: z.ZodOptional<z.ZodString>;
            span: z.ZodObject<{
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
        }, z.core.$strict>, z.ZodObject<{
            factKind: z.ZodLiteral<"inheritance">;
            className: z.ZodString;
            baseName: z.ZodString;
            inheritanceKind: z.ZodOptional<z.ZodEnum<{
                implements: "implements";
                extends: "extends";
            }>>;
            span: z.ZodObject<{
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strict>;
        }, z.core.$strict>], "factKind">>;
        provenance: z.ZodObject<{
            instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
            instrumentVersion: z.ZodLiteral<1>;
            parserName: z.ZodLiteral<"occ.code.parsers">;
            parserVersion: z.ZodLiteral<1>;
            occVersion: z.ZodString;
            nodeVersion: z.ZodString;
            sourceSystem: z.ZodLiteral<"git">;
            acquisition: z.ZodLiteral<"git-cat-file">;
            immutableObject: z.ZodLiteral<true>;
            objectFormat: z.ZodEnum<{
                unknown: "unknown";
                sha1: "sha1";
                sha256: "sha256";
            }>;
            parserTier: z.ZodEnum<{
                none: "none";
                format: "format";
                "typescript-compiler": "typescript-compiler";
                "vue-sfc-typescript": "vue-sfc-typescript";
                "tree-sitter": "tree-sitter";
                "regex-fallback": "regex-fallback";
            }>;
            language: z.ZodOptional<z.ZodString>;
            grammar: z.ZodOptional<z.ZodString>;
            importResolution: z.ZodLiteral<false>;
            bodyIncluded: z.ZodLiteral<false>;
        }, z.core.$strict>;
        coverage: z.ZodObject<{
            blob: z.ZodEnum<{
                error: "error";
                missing: "missing";
                omitted: "omitted";
                "not-a-blob": "not-a-blob";
                acquired: "acquired";
            }>;
            structure: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            expectedBytes: z.ZodOptional<z.ZodNumber>;
            acquiredBytes: z.ZodNumber;
            lineCount: z.ZodOptional<z.ZodNumber>;
            spansDiscovered: z.ZodNumber;
            spansEmitted: z.ZodNumber;
            declarationsDiscovered: z.ZodNumber;
            declarationsEmitted: z.ZodNumber;
            factsDiscovered: z.ZodNumber;
            factsEmitted: z.ZodNumber;
        }, z.core.$strict>;
        diagnostics: z.ZodArray<z.ZodObject<{
            code: z.ZodEnum<{
                "blob-too-large": "blob-too-large";
                "blob-too-many-lines": "blob-too-many-lines";
                "oid-format-mismatch": "oid-format-mismatch";
                "missing-object": "missing-object";
                "not-a-blob": "not-a-blob";
                "total-blob-budget-exhausted": "total-blob-budget-exhausted";
                "content-unavailable": "content-unavailable";
                "binary-blob": "binary-blob";
                "invalid-utf8": "invalid-utf8";
                "git-read-failed": "git-read-failed";
                "unsupported-path": "unsupported-path";
                "parser-skipped": "parser-skipped";
                "parser-failed": "parser-failed";
                "span-limit-exhausted": "span-limit-exhausted";
            }>;
            message: z.ZodString;
            limit: z.ZodOptional<z.ZodNumber>;
            actual: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    footer: z.ZodObject<{
        schemaVersion: z.ZodLiteral<1>;
        type: z.ZodLiteral<"footer">;
        coverage: z.ZodObject<{
            requests: z.ZodNumber;
            results: z.ZodNumber;
            uniqueObjectsRequested: z.ZodNumber;
            uniqueObjectsRead: z.ZodNumber;
            blobBytesRead: z.ZodNumber;
            completeResults: z.ZodNumber;
            partialResults: z.ZodNumber;
            unavailableResults: z.ZodNumber;
        }, z.core.$strict>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobStructureBatchV1 = z.infer<typeof GitBlobStructureBatchV1Schema>;
export declare const GitBlobStructureBatchV2Schema: z.ZodObject<{
    header: z.ZodObject<{
        type: z.ZodLiteral<"header">;
        limits: z.ZodObject<{
            maxRequests: z.ZodNumber;
            maxBlobBytes: z.ZodNumber;
            maxBlobLines: z.ZodNumber;
            maxTotalBlobBytes: z.ZodNumber;
            maxBatchBytes: z.ZodNumber;
            maxSpans: z.ZodNumber;
            formats: z.ZodBoolean;
            skipMinified: z.ZodBoolean;
        }, z.core.$strict>;
        requestCount: z.ZodNumber;
        uniqueObjectCount: z.ZodNumber;
        schemaVersion: z.ZodLiteral<2>;
        provenance: z.ZodObject<{
            objectFormat: z.ZodEnum<{
                unknown: "unknown";
                sha1: "sha1";
                sha256: "sha256";
            }>;
            parserName: z.ZodLiteral<"occ.code.parsers">;
            acquisition: z.ZodLiteral<"git-cat-file">;
            occVersion: z.ZodString;
            instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
            nodeVersion: z.ZodString;
            sourceSystem: z.ZodLiteral<"git">;
            importResolution: z.ZodLiteral<false>;
            immutableObjects: z.ZodLiteral<true>;
            bodiesIncluded: z.ZodLiteral<false>;
            hashesIncluded: z.ZodLiteral<false>;
            lineageIncluded: z.ZodLiteral<false>;
            instrumentVersion: z.ZodLiteral<2>;
            parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
            spanEncoding: z.ZodLiteral<"utf8-bytes">;
            spanEnd: z.ZodLiteral<"exclusive">;
            parserEvidence: z.ZodLiteral<"per-result">;
        }, z.core.$strict>;
    }, z.core.$strict>;
    blobs: z.ZodArray<z.ZodObject<{
        coverage: z.ZodObject<{
            blob: z.ZodEnum<{
                error: "error";
                missing: "missing";
                omitted: "omitted";
                "not-a-blob": "not-a-blob";
                acquired: "acquired";
            }>;
            structure: z.ZodEnum<{
                partial: "partial";
                unavailable: "unavailable";
                complete: "complete";
            }>;
            expectedBytes: z.ZodOptional<z.ZodNumber>;
            acquiredBytes: z.ZodNumber;
            lineCount: z.ZodOptional<z.ZodNumber>;
            spansDiscovered: z.ZodNumber;
            spansEmitted: z.ZodNumber;
            declarationsDiscovered: z.ZodNumber;
            declarationsEmitted: z.ZodNumber;
            factsDiscovered: z.ZodNumber;
            factsEmitted: z.ZodNumber;
        }, z.core.$strict>;
        type: z.ZodLiteral<"result">;
        status: z.ZodEnum<{
            partial: "partial";
            unavailable: "unavailable";
            complete: "complete";
        }>;
        oid: z.ZodString;
        relativePath: z.ZodString;
        requestIndex: z.ZodNumber;
        requestId: z.ZodString;
        schemaVersion: z.ZodLiteral<2>;
        declarations: z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            kind: z.ZodUnion<readonly [z.ZodEnum<{
                function: "function";
                file: "file";
                enum: "enum";
                type: "type";
                module: "module";
                class: "class";
                interface: "interface";
                variable: "variable";
                parameter: "parameter";
                method: "method";
                other: "other";
            }>, z.ZodEnum<{
                object: "object";
                array: "array";
                "array-item": "array-item";
                property: "property";
                section: "section";
                table: "table";
                "array-table": "array-table";
                heading: "heading";
                row: "row";
                document: "document";
            }>, z.ZodEnum<{
                test: "test";
                test_suite: "test_suite";
            }>]>;
            containerName: z.ZodOptional<z.ZodString>;
            signature: z.ZodOptional<z.ZodString>;
            qualifiedName: z.ZodString;
            isExported: z.ZodBoolean;
            ordinal: z.ZodNumber;
            declarationIndex: z.ZodNumber;
            span: z.ZodObject<{
                version: z.ZodLiteral<1>;
                offsetEncoding: z.ZodLiteral<"utf8-bytes">;
                endExclusive: z.ZodLiteral<true>;
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                startByte: z.ZodOptional<z.ZodNumber>;
                endByte: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strip>;
        }, z.core.$strict>>;
        facts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            specifier: z.ZodString;
            isReExport: z.ZodOptional<z.ZodBoolean>;
            importKind: z.ZodEnum<{
                external: "external";
                unresolved: "unresolved";
                local: "local";
            }>;
            factKind: z.ZodLiteral<"import">;
            bindings: z.ZodArray<z.ZodObject<{
                localName: z.ZodString;
                importedName: z.ZodOptional<z.ZodString>;
                isNamespace: z.ZodOptional<z.ZodBoolean>;
                isDefault: z.ZodOptional<z.ZodBoolean>;
                typeOnly: z.ZodOptional<z.ZodBoolean>;
            }, z.core.$strict>>;
            span: z.ZodObject<{
                version: z.ZodLiteral<1>;
                offsetEncoding: z.ZodLiteral<"utf8-bytes">;
                endExclusive: z.ZodLiteral<true>;
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                startByte: z.ZodOptional<z.ZodNumber>;
                endByte: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strip>;
        }, z.core.$strict>, z.ZodObject<{
            callerName: z.ZodString;
            callerContainerName: z.ZodOptional<z.ZodString>;
            calleeName: z.ZodString;
            qualifier: z.ZodOptional<z.ZodString>;
            factKind: z.ZodLiteral<"call">;
            span: z.ZodObject<{
                version: z.ZodLiteral<1>;
                offsetEncoding: z.ZodLiteral<"utf8-bytes">;
                endExclusive: z.ZodLiteral<true>;
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                startByte: z.ZodOptional<z.ZodNumber>;
                endByte: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strip>;
        }, z.core.$strict>, z.ZodObject<{
            className: z.ZodString;
            baseName: z.ZodString;
            factKind: z.ZodLiteral<"inheritance">;
            inheritanceKind: z.ZodOptional<z.ZodEnum<{
                implements: "implements";
                extends: "extends";
            }>>;
            span: z.ZodObject<{
                version: z.ZodLiteral<1>;
                offsetEncoding: z.ZodLiteral<"utf8-bytes">;
                endExclusive: z.ZodLiteral<true>;
                startLine: z.ZodNumber;
                startColumn: z.ZodOptional<z.ZodNumber>;
                endLine: z.ZodNumber;
                endColumn: z.ZodOptional<z.ZodNumber>;
                startByte: z.ZodOptional<z.ZodNumber>;
                endByte: z.ZodOptional<z.ZodNumber>;
                exact: z.ZodBoolean;
            }, z.core.$strip>;
        }, z.core.$strict>], "factKind">>;
        provenance: z.ZodObject<{
            objectFormat: z.ZodEnum<{
                unknown: "unknown";
                sha1: "sha1";
                sha256: "sha256";
            }>;
            parserName: z.ZodLiteral<"occ.code.parsers">;
            grammar: z.ZodOptional<z.ZodString>;
            language: z.ZodOptional<z.ZodString>;
            parserTier: z.ZodEnum<{
                none: "none";
                format: "format";
                "typescript-compiler": "typescript-compiler";
                "vue-sfc-typescript": "vue-sfc-typescript";
                "tree-sitter": "tree-sitter";
                "regex-fallback": "regex-fallback";
            }>;
            acquisition: z.ZodLiteral<"git-cat-file">;
            occVersion: z.ZodString;
            instrumentName: z.ZodLiteral<"occ.git-blob-structure">;
            nodeVersion: z.ZodString;
            sourceSystem: z.ZodLiteral<"git">;
            immutableObject: z.ZodLiteral<true>;
            importResolution: z.ZodLiteral<false>;
            bodyIncluded: z.ZodLiteral<false>;
            instrumentVersion: z.ZodLiteral<2>;
            parserVersion: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
            spanEncoding: z.ZodLiteral<"utf8-bytes">;
            spanEnd: z.ZodLiteral<"exclusive">;
            syntaxStatus: z.ZodEnum<{
                valid: "valid";
                recovered: "recovered";
                unchecked: "unchecked";
            }>;
            syntaxErrorCount: z.ZodNumber;
            capabilities: z.ZodObject<{
                definitions: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                imports: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                calls: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                inheritance: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                exports: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                exactSpans: z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>;
                templateUses: z.ZodOptional<z.ZodEnum<{
                    full: "full";
                    partial: "partial";
                    unavailable: "unavailable";
                }>>;
            }, z.core.$strip>;
        }, z.core.$strict>;
        diagnostics: z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            limit: z.ZodOptional<z.ZodNumber>;
            actual: z.ZodOptional<z.ZodNumber>;
            code: z.ZodEnum<{
                "blob-too-large": "blob-too-large";
                "blob-too-many-lines": "blob-too-many-lines";
                "oid-format-mismatch": "oid-format-mismatch";
                "missing-object": "missing-object";
                "not-a-blob": "not-a-blob";
                "total-blob-budget-exhausted": "total-blob-budget-exhausted";
                "content-unavailable": "content-unavailable";
                "binary-blob": "binary-blob";
                "invalid-utf8": "invalid-utf8";
                "git-read-failed": "git-read-failed";
                "unsupported-path": "unsupported-path";
                "parser-skipped": "parser-skipped";
                "parser-failed": "parser-failed";
                "span-limit-exhausted": "span-limit-exhausted";
                "syntax-recovered": "syntax-recovered";
                "fact-coverage-partial": "fact-coverage-partial";
                "exact-span-unavailable": "exact-span-unavailable";
            }>;
            reason: z.ZodOptional<z.ZodEnum<{
                "checker-unavailable": "checker-unavailable";
                "dynamic-dispatch-refused": "dynamic-dispatch-refused";
                "parse-failed": "parse-failed";
                "resolver-join-miss": "resolver-join-miss";
                "vue-script-absent": "vue-script-absent";
                "vue-template-not-parsed": "vue-template-not-parsed";
                "vue-template-dynamic-component": "vue-template-dynamic-component";
                "vue-template-component-unresolved": "vue-template-component-unresolved";
                "vue-template-component-ambiguous": "vue-template-component-ambiguous";
                "vue-template-identifier-unresolved": "vue-template-identifier-unresolved";
                "vue-template-identifier-ambiguous": "vue-template-identifier-ambiguous";
                "vue-template-expression-parse-failed": "vue-template-expression-parse-failed";
                "vue-template-scope-unsupported": "vue-template-scope-unsupported";
                "vue-template-construct-unsupported": "vue-template-construct-unsupported";
            }>>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    footer: z.ZodObject<{
        coverage: z.ZodObject<{
            requests: z.ZodNumber;
            results: z.ZodNumber;
            uniqueObjectsRequested: z.ZodNumber;
            uniqueObjectsRead: z.ZodNumber;
            blobBytesRead: z.ZodNumber;
            completeResults: z.ZodNumber;
            partialResults: z.ZodNumber;
            unavailableResults: z.ZodNumber;
        }, z.core.$strict>;
        type: z.ZodLiteral<"footer">;
        schemaVersion: z.ZodLiteral<2>;
    }, z.core.$strict>;
}, z.core.$strict>;
export type GitBlobStructureBatchV2 = z.infer<typeof GitBlobStructureBatchV2Schema>;
/**
 * Consume an entire event stream and return its verified receipt.
 *
 * The collector deliberately reads through EOF so a valid-looking prefix
 * cannot hide a duplicate footer or any event appended after the footer.
 */
export declare function collectGitBlobStructureBatchV1(events: AsyncIterable<unknown> | Iterable<unknown>): Promise<GitBlobStructureBatchV1>;
/** Consume and verify the V2 stream emitted by this build. */
export declare function collectGitBlobStructureBatch(events: AsyncIterable<unknown> | Iterable<unknown>): Promise<GitBlobStructureBatchV2>;
/**
 * Inspect immutable Git blobs without consulting their checkout contents.
 *
 * Reads are deduplicated by object id. Parsing is keyed by `(oid, relativePath)`
 * because identical bytes can denote different languages at different paths.
 * A result is still emitted for every request occurrence, in input order.
 */
export declare function inspectGitBlobStructures(requestsInput: AsyncIterable<GitBlobStructureRequestV1> | Iterable<GitBlobStructureRequestV1>, rawOptions: GitBlobStructureOptions): AsyncIterable<GitBlobStructureBatchEventV2>;
