@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
18 lines (17 loc) • 756 B
TypeScript
import type { IntlShape } from 'react-intl-next';
declare enum FORMATS {
ISO_FORMAT = "YYYY-MM-DD",
LOCALIZED_FORMAT = "LOCALIZED_FORMAT"
}
export interface Date {
day: number;
month: number;
year: number;
}
export declare const timestampToUTCDate: (timestamp: string | number) => Date;
export declare const todayTimestampInUTC: () => string;
export declare const timestampToString: (timestamp: string | number, intl: IntlShape | null, pattern?: FORMATS) => string;
export declare const timestampToIsoFormat: (timestamp: string | number) => string;
export declare const isPastDate: (timestamp: string | number) => boolean;
export declare const timestampToTaskContext: (timestamp: string | number, intl: IntlShape) => string;
export {};