/**
 * DatetimeViewer - Date and time rendering viewer
 * 优先使用业务层预格式化文本（formattedText），回退到内置格式化
 */
import type { CellViewer, ViewerRenderContext, DatetimeViewerData } from './types';
/**
 * DatetimeViewer renders date and time values in cells
 * Supports pre-formatted text from business layer (formattedText)
 * and fallback to built-in formatting
 */
declare class DatetimeViewer implements CellViewer<DatetimeViewerData> {
    readonly type = "datetime";
    /**
     * Draw datetime content in the cell
     */
    draw(context: ViewerRenderContext, data: DatetimeViewerData): void;
    /**
     * 内置格式化（当业务层未提供 formattedText 时的回退）
     */
    private formatDate;
    /**
     * Apply format string to date
     */
    private applyFormat;
    /**
     * Pad number with leading zero
     */
    private padZero;
}
export default DatetimeViewer;
