type FarmInstrumentationRuntime = "nodejs" | "edge" | "bun"; type FarmInstrumentationMode = "development" | "production" | "test"; interface FarmInstrumentationContext { root: string; mode: FarmInstrumentationMode; runtime: FarmInstrumentationRuntime; } type FarmInstrumentationCleanup = void | (() => void | Promise) | { shutdown: () => void | Promise; }; interface FarmInstrumentationModule { register?: (context: FarmInstrumentationContext) => FarmInstrumentationCleanup | Promise; shutdown?: () => void | Promise; } interface FarmInstrumentationLifecycle { start(): Promise; shutdown(): Promise; } declare function createFarmInstrumentationLifecycle(module: FarmInstrumentationModule | null | undefined, context: FarmInstrumentationContext): FarmInstrumentationLifecycle; declare function resolveFarmInstrumentationRuntime(preset?: string): FarmInstrumentationRuntime; export { type FarmInstrumentationModule as F, type FarmInstrumentationRuntime as a, type FarmInstrumentationMode as b, type FarmInstrumentationContext as c, type FarmInstrumentationCleanup as d, type FarmInstrumentationLifecycle as e, createFarmInstrumentationLifecycle as f, resolveFarmInstrumentationRuntime as r };