/** * Formatting utilities for CLI output. * * Provides table formatting and color helpers. * * @module */ import Table from "cli-table3"; /** * Creates a formatted table with headers. * * @param headers - Column headers * @param colWidths - Optional column widths * @returns Configured Table instance */ export declare function createTable(headers: string[], colWidths?: number[]): Table.Table; /** * Formats application status with colored indicator. * * @param status - Application status string * @returns Formatted status string */ export declare function formatStatus(status: string): string; /** * Formats bytes to human-readable format. * * @param bytes - Number of bytes * @returns Formatted string with unit */ export declare function formatBytes(bytes: number): string; /** * Validates a port number string (single or comma-separated). * Valid: "3000", "3000,3001", "80,443,8080" * Invalid: "abc", "99999", "0", "-1", "3000,", ",3000" * * @param ports - Port string to validate * @returns Object with valid flag, parsed ports, and error message */ export declare function validatePorts(ports: string): { valid: boolean; ports: number[]; error?: string; }; /** * Parses EXPOSE directives from a Dockerfile. * * @param dockerfilePath - Path to the Dockerfile * @returns Array of exposed port numbers, empty if none found or file unreadable */ export declare function parseDockerfileExpose(dockerfilePath: string): number[]; /** * Validates a .coolify.json state object (single-app format). * Checks required fields, types, and port validity. * * @param state - The parsed JSON object * @returns Object with valid flag, warnings, and errors */ export declare function validateCoolifyState(state: Record): { valid: boolean; errors: string[]; warnings: string[]; }; /** * Formats timestamp to relative time. * * @param timestamp - ISO timestamp string * @returns Relative time string */ export declare function formatRelativeTime(timestamp: string): string; //# sourceMappingURL=format.d.ts.map