import type { Command } from '../commands/command'; import { Config } from '../config/config'; import { PkgType } from '../types'; export declare function getPkg({ cwd }: { cwd: string; }): { pkg: Record>; pkgPath: string; }; interface ServiceOpts { cwd: string; } export declare class Service { opts: ServiceOpts; commands: Record; cwd: string; name?: string; config: Record; userConfig: Record; pkg: PkgType; pkgPath: string; configManager: Config | null; constructor(opts: ServiceOpts); runCommand(opts: { name: string; args?: any; }): Promise; initLoaders(): Promise; } export {};