UNPKG

portfree

Version:

A cross-platform CLI tool for managing processes running on specific ports

14 lines 607 B
export type Platform = 'windows' | 'unix'; /** * Detects the current platform and returns a normalized platform identifier * @returns 'windows' for Windows, 'unix' for Linux/macOS * @throws If platform is not supported */ export declare function detectPlatform(): Platform; /** * Gets the appropriate platform adapter based on the current OS * @returns Platform-specific adapter class constructor * @throws If platform is not supported */ export declare function getPlatformAdapter(): Promise<new () => import('../adapters/base-adapter').BaseAdapter>; //# sourceMappingURL=platform-detector.d.ts.map