export type RuntimeOperationBusBoundary = "input" | "contract" | "governance" | "scope" | "runtime-state" | "bus";
export type RuntimeOperationBusCallerKind = "application" | "official-module" | "runtime-surface" | "inspection" | "debug";
export type RuntimeOperationBusDispatchMode = "dry-run";
export type RuntimeOperationBusGate = {
    accepted: boolean;
    reason?: string;
};
export type RuntimeOperationBusCaller = {
    callerId?: string;
    kind?: RuntimeOperationBusCallerKind;
};
export type RuntimeOperationBusOperation = {
    operationId?: string;
    kind?: string;
    targetSurface?: string;
    caller?: RuntimeOperationBusCaller;
    payload?: Record<string, unknown>;
    trace?: {
        correlationId?: string;
        causationId?: string;
    };
};
export type RuntimeOperationBusRequest = {
    runtimeId?: string;
    runtimeReady?: boolean;
    operation?: RuntimeOperationBusOperation;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    mountedSurfaces?: readonly string[];
    contract?: RuntimeOperationBusGate;
    governance?: RuntimeOperationBusGate;
    dryRun?: boolean;
};
export type RuntimeOperationBusErrorCode = "MISSING_RUNTIME_ID" | "MISSING_OPERATION" | "MISSING_OPERATION_KIND" | "MISSING_TARGET_SURFACE" | "MISSING_CALLER" | "INVALID_PAYLOAD" | "RUNTIME_NOT_READY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "TARGET_SURFACE_NOT_MOUNTED" | "REAL_DISPATCH_NOT_ALLOWED";
export type RuntimeOperationBusError = {
    code: RuntimeOperationBusErrorCode;
    message: string;
    boundary: RuntimeOperationBusBoundary;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type RuntimeOperationBusEnvelope = {
    runtimeId: string;
    busSurface: "runtime.operationBus";
    operationId: string;
    operationKind: string;
    caller: {
        callerId: string;
        kind: RuntimeOperationBusCallerKind;
    };
    targetSurface: string;
    payload: Readonly<Record<string, unknown>>;
    acceptedScopes: readonly string[];
    trace: {
        correlationId?: string;
        causationId?: string;
    };
    dispatchMode: RuntimeOperationBusDispatchMode;
    status: "accepted-for-audit";
    contractSurface: "runtime.contractSurface";
    governanceRequired: true;
    unsafeSideEffects: false;
};
export type RuntimeOperationBusResult = {
    ok: true;
    envelope: RuntimeOperationBusEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: RuntimeOperationBusError;
    events: readonly string[];
};
export declare const runtimeOperationBusDescriptor: {
    readonly surface: "runtime.operationBus";
    readonly capability: "runtimeOperationBus";
    readonly purpose: "accept runtime operations from applications and official modules through contract and governance checks before real dispatch exists";
    readonly unsafeSideEffects: false;
};
export declare function submitRuntimeOperation(request?: RuntimeOperationBusRequest): RuntimeOperationBusResult;
