declare const WEEK_STARTS: { readonly mon: "mon"; readonly sun: "sun"; readonly sat: "sat"; }; export type WEEK_START = keyof typeof WEEK_STARTS; /** * Formats the provided date according to a specific spec * * @param {Date|string} val - Date to format * @param {string} spec - Spec to format the date to * @param {string} locale - Locale to format the date in (only used in certain tokens such as dddd and MMMM) * @param {string} zone - (default=current timezone) Pass the timezone to convert into. If not passed no conversion will happen * @param {string} sow - (default='mon') Start of week (only useful when working with the 'W' and 'w' tokens for week numbers * @throws {TypeError} When provided invalid payload */ declare function format(val: Date | string, spec: string, locale?: string, zone?: string, sow?: WEEK_START): string; declare namespace format { var getLocale: () => string; var setLocale: (locale: string) => void; var getZone: () => string; var setZone: (zone: string) => void; var getStartOfWeek: () => "mon" | "sun" | "sat"; var setStartOfWeek: (sow: WEEK_START) => void; } export { format, format as default };