github-pr-automation
Version:
MCP server and CLI for automated GitHub PR management, review resolution, and workflow optimization
27 lines • 1.01 kB
TypeScript
/**
* Format duration in seconds to human-readable string
* @param seconds - Duration in seconds
* @returns Formatted duration string (e.g., "2m 30s", "1h 15m")
*/
export declare function formatDuration(seconds: number): string;
/**
* Format date to ISO timestamp string
* @param date - Date object to format
* @returns ISO timestamp string
*/
export declare function formatTimestamp(date: Date): string;
/**
* Truncate text to specified length with ellipsis
* @param text - Text to truncate
* @param maxLength - Maximum length before truncation
* @returns Truncated text with ellipsis if needed
* @throws Error if maxLength is less than 1
*/
export declare function truncateText(text: string, maxLength: number): string;
/**
* Format bytes to human-readable string with appropriate units
* @param bytes - Number of bytes to format
* @returns Formatted string with units (B, KB, MB, GB)
*/
export declare function formatBytes(bytes: number): string;
//# sourceMappingURL=formatting.d.ts.map