export type AdaptiveRuntimeSignalKind = "provider-health" | "resource-pressure" | "capability-demand" | "module-imbalance" | "contract-drift";
export type AdaptiveRuntimeSignalSeverity = "info" | "warning" | "critical";
export type AdaptiveRuntimeActionKind = "keep-current" | "degrade-capability" | "provider-fallback" | "tune-resource" | "rebalance-module";
export type AdaptiveRuntimeErrorBoundary = "input" | "contract" | "governance" | "runtime-state" | "scope";
export type AdaptiveRuntimeErrorCode = "MISSING_RUNTIME_ID" | "RUNTIME_NOT_READY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "UNSUPPORTED_SIGNAL" | "ADAPTATION_SCOPE_REJECTED";
export type AdaptiveRuntimeGate = {
    accepted: boolean;
    reason?: string;
};
export type AdaptiveRuntimeSignal = {
    kind: AdaptiveRuntimeSignalKind | string;
    severity?: AdaptiveRuntimeSignalSeverity | string;
    source?: string;
    target?: string;
    metric?: number;
    message?: string;
    requestedAction?: AdaptiveRuntimeActionKind;
};
export type AdaptiveRuntimeRequest = {
    runtimeId?: string;
    runtimeReady?: boolean;
    signals?: readonly AdaptiveRuntimeSignal[];
    allowedActions?: readonly AdaptiveRuntimeActionKind[];
    contract?: AdaptiveRuntimeGate;
    governance?: AdaptiveRuntimeGate;
    dryRun?: boolean;
};
export type AdaptiveRuntimeActionPlan = {
    kind: AdaptiveRuntimeActionKind;
    target: string;
    reason: string;
    guardedBy: readonly ["runtime.contractSurface", "runtime.governancePlane"];
    dryRun: true;
};
export type AdaptiveRuntimeDecisionStatus = "stable" | "adjustment-planned";
export type AdaptiveRuntimeDecision = {
    runtimeId: string;
    status: AdaptiveRuntimeDecisionStatus;
    selectedAction: AdaptiveRuntimeActionPlan;
    consideredSignals: readonly AdaptiveRuntimeSignal[];
    auditTrail: readonly string[];
    unsafeSideEffects: false;
};
export type AdaptiveRuntimeError = {
    code: AdaptiveRuntimeErrorCode;
    message: string;
    boundary: AdaptiveRuntimeErrorBoundary;
    publicSafe: true;
};
export type AdaptiveRuntimeResult = {
    ok: true;
    decision: AdaptiveRuntimeDecision;
    events: readonly string[];
} | {
    ok: false;
    error: AdaptiveRuntimeError;
    events: readonly string[];
};
export declare const DEFAULT_ADAPTIVE_RUNTIME_ACTIONS: readonly ["keep-current", "degrade-capability", "provider-fallback", "tune-resource", "rebalance-module"];
export declare function planAdaptiveRuntimeAdjustment(request?: AdaptiveRuntimeRequest): AdaptiveRuntimeResult;
