type ConsoleOwnerKind = "cli" | "desktop"; interface ConsoleOwnerMetadata { readonly kind: ConsoleOwnerKind; readonly id: string; readonly protocolVersion: number; } interface DesktopProtocolEnvironment { readonly owner: ConsoleOwnerMetadata; readonly resourceRoot: string; } interface CanonicalConsolePaths { readonly dir: string; readonly lockFile: string; readonly dataDir: string; readonly stateFile: string; readonly settingsFile: string; readonly capturesDir: string; } interface ResolveCanonicalConsolePathsInput { readonly tmpDir: string; readonly uid: number; readonly fleetDataDir: string; readonly consoleDirOverride?: string; } interface ResolveCanonicalLocalConsolePathsInput { readonly packageRoot: string; } declare const DESKTOP_PROTOCOL_VERSION = 1; declare const DESKTOP_RESOURCE_ROOT_ENV = "FLEET_CONSOLE_RESOURCE_ROOT"; declare const DESKTOP_OWNER_ID_ENV = "FLEET_CONSOLE_OWNER_ID"; declare const DESKTOP_OWNER_KIND_ENV = "FLEET_CONSOLE_OWNER_KIND"; declare const DESKTOP_PROTOCOL_VERSION_ENV = "FLEET_CONSOLE_PROTOCOL_VERSION"; declare const DESKTOP_RESOURCE_ROOT_MARKER = ".fleet-console-resource-root"; declare const DESKTOP_DEVELOPMENT_ENV = "FLEET_CONSOLE_DESKTOP_DEVELOPMENT"; declare function isCompatibleDesktopOwner(owner: ConsoleOwnerMetadata | undefined, version: string, expected: { readonly id: string; readonly version: string; }): boolean; declare function resolveCanonicalStableConsolePaths(input: ResolveCanonicalConsolePathsInput): CanonicalConsolePaths; declare function resolveCanonicalLocalConsolePaths(input: ResolveCanonicalLocalConsolePathsInput): CanonicalConsolePaths; interface DesktopProtocolValidationDeps { readonly expectedPackageRoot?: string; } declare function readDesktopProtocolEnvironment(env?: NodeJS.ProcessEnv, deps?: DesktopProtocolValidationDeps): DesktopProtocolEnvironment | null; declare function isDesktopDevelopmentEnvironment(env?: NodeJS.ProcessEnv): boolean; declare function validateDesktopResourceRoot(root: string, expectedPackageRoot?: string): string; declare function validateDesktopDevelopmentResourceRoot(root: string): string; export { type CanonicalConsolePaths, type ConsoleOwnerKind, type ConsoleOwnerMetadata, DESKTOP_DEVELOPMENT_ENV, DESKTOP_OWNER_ID_ENV, DESKTOP_OWNER_KIND_ENV, DESKTOP_PROTOCOL_VERSION, DESKTOP_PROTOCOL_VERSION_ENV, DESKTOP_RESOURCE_ROOT_ENV, DESKTOP_RESOURCE_ROOT_MARKER, type DesktopProtocolEnvironment, type DesktopProtocolValidationDeps, type ResolveCanonicalConsolePathsInput, type ResolveCanonicalLocalConsolePathsInput, isCompatibleDesktopOwner, isDesktopDevelopmentEnvironment, readDesktopProtocolEnvironment, resolveCanonicalLocalConsolePaths, resolveCanonicalStableConsolePaths, validateDesktopDevelopmentResourceRoot, validateDesktopResourceRoot };