export type ApplicationRuntimeContextErrorCode = "MISSING_RUNTIME_ID" | "MISSING_APPLICATION_ID" | "RUNTIME_NOT_READY" | "GOVERNANCE_REJECTED";
export type ApplicationRuntimeContextError = {
    code: ApplicationRuntimeContextErrorCode;
    message: string;
    boundary: "input" | "runtime-state" | "governance";
};
export type ApplicationRuntimeContextGate = {
    accepted: boolean;
    reason?: string;
};
export type ApplicationRuntimeCapabilityView = {
    capabilityId: string;
    kind?: "agent" | "tool" | "model" | "interface" | "event";
    visibility?: "public" | "application" | "internal";
};
export type ApplicationRuntimeSessionView = {
    sessionId: string;
    agentId?: string;
    status: "new" | "active" | "paused" | "closed";
};
export type ApplicationRuntimeModeView = {
    modeId: string;
    label?: string;
    active?: boolean;
};
export type ApplicationRuntimeContextRequest = {
    runtimeId: string;
    applicationId: string;
    runtimeReady?: boolean;
    sessionId?: string;
    capabilities?: readonly ApplicationRuntimeCapabilityView[];
    sessions?: readonly ApplicationRuntimeSessionView[];
    modes?: readonly ApplicationRuntimeModeView[];
    eventSubscriptions?: readonly string[];
    governance?: ApplicationRuntimeContextGate;
};
export type ApplicationRuntimeContext = {
    runtimeId: string;
    applicationId: string;
    sessionId?: string;
    capabilities: readonly Omit<ApplicationRuntimeCapabilityView, "visibility">[];
    sessions: readonly ApplicationRuntimeSessionView[];
    modes: readonly ApplicationRuntimeModeView[];
    activeModeId?: string;
    eventSubscriptions: readonly string[];
    governanceState: "accepted";
    internalStateExposed: false;
};
export type ApplicationRuntimeContextResult = {
    ok: true;
    context: ApplicationRuntimeContext;
    events: readonly string[];
} | {
    ok: false;
    error: ApplicationRuntimeContextError;
    events: readonly string[];
};
export declare function createApplicationRuntimeContext(request: ApplicationRuntimeContextRequest): ApplicationRuntimeContextResult;
