export type TimeFormat = 'YY-MM-DD HH:mm:ss' | 'YY-MM-DD' | 'YYYY' | 'hh:mm:ss' | 'MM' | 'YY/MM/DD' | 'YY/MM/DD HH:mm:ss' | 'hh:mm';
export type RegionType = 'year' | 'Y' | 'month' | 'M' | 'day' | 'D' | 'd' | 'hours' | 'h' | 'minutes' | 'm' | 'seconds' | 's';
declare class DateTime {
    time: Date;
    constructor(value?: string | number);
    private getRegion;
    format(type: TimeFormat): any;
    before(value: number, type: RegionType): DateTime;
    after(value: number, type: RegionType): DateTime;
}
export default function dateTime(value?: string | number): DateTime;
export {};
