import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; import type { HostEnvironmentInfo, OsKind, PathClass, ShellName, } from '#/_base/execEnv/environmentProbe'; export type { HostEnvironmentInfo, OsKind, PathClass, ShellName }; export interface IHostEnvironment { readonly _serviceBrand: undefined; readonly osKind: OsKind; readonly osArch: string; readonly osVersion: string; readonly shellName: ShellName; readonly shellPath: string; readonly pathClass: PathClass; readonly homeDir: string; readonly ready: Promise; } export const IHostEnvironment: ServiceIdentifier = createDecorator('hostEnvironment');