import type { FactoryDefinition, FactoryEvent } from "@you-agent-factory/client"; import { type FactoryEmulatorScenario } from "./scenario.js"; export declare const FACTORY_EMULATOR_RUNTIME_REFERENCE_SCHEMA_VERSION: "factory-emulator-runtime-reference/v1"; export interface FactoryEmulatorRuntimeReferenceProvenance { readonly source: string; readonly kind: "public-behavior" | "public-documentation" | "public-recording"; } export interface FactoryEmulatorRuntimeReferenceTick { readonly logicalTick: number; readonly eventKinds: readonly FactoryEvent["type"][]; readonly semantics: FactoryEmulatorRuntimeReferenceSemantics; } /** Stable, identity- and time-normalized evidence observed after one logical tick. */ export interface FactoryEmulatorRuntimeReferenceSemantics { readonly dispatchChoices: readonly string[]; readonly consumedWork: readonly string[]; readonly outcomes: readonly string[]; readonly routes: readonly string[]; readonly terminalStates: readonly string[]; readonly replayProjection: readonly string[]; } export interface FactoryEmulatorRuntimeReference { readonly schemaVersion: typeof FACTORY_EMULATOR_RUNTIME_REFERENCE_SCHEMA_VERSION; readonly id: string; readonly title: string; readonly provenance: FactoryEmulatorRuntimeReferenceProvenance; readonly factory: FactoryDefinition; readonly scenario: FactoryEmulatorScenario; readonly ticks: readonly FactoryEmulatorRuntimeReferenceTick[]; readonly orderedEventKinds: readonly FactoryEvent["type"][]; } export type FactoryEmulatorRuntimeReferenceIssueCode = "invalid_factory" | "invalid_provenance" | "invalid_schema_version" | "invalid_tick_order" | "invalid_value" | "missing_required_data" | "missing_semantics" | "unexpected_event_kind"; export interface FactoryEmulatorRuntimeReferenceIssue { readonly code: FactoryEmulatorRuntimeReferenceIssueCode; readonly path: readonly (string | number)[]; readonly message: string; } export type SafeParseFactoryEmulatorRuntimeReferenceResult = { readonly success: true; readonly data: FactoryEmulatorRuntimeReference; } | { readonly success: false; readonly issues: readonly FactoryEmulatorRuntimeReferenceIssue[]; }; /** Validates frozen, package-local evidence before a conformance comparison starts. */ export declare function safeParseFactoryEmulatorRuntimeReference(input: unknown): SafeParseFactoryEmulatorRuntimeReferenceResult; /** Returns detached validated fixtures in their frozen package declaration order. */ export declare function loadFactoryEmulatorRuntimeReferences(): readonly FactoryEmulatorRuntimeReference[];