export declare interface TestServiceConfig {
  name: string
  port?: number
  readyTimeoutMs?: number
  pollIntervalMs?: number
  quiet?: boolean
}
export declare interface TestServiceStatus {
  name: string
  running: boolean
  port: number | null
  pid: number | null
  dataDir: string | null
}
/**
 * Pantry service lifecycle manager.
 *
 * @example
 * ```ts
 * const pg = new PantryService({ name: 'postgres' })
 * await pg.ensureRunning()
 * console.log(pg.status()) // { running: true, port: 5432, ... }
 * await pg.stop()
 * ```
 */
export declare class PantryService {
  constructor(config: TestServiceConfig);
  static isAvailable(): boolean;
  status(): TestServiceStatus;
  isRunning(): boolean;
  getPort(): number | null;
  start(): Promise<TestServiceStatus>;
  stop(): Promise<void>;
  forceStop(): Promise<void>;
  ensureRunning(): Promise<TestServiceStatus>;
}
