export type RuntimeManagementBoundary = "input" | "contract" | "governance" | "runtime-state" | "management-surface" | "scope";
export type RuntimeManagementCallerKind = "application" | "official-module" | "runtime-surface" | "operator" | "inspection" | "debug" | "test";
export type RuntimeManagementCaller = {
    kind: RuntimeManagementCallerKind;
    id: string;
    moduleId?: string;
    sessionId?: string;
};
export type RuntimeManagementGate = {
    accepted: boolean;
    reason?: string;
};
export type RuntimeManagementSurface = "runtimeManagementPlane" | "operatorConsole" | "commandRouter" | "policyGate" | "resourceGovernor" | "mutationPlanner" | "rollbackController" | "governanceBridge" | "accessSession" | (string & {});
export type RuntimeManagementComponentInput = {
    surface?: RuntimeManagementSurface;
    componentId?: string;
    ready?: boolean;
    capabilities?: readonly string[];
    metadata?: Readonly<Record<string, unknown>>;
};
export type RuntimeManagementComponent = {
    surface: RuntimeManagementSurface;
    componentId: string;
    ready: true;
    capabilities: readonly string[];
    metadata: Readonly<Record<string, unknown>>;
};
export type RuntimeManagementErrorCode = "MISSING_RUNTIME_ID" | "MISSING_CALLER" | "MISSING_COMPONENTS" | "MISSING_COMPONENT_SURFACE" | "MISSING_COMPONENT_ID" | "RUNTIME_NOT_READY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "COMPONENT_NOT_READY" | "SCOPE_DENIED";
export type RuntimeManagementError = {
    code: RuntimeManagementErrorCode;
    message: string;
    boundary: RuntimeManagementBoundary;
    publicSafe: true;
    internalDetailExposed: false;
};
export type RuntimeManagementHandle = {
    runtimeId: string;
    caller: RuntimeManagementCaller;
    route: "runtime.managementPlane";
    phase: "ready";
    components: readonly RuntimeManagementComponent[];
    componentIds: readonly string[];
    surfaces: readonly RuntimeManagementSurface[];
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    governanceChecked: true;
    contractChecked: true;
    auditRequired: true;
    dryRun: true;
    unsafeSideEffects: false;
};
export type RuntimeManagementPlaneRequest = {
    runtimeId?: string;
    caller?: RuntimeManagementCaller;
    components?: readonly RuntimeManagementComponentInput[];
    runtimeReady?: boolean;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: RuntimeManagementGate;
    governance?: RuntimeManagementGate;
};
export type RuntimeManagementPlaneResult = {
    ok: true;
    managementPlane: RuntimeManagementHandle;
    events: readonly string[];
} | {
    ok: false;
    error: RuntimeManagementError;
    events: readonly string[];
};
export declare function hasRuntimeManagementText(value: string | undefined): value is string;
export declare function cleanRuntimeManagementList(values: readonly string[] | undefined): readonly string[];
export declare function createRuntimeManagementError(code: RuntimeManagementErrorCode, message: string, boundary: RuntimeManagementBoundary): RuntimeManagementError;
export declare function createRuntimeManagementPlane(request?: RuntimeManagementPlaneRequest): RuntimeManagementPlaneResult;
