/** * Return the offset in minutes between the timezone and UTC * * @param tzIdentifier International timezone identifier * @returns the diff in minutes between the timezone and UTC */ declare function tzIdentifierToOffset(tzIdentifier: string): number | null; /** * returning like https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts * * @param currentTimestamp UTC timestamp in milliseconds * @param timzone Time zone offset in seconds * @returns Return an array of objet with the parts of the time */ declare function getTimeParts(currentTimestamp: number, timezone: string): Record; declare function testInterval(intervalStr: string, timeParts: Record): boolean; export { tzIdentifierToOffset, getTimeParts, testInterval }; declare const _default: { tzIdentifierToOffset: typeof tzIdentifierToOffset; getTimeParts: typeof getTimeParts; testInterval: typeof testInterval; }; export default _default;