import type { NormalizedFeature } from './config'; import type { FeatureKey } from './featureCatalog'; import type { FeatureStatus, ReadyResult } from '../types/debug'; export type { FeaturePhase, FeatureStatus, ReadyResult } from '../types/debug'; export interface FeatureContext { readonly owner: symbol; readonly signal: AbortSignal; isCurrent(): boolean; setStatus(status: FeatureStatus): void; } export interface FeatureDriver { start(context: FeatureContext): void | Promise; dispose(): void; } export interface RuntimeDependencies { detectDebugBuild(signal: AbortSignal): Promise; fallbackDev: boolean | undefined; createDriver(config: NormalizedFeature): FeatureDriver; publish(features: Partial>): void; } export interface ToolkitRuntime { readonly ready: Promise; start(): void; dispose(): void; }