import type { GovernanceAdminSession, GovernanceAdminSessionSnapshot } from './admin-session.js'; import type { GovernanceCapabilityGrant } from './capability-grant.js'; import type { GovernanceDaemonMetadata } from './daemon-metadata.js'; import type { GovernanceProjectClient } from './project-client.js'; import type { GovernanceServiceResponse } from './project-service.js'; import { type GovernanceRuntimeModelCapability } from './service-protocol.js'; export type GovernanceModelCapability = GovernanceRuntimeModelCapability; export interface GovernanceModelSessionSnapshot { readonly projectId: string; readonly clientId: string; readonly grantId: string; readonly capabilities: readonly GovernanceModelCapability[]; readonly expiresAt: string; } export declare const GOVERNANCE_MODEL_SESSION_CONSTRUCTION: unique symbol; export declare class GovernanceModelSession { #private; constructor(construction: typeof GOVERNANCE_MODEL_SESSION_CONSTRUCTION, client: GovernanceProjectClient, grant: GovernanceCapabilityGrant); request(input: unknown): Promise; snapshot(): GovernanceModelSessionSnapshot; } export interface GovernanceCompatibilityRuntimeSnapshot { readonly source: 'attached' | 'launched'; readonly closed: boolean; readonly daemon: GovernanceAdminSessionSnapshot['daemon']; readonly control: { readonly kind: 'admin' | 'attachment'; readonly clientId: string; readonly grantId: string; readonly expiresAt: string; }; readonly admin: GovernanceAdminSessionSnapshot | null; readonly model: GovernanceModelSessionSnapshot; } export type GovernanceCompatibilityControl = { readonly kind: 'admin'; readonly session: GovernanceAdminSession; } | { readonly kind: 'attachment'; readonly client: GovernanceProjectClient; readonly metadata: GovernanceDaemonMetadata; readonly grant: GovernanceCapabilityGrant; }; export declare const GOVERNANCE_COMPATIBILITY_RUNTIME_CONSTRUCTION: unique symbol; export declare class GovernanceCompatibilityRuntime { #private; readonly model: GovernanceModelSession; constructor(construction: typeof GOVERNANCE_COMPATIBILITY_RUNTIME_CONSTRUCTION, source: 'attached' | 'launched', control: GovernanceCompatibilityControl, model: GovernanceModelSession); snapshot(): GovernanceCompatibilityRuntimeSnapshot; close(): Promise; shutdownDaemon(reason?: string): Promise; recordWorkspaceSnapshot(manifestHash: string): Promise; private revokeModelGrant; } //# sourceMappingURL=runtime-compatibility-lifecycle.d.ts.map