import type { Dayjs } from 'dayjs'; import type { DateFormatConfig, WeekdayFormatConfig } from '../types'; /** * 获取「日期部分」的展示文案(相对日内置在 datetime) * - 若开启 showRelativeDay 且日期为今天/昨天/明天,返回相对日文案(如「今天」「Yesterday」) * - 否则返回「星期, 日期」格式(用于时间区间跨天等场景) * * 供 PisellDateTimeDisplay、PisellTimeRangeDisplay 等统一使用,相对时间逻辑只在此处维护 */ export declare function getDatePartDisplay(params: { date: Dayjs; dateFormat?: DateFormatConfig; weekdayFormat?: WeekdayFormatConfig; referenceDate: Dayjs; /** 覆盖日期格式(如跨天时的 order: 'DMY', shortMonth: true) */ dateFormatOverride?: Partial; }): string;