export interface ShutdownSignalPort { /** Return a disposer for this subscription only. */ subscribe(listener: () => void): () => void; } export interface OwnedRuntimeHandle { close(): void | Promise; } export interface RuntimeLifetime { /** Admit work that may borrow the owned handles. Already admitted work drains normally. */ use(action: () => Promise): Promise; close(): Promise; } export interface RuntimeOwnership { readonly execution: readonly OwnedRuntimeHandle[]; readonly live: readonly OwnedRuntimeHandle[]; readonly providers: readonly OwnedRuntimeHandle[]; readonly resources: readonly OwnedRuntimeHandle[]; }