import { z } from "zod"; import { type NolOperation, type NolRuntimeBinding } from "../_types/schemas/nol.js"; import { type NolVllmSource } from "./vllm-protocol.js"; export declare const nolVllmConformanceDigest: () => string; /** Pure numeric verification. A successful return is data, never issuance. */ export declare const NOL_VLLM_CAPTURE_MAGIC: Buffer; export declare const NOL_VLLM_CAPTURE_MEDIA_TYPE = "application/x-omnius-vllm-capture"; declare const headerSchema: z.ZodObject<{ schema: z.ZodLiteral<"omnius.nol.vllm-capture.v1">; binding: z.ZodObject<{ schema: z.ZodLiteral<"omnius.nol.runtime.v1">; id: z.ZodString; backend: z.ZodEnum<{ other: "other"; gne: "gne"; llama_cpp: "llama_cpp"; transformers: "transformers"; nnsight: "nnsight"; ollama: "ollama"; vllm: "vllm"; }>; modelDigest: z.ZodString; architectureMapDigest: z.ZodString; runtimeBuildDigest: z.ZodString; dependencyLockDigest: z.ZodString; tokenizerDigest: z.ZodString; chatTemplateDigest: z.ZodString; contextLimit: z.ZodNumber; }, z.core.$strict>; source: z.ZodObject<{ workerSha256: z.ZodString; companionSha256: z.ZodString; runtimeSha256: z.ZodString; }, z.core.$strict>; requestId: z.ZodString; siteId: z.ZodString; recipeDigest: z.ZodNullable; promptTokenIds: z.ZodArray; operations: z.ZodArray; calibrationId: z.ZodOptional; operation: z.ZodLiteral<"NEURON_ADD">; neuron: z.ZodNumber; amount: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"NEURON_GAIN">; neuron: z.ZodNumber; factor: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ units: z.ZodEnum<{ raw: "raw"; residual_norm: "residual_norm"; activation_std: "activation_std"; }>; calibrationId: z.ZodOptional; operation: z.ZodLiteral<"NEURON_REPLACE">; neuron: z.ZodNumber; replacement: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"scalar">; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tensor">; tensor: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; }, z.core.$strict> ], "kind">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ units: z.ZodEnum<{ raw: "raw"; residual_norm: "residual_norm"; activation_std: "activation_std"; }>; calibrationId: z.ZodOptional; operation: z.ZodLiteral<"RESIDUAL_ADD">; vector: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; scale: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"DIRECTION_PROJECT">; basis: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; strength: z.ZodNumber; normalization: z.ZodLiteral<"orthonormal">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"ATTENTION_HEAD_GAIN">; head: z.ZodNumber; factor: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"EXPERT_GAIN">; expert: z.ZodNumber; factor: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ units: z.ZodEnum<{ raw: "raw"; residual_norm: "residual_norm"; activation_std: "activation_std"; }>; calibrationId: z.ZodOptional; operation: z.ZodLiteral<"EXPERT_ROUTING_BIAS">; expert: z.ZodNumber; amount: z.ZodNumber; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"WEIGHT_ADD">; delta: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"scalar">; value: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tensor">; tensor: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; }, z.core.$strict> ], "kind">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"WEIGHT_GAIN">; gain: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"scalar">; factor: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"axis">; axis: z.ZodNumber; factors: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; }, z.core.$strict> ], "kind">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"WEIGHT_REPLACE">; replacement: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"WEIGHT_PROJECT">; side: z.ZodEnum<{ left: "left"; right: "right"; }>; basis: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; strength: z.ZodNumber; normalization: z.ZodLiteral<"orthonormal">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"LOW_RANK_UPDATE">; a: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; b: z.ZodObject<{ artifact: z.ZodObject<{ uri: z.ZodString; sha256: z.ZodString; sizeBytes: z.ZodNumber; mediaType: z.ZodString; }, z.core.$strict>; shape: z.ZodArray; dtype: z.ZodEnum<{ f16: "f16"; bf16: "bf16"; f32: "f32"; f64: "f64"; i8: "i8"; i16: "i16"; i32: "i32"; i64: "i64"; u8: "u8"; bool: "bool"; quantized: "quantized"; }>; }, z.core.$strict>; rank: z.ZodNumber; alpha: z.ZodNumber; scale: z.ZodNumber; scaling: z.ZodLiteral<"alpha_over_rank">; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict>, z.ZodObject<{ operation: z.ZodLiteral<"WEIGHT_MERGE">; sources: z.ZodArray>; id: z.ZodString; siteId: z.ZodString; tokenScope: z.ZodDiscriminatedUnion<[ z.ZodObject<{ kind: z.ZodLiteral<"all">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"prompt">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"generated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"positions">; positions: z.ZodArray; }, z.core.$strict> ], "kind">; }, z.core.$strict> ], "operation">>; arrays: z.ZodArray; dtype: z.ZodLiteral<"bf16">; offset: z.ZodNumber; sizeBytes: z.ZodNumber; sha256: z.ZodString; }, z.core.$strict>>; forwards: z.ZodArray; paddedRows: z.ZodNumber; paddingBeforeSha256: z.ZodString; paddingAfterSha256: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; type Header = z.infer; export declare function nolVllmBf16Bits(value: number): number; export declare function nolVllmBf16Value(bits: number): number; export interface NolVllmCaptureVerification { schema: "omnius.nol.vllm-capture-verification.v1"; captureSha256: string; captureBytes: number; binding: NolRuntimeBinding; source: NolVllmSource; requestId: string; siteId: string; recipeDigest: string | null; positions: number[]; arrays: number; idealOperandL2: number; actualOperandDeltaL2: number; roundingErrorL2: number; validRows: number; paddingBitPreserved: true; consumptionBitExact: true; nativeAuthority: "none"; } export interface NolVllmVerifiedCapture { verification: NolVllmCaptureVerification; header: Header; before: Uint8Array[]; after: Uint8Array[]; } export declare function verifyNolVllmConformanceCapture(input: { captureBytes: Uint8Array; binding: NolRuntimeBinding; source: NolVllmSource; requestId: string; siteId: string; siteWidth: number; recipeDigest: string | null; operations: readonly NolOperation[]; promptTokenIds: readonly number[]; outputTokenCount: number; maxCaptureBytes: number; signal?: AbortSignal; }): NolVllmVerifiedCapture; export declare function assertNolVllmColdRestoration(baseline: NolVllmVerifiedCapture, restored: NolVllmVerifiedCapture): void; export {};