UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

32 lines (31 loc) 765 B
/** * Get the CLI version from package.json * @returns The CLI version string */ export declare function getCliVersion(): string; /** * Get standardized version information object */ export declare function getVersionInfo(config: { version: string; name: string; arch: string; }): { version: string; name: string; arch: string; nodeVersion: string; platform: string; }; /** * Format version info as a standard string */ export declare function formatVersionString(config: { version: string; name: string; arch: string; }): string; /** * Format version info as JSON based on flag preferences */ export declare function formatVersionJson(versionInfo: ReturnType<typeof getVersionInfo>, isPretty: boolean): string;