import type { ModelAdapterRuntimeCaller, ModelAdapterRuntimeGate } from "./modelAdapterRuntime.js";
export type BridgedModelCapabilityKind = "text-generation" | "tool-call" | "embedding" | "multimodal" | "streaming" | (string & {});
export type BridgingLayerBindingBoundary = "input" | "contract" | "governance" | "runtime-state" | "binding";
export type BridgingLayerBindingErrorCode = "MISSING_RUNTIME_ID" | "MISSING_CALLER" | "MISSING_BRIDGING_LAYER" | "MISSING_BRIDGING_LAYER_ID" | "EMPTY_BRIDGED_CAPABILITIES" | "RUNTIME_NOT_READY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED";
export type BridgingLayerBindingError = {
    code: BridgingLayerBindingErrorCode;
    message: string;
    boundary: BridgingLayerBindingBoundary;
    publicSafe: true;
};
export type BridgedModelCapabilityRef = {
    kind: BridgedModelCapabilityKind;
    ref: string;
    abstractionRef?: string;
};
export type BridgingLayerBindingInput = {
    id?: string;
    capabilities?: readonly BridgedModelCapabilityRef[];
    metadata?: Readonly<Record<string, unknown>>;
};
export type BridgingLayerBindingRequest = {
    runtimeId?: string;
    caller?: ModelAdapterRuntimeCaller;
    bridgingLayer?: BridgingLayerBindingInput;
    runtimeReady?: boolean;
    contract?: ModelAdapterRuntimeGate;
    governance?: ModelAdapterRuntimeGate;
};
export type BridgingLayerBinding = {
    bindingId: string;
    runtimeId: string;
    layerId: string;
    caller: ModelAdapterRuntimeCaller;
    surface: "bridgingLayer";
    route: "runtime.modelAdapter.bridgingLayer";
    capabilities: readonly BridgedModelCapabilityRef[];
    capabilityKinds: readonly BridgedModelCapabilityKind[];
    metadata: Readonly<Record<string, unknown>>;
    contractChecked: true;
    governanceChecked: true;
    dryRun: true;
    unsafeSideEffects: false;
};
export type BridgingLayerBindingResult = {
    ok: true;
    binding: BridgingLayerBinding;
    events: readonly string[];
} | {
    ok: false;
    error: BridgingLayerBindingError;
    events: readonly string[];
};
export declare function bindBridgingLayer(request?: BridgingLayerBindingRequest): BridgingLayerBindingResult;
