import { type ServiceName } from './paths.js'; export declare function extractPlistEnvVars(plistXml: string): Record; export type InstallResult = { kind: 'installed'; plistPath: string; label: string; watchPathsActive: boolean; } | { kind: 'already-installed'; plistPath: string; label: string; } | { kind: 'failed'; reason: string; }; export type UpgradeResult = { kind: 'upgraded'; plistPath: string; label: string; } | { kind: 'already-current'; plistPath: string; label: string; } | { kind: 'not-installed'; plistPath: string; } | { kind: 'failed'; reason: string; }; export type UninstallResult = { kind: 'uninstalled'; plistPath: string; } | { kind: 'not-installed'; plistPath: string; } | { kind: 'failed'; reason: string; }; export interface InstallOptions { noWatch?: boolean; skipBootstrap?: boolean; environment?: Record; _entrypointExistsCheck?: (p: string) => boolean; } export declare function installService(name: ServiceName, opts?: InstallOptions): InstallResult; export declare function uninstallService(name: ServiceName, opts?: { skipBootout?: boolean; }): UninstallResult; export declare function upgradeService(name: ServiceName, opts?: InstallOptions): UpgradeResult; export declare function readPlistFile(name: ServiceName): string | undefined;