import type { RuntimeServiceDefinition } from "@ai-kod/setup-core"; import { ServiceManager } from "@ai-kod/setup-core"; export interface RuntimeServicesResolution { readonly services: RuntimeServiceDefinition[]; readonly missing: string[]; } export interface HealthCheckResult { readonly ok: boolean; readonly url: string; readonly message?: string; } export interface LibraryCheckResult { readonly ok: boolean; readonly registryPath: string; readonly total: number; readonly missing: string[]; readonly error?: string; } export interface EngineEnvCheckResult { readonly ok: boolean; readonly root: string; readonly checkedProfiles: number; readonly missing: Array<{ profileId: string; envFile: string; path: string; }>; } export declare function resolvePm2Home(root: string): string; export declare function ensureDevEnvironment(): void; export declare function resolveAiKodRoot(): Promise; export declare function withPm2Home(pm2Home: string, run: () => Promise): Promise; export declare function createServiceManager(pm2Home: string): ServiceManager; export declare function resolveRuntimeServices(manager: ServiceManager, dataRoot: string): Promise; export declare function checkApiHealth(): Promise; export declare function checkLibraryConsistency(libraryRoot: string): Promise; export declare function checkEngineEnvFiles(root: string): EngineEnvCheckResult; export declare function resolvePnpmGlobalRoot(): Promise; export declare function normalizeWorkerCount(value: number | undefined, fallback?: number): number; export declare function appendNodePath(paths: string[]): void;