/** * Independent AIWG implementation of the Fortemi dataset capability wire rules * (Fortemi/fortemi-react#422 validation revision 1.0.1). AIWG pins the authority * schema and vectors but never imports the producer's validator, so agreement is * established by shared vectors rather than by shared code. */ export declare const FORTEMI_CAPABILITY_CONTRACT = "fortemi.dataset-execution-capabilities/v1"; export declare const FORTEMI_CAPABILITY_SCHEMA_MAJOR = 1; export interface FortemiCapabilityDeclaration { id: string; version: string; status: "supported" | "experimental" | "unsupported"; limits?: Record; evidence: string[]; } export interface FortemiCapabilityDescriptor { contract: string; schemaVersion: string; runtime: { id: string; version: string; plane: string; dataClass: string; maturity: string; }; guarantees: Record; capabilities: FortemiCapabilityDeclaration[]; evidence: Array<{ id: string; kind: string; uri: string; digest?: string; }>; } export interface FortemiCapabilityRequirement { id: string; minimumVersion?: string; minimumLimits?: Record; fallback?: string[]; } export interface FortemiCapabilityRequest { contract: string; required: FortemiCapabilityRequirement[]; optional?: FortemiCapabilityRequirement[]; } export interface FortemiCapabilityDegradation { requested: string; selected?: string; reason: "unsupported" | "version-insufficient" | "limit-insufficient"; changedGuarantees: string[]; } export interface FortemiCapabilityDecision { accepted: boolean; selected: string[]; degradations: FortemiCapabilityDegradation[]; diagnostics: string[]; } /** SemVer 2.0.0 precedence; build metadata is ignored. `null` means unparseable. */ export declare function compareFortemiCapabilityVersions(left: unknown, right: unknown): number | null; /** Structural and semantic validation of an advertised capability descriptor. */ export declare function validateFortemiCapabilityDescriptor(descriptor: unknown): string[]; /** Structural and semantic validation of a negotiation request AIWG is about to send. */ export declare function validateFortemiCapabilityRequest(request: unknown): string[]; /** * Pure negotiation of a request against an advertised descriptor. Performs no * I/O and mutates neither input, so a caller can compare the result with the * decision a server reports for the same pair. */ export declare function negotiateFortemiCapabilities(descriptor: unknown, request: unknown): FortemiCapabilityDecision; //# sourceMappingURL=fortemi-capability.d.ts.map