import type { IntermediateCompatibilityGap, IntermediateCompatibilityMapping } from "./intermediateMapper.js";
export type IntermediateTransformerBoundary = "input" | "contract" | "governance" | "scope" | "compatibility";
export type IntermediateTransformerGate = {
    accepted: boolean;
    reason?: string;
};
export type IntermediateTransformerRequest = {
    runtimeId?: string;
    transformationId?: string;
    mapping?: IntermediateCompatibilityMapping;
    requireCompatibility?: boolean;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: IntermediateTransformerGate;
    governance?: IntermediateTransformerGate;
};
export type IntermediateTransformerErrorCode = "MISSING_RUNTIME_ID" | "MISSING_TRANSFORMATION_ID" | "MISSING_MAPPING" | "RUNTIME_MISMATCH" | "INCOMPATIBLE_MAPPING" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED";
export type IntermediateTransformerError = {
    code: IntermediateTransformerErrorCode;
    message: string;
    boundary: IntermediateTransformerBoundary;
    safeForRuntimeInspection: true;
};
export type BridgeReadyCapability = {
    capabilityId: string;
    providerKey?: string;
    available: boolean;
    required: boolean;
    evidence: readonly string[];
    limits: readonly string[];
};
export type BridgeReadyFormat = {
    formatId: string;
    mediaType?: string;
    providerKey?: string;
    streaming: boolean;
    structured: boolean;
    available: boolean;
};
export type IntermediateTransformationEnvelope = {
    kind: "agentCore.modelAdapter.intermediateTransformation";
    runtimeId: string;
    transformationId: string;
    mappingId: string;
    sourceInterfaceId: string;
    capabilities: readonly BridgeReadyCapability[];
    formats: readonly BridgeReadyFormat[];
    gaps: readonly IntermediateCompatibilityGap[];
    compatible: boolean;
    acceptedScopes: readonly string[];
    bridgeReadiness: "ready" | "blocked-by-compatibility-gap";
    bridgeHandoff: {
        bridgingLayer: "pending";
        providerPayloadCreated: false;
    };
    unsafeSideEffects: false;
};
export type IntermediateTransformerResult = {
    ok: true;
    envelope: IntermediateTransformationEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: IntermediateTransformerError;
    events: readonly string[];
};
export declare const intermediateTransformerDescriptor: {
    readonly capability: "intermediate-transformer";
    readonly route: "agent_modelAdapter.abstractionLayer.capabilityCompatibilityCore";
    readonly purpose: "transform intermediate compatibility mappings into a bridge-ready provider-neutral envelope";
    readonly providerPayloadCreated: false;
    readonly unsafeSideEffects: false;
};
export declare function transformIntermediateCompatibility(request?: IntermediateTransformerRequest): IntermediateTransformerResult;
