/** 日期时间选择：精度 / 格式化 / 月历网格 */
export type DateTimePrecision = 'year' | 'month' | 'day' | 'datetime';
export declare function normalizeDateTimePrecision(raw: unknown): DateTimePrecision;
export declare function clampTimePart(key: 'h' | 'm' | 's', n: number): number;
export declare function formatYmd(d: Date): string;
export declare function parseApiDateTime(raw: string | null | undefined): Date | null;
/** 面板展示文案 */
export declare function dateTimeDisplayText(api: string | null | undefined, precision: DateTimePrecision): string;
type CalendarCell = {
    day: number;
    inMonth: boolean;
    iso: string;
    isToday: boolean;
};
export declare function buildMonthGrid(viewYear: number, viewMonth: number): CalendarCell[];
export {};
