import { type CborValue } from "./canonical-cbor.js"; /** ABI v3 error codes [echo docs/spec/SPEC-0009-wasm-abi-v3.md@2048da5c]. */ export declare const ABI_ERROR_CODES: { readonly INVALID_INTENT: 2; readonly NOT_SUPPORTED: 5; readonly CODEC_ERROR: 6; readonly UNSUPPORTED_QUERY: 11; readonly FORBIDDEN_CONTROL_INTENT: 19; }; export declare const ABI_ERROR_NAMES: Readonly>; /** Envelope-level observe operation names (pre-observer-plan convention). */ export declare const STRUCTURAL_HISTORY_OBSERVE_OPERATIONS: { readonly intentOutcome: "intentOutcome"; readonly structuralReadings: "structuralReadings"; readonly retainedEvidencePosture: "retainedEvidencePosture"; }; /** * EINT v1 operation ids for Graft's internal fake Echo witness. * The real authority belongs in Echo's released contract-host generator. */ export declare const STRUCTURAL_HISTORY_WITNESS_INTENT_OPERATION_IDS: { readonly recordGitWarpImportBatch: 2574440766; }; /** Default basis id used by the witness fixture space. */ export declare const DEFAULT_STRUCTURAL_HISTORY_BASIS_ID = "basis-live"; export declare class EchoEnvelopeCodecError extends Error { constructor(message: string); } export declare function packStructuralHistoryIntentV1(opId: number, vars: Uint8Array): Uint8Array; export interface StructuralHistoryIntentEnvelope { readonly opId: number; readonly vars: Uint8Array; } export declare function unpackStructuralHistoryIntentV1(envelope: Uint8Array): StructuralHistoryIntentEnvelope; export interface StructuralHistoryObserveRequest { readonly operationName: string; readonly vars: CborValue; } export declare function encodeStructuralHistoryObserveRequest(request: StructuralHistoryObserveRequest): Uint8Array; export declare function decodeStructuralHistoryObserveRequest(bytes: Uint8Array): StructuralHistoryObserveRequest; export type StructuralHistoryWireResponse = { readonly ok: true; readonly fields: Readonly>; } | { readonly ok: false; readonly code: number; readonly message: string; }; export declare function encodeStructuralHistoryOkResponse(fields: Readonly>): Uint8Array; export declare function encodeStructuralHistoryErrorResponse(code: number, message: string): Uint8Array; export declare function decodeStructuralHistoryIntentResponse(bytes: Uint8Array): StructuralHistoryWireResponse; export declare function decodeStructuralHistoryObserveResponse(bytes: Uint8Array): StructuralHistoryWireResponse; //# sourceMappingURL=structural-history-envelope-codec.d.ts.map