import type { InterfaceAdapterRuntimeCaller, InterfaceAdapterRuntimeGate } from "./interfaceAdapterRuntime.js";
export type BasicInterfaceLayerBoundary = "input" | "contract" | "governance" | "runtime-state" | "binding";
export type BasicInterfaceKind = "CMP" | "MP" | "TAP" | "multiagent" | (string & {});
export type BasicInterfaceLayerErrorCode = "MISSING_RUNTIME_ID" | "MISSING_CALLER" | "MISSING_BASIC_INTERFACE_LAYER" | "MISSING_BASIC_INTERFACE_LAYER_ID" | "EMPTY_BASIC_INTERFACES" | "RUNTIME_NOT_READY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED";
export type BasicInterfaceLayerError = {
    code: BasicInterfaceLayerErrorCode;
    message: string;
    boundary: BasicInterfaceLayerBoundary;
    publicSafe: true;
};
export type BasicInterfaceRef = {
    kind: BasicInterfaceKind;
    interfaceId: string;
    ruleRef?: string;
};
export type BasicInterfaceLayerInput = {
    id?: string;
    interfaces?: readonly BasicInterfaceRef[];
    metadata?: Readonly<Record<string, unknown>>;
};
export type BasicInterfaceLayerBindingRequest = {
    runtimeId?: string;
    caller?: InterfaceAdapterRuntimeCaller;
    basicInterfaceLayer?: BasicInterfaceLayerInput;
    runtimeReady?: boolean;
    contract?: InterfaceAdapterRuntimeGate;
    governance?: InterfaceAdapterRuntimeGate;
};
export type BasicInterfaceLayerBinding = {
    bindingId: string;
    runtimeId: string;
    layerId: string;
    caller: InterfaceAdapterRuntimeCaller;
    surface: "basicInterfaceLayer";
    route: "runtime.interfaceAdapter.basicInterfaceLayer";
    interfaces: readonly BasicInterfaceRef[];
    interfaceKinds: readonly BasicInterfaceKind[];
    metadata: Readonly<Record<string, unknown>>;
    contractChecked: true;
    governanceChecked: true;
    dryRun: true;
    unsafeSideEffects: false;
};
export type BasicInterfaceLayerBindingResult = {
    ok: true;
    binding: BasicInterfaceLayerBinding;
    events: readonly string[];
} | {
    ok: false;
    error: BasicInterfaceLayerError;
    events: readonly string[];
};
export declare function bindBasicInterfaceLayer(request?: BasicInterfaceLayerBindingRequest): BasicInterfaceLayerBindingResult;
