/**
 * Service management entry point.
 *
 * Re-exports all types and provides a factory function that returns
 * the correct ServiceManager implementation for the detected (or
 * specified) platform. Uses dynamic imports to avoid loading all
 * platform-specific code on every platform.
 */
export type { ServiceManager, ServiceConfig, ServiceStatus, ServiceState, ServicePlatform, RestartPolicy, LogOptions, } from './types.js';
export { DEFAULT_RESTART_POLICY } from './types.js';
export { detectPlatform, isRoot, kiciConfigRoot, getConfigDir, getLogDir, getCacheDir, } from './platform-detect.js';
export { resolveUserLevel, type PrivilegeOpts } from './privilege.js';
export type { Component, InstanceManifest, IndexEntry, ResolveOptions, ResolvedInstance, } from './instance/types.js';
export { COMPONENTS, isComponent } from './instance/types.js';
export { manifestFilename, manifestPath, readManifest, writeManifest, readKiciVersion, } from './instance/manifest.js';
export { indexPath, readIndex, writeIndex, appendIndexEntry, removeIndexEntry, } from './instance/index-file.js';
export { listInstances, resolveInstance, formatRefusal } from './instance/resolve.js';
export type { ListedInstance, ResolveArgs, ListInstancesArgs } from './instance/resolve.js';
import type { ServiceManager, ServicePlatform } from './types.js';
/**
 * Create a ServiceManager for the given platform.
 *
 * Uses dynamic imports so only the relevant platform code is loaded.
 * For example, on Linux only the systemd module is imported, not
 * Windows or launchd code.
 *
 * @param platform - Target platform (from detectPlatform() or --platform flag)
 * @returns The appropriate ServiceManager implementation
 */
export declare function createServiceManager(platform: ServicePlatform): Promise<ServiceManager>;
//# sourceMappingURL=index.d.ts.map