import type { GovernanceModelCapability } from './runtime-compatibility-lifecycle.js'; import { GovernanceCompatibilityRuntime } from './runtime-compatibility-lifecycle.js'; export type { GovernanceCompatibilityRuntimeSnapshot, GovernanceModelCapability, GovernanceModelSessionSnapshot, } from './runtime-compatibility-lifecycle.js'; export { GovernanceCompatibilityRuntime, GovernanceModelSession, } from './runtime-compatibility-lifecycle.js'; import { type ConnectGovernanceAdminSessionOptions, type ConnectGovernanceAdminSessionResult, type GovernanceAdminSessionLeaseOptions } from './admin-session.js'; import { type GovernanceServiceCredential } from './capability-grant.js'; import { type GovernanceProjectDaemonLaunch, launchGovernanceProjectDaemon } from './daemon-launcher.js'; import { inspectGovernanceDaemon, readGovernanceDaemonAttachmentBroker } from './daemon-metadata.js'; import { connectGovernanceProjectClient } from './project-client.js'; export declare const GOVERNANCE_COMPATIBILITY_ADMIN_TTL_MS: number; export declare const GOVERNANCE_COMPATIBILITY_MODEL_TTL_MS: number; export interface ExistingGovernanceAdminCredential { readonly grantId: string; readonly credential: GovernanceServiceCredential; } export interface PrepareGovernanceCompatibilityOptions { readonly projectRoot: string; readonly projectId: string; readonly adminClientId: string; readonly modelClientId: string; readonly modelCapabilities: readonly GovernanceModelCapability[]; readonly adminTtlMs?: number | undefined; readonly modelTtlMs?: number | undefined; readonly timeoutMs?: number | undefined; readonly existingAdmin?: ExistingGovernanceAdminCredential | undefined; readonly adminLease?: GovernanceAdminSessionLeaseOptions | undefined; } export type GovernanceCompatibilityFallbackCode = 'invalid_options' | 'inspection_failed' | 'existing_owner_requires_credential' | 'unsafe_daemon_state' | 'attachment_rejected' | 'launch_failed' | 'admin_session_rejected' | 'model_grant_rejected' | 'model_connection_rejected'; export type GovernanceCompatibilityCleanup = 'not_required' | 'admin_session_stopped' | 'attachment_grants_released' | 'launched_daemon_shutdown_requested' | 'cleanup_failed' | 'unavailable'; export interface GovernanceCompatibilityFallback { readonly mode: 'legacy'; readonly code: GovernanceCompatibilityFallbackCode; readonly phase: 'validate' | 'inspect' | 'attach' | 'launch' | 'provision'; readonly message: string; readonly cleanup: GovernanceCompatibilityCleanup; } export type PrepareGovernanceCompatibilityResult = { readonly mode: 'governed'; readonly runtime: GovernanceCompatibilityRuntime; } | GovernanceCompatibilityFallback; interface GovernanceCompatibilityAdapters { readonly inspect: typeof inspectGovernanceDaemon; readonly launch: typeof launchGovernanceProjectDaemon; readonly connectAttached: (options: ConnectGovernanceAdminSessionOptions) => Promise; readonly connectLaunched: (launch: GovernanceProjectDaemonLaunch, options?: GovernanceAdminSessionLeaseOptions) => Promise; readonly connectModel: typeof connectGovernanceProjectClient; readonly readAttachmentBroker: typeof readGovernanceDaemonAttachmentBroker; } export declare function prepareGovernanceCompatibilityRuntime(options: PrepareGovernanceCompatibilityOptions): Promise; /** Internal source-test seam. Package consumers use prepareGovernanceCompatibilityRuntime. */ export declare function prepareGovernanceCompatibilityRuntimeWithAdapters(options: PrepareGovernanceCompatibilityOptions, adapters: GovernanceCompatibilityAdapters): Promise; //# sourceMappingURL=runtime-compatibility.d.ts.map