/** * Utility functions for schema sync operations */ interface ColumnInfo { column_name: string; data_type: string; resolved_type?: string; character_maximum_length?: number; is_nullable: 'YES' | 'NO'; column_default?: string; } export declare class Utils { /** * Generate a timestamp string suitable for file/object naming * @returns {string} Timestamp in milliseconds since epoch for uniqueness */ static generateTimestamp(): string; /** * Generate a backup name with timestamp for data preservation * @param {string} originalName - The original name to backup * @param {string} suffix - Optional suffix (default: 'dropped') * @returns {string} Backup name with timestamp */ static generateBackupName(originalName: string, suffix?: string): string; /** * Generate output filename with timestamp * @param {string} sourceSchema - Source schema name * @param {string} targetSchema - Target schema name * @param {string} prefix - Optional prefix (default: 'schema-sync') * @returns {string} Generated filename */ static generateOutputFilename(sourceSchema: string, targetSchema: string, prefix?: string): string; /** * Format column definition for SQL generation * @param {ColumnInfo} column - Column object with properties * @param {string} targetSchema - Target schema name for sequence references * @returns {string} Formatted column definition */ static formatColumnDefinition(column: ColumnInfo, targetSchema?: string): string; /** * Format data type with length specification * @param {ColumnInfo} column - Column object * @returns {string} Formatted data type */ static formatDataType(column: ColumnInfo): string; /** * Generate comment for manual review items * @param {string} type - Type of item (table, column, function, etc.) * @param {string} name - Name of the item * @param {string} reason - Reason for manual review * @returns {string} Formatted comment */ static generateManualReviewComment(type: string, name: string, reason: string): string; /** * Generate section header for script output * @param {string} title - Section title * @returns {Array} Array of header lines */ static generateSectionHeader(title: string): string[]; /** * Generate script footer * @returns {Array} Array of footer lines */ static generateScriptFooter(): string[]; } export {}; //# sourceMappingURL=formatting.d.ts.map