export type TimeZoneString = string; /** *Класс, содержащий статический метод, определяющий смещение часового пояса относительно GMT (+00:00) по переданной строке с названием таймзоны. *Создавать новый объект этого класса для использования метода не требуется. */ export declare class TimeZoneIdentifier { /** * Converts a time zone offset string in the format "+hh:mm" or "-hh:mm" to seconds. * @param offset The time zone offset string (e.g., "+03:00" or "-05:30"). * @returns The time zone offset in seconds. Positive for offsets ahead of GMT, negative for offsets behind GMT. * * Example: * const offsetInSeconds = TimeZoneIdentifier.getTimeZoneOffsetInSeconds('+03:00'); * console.log(offsetInSeconds); // 10800 (3 hours ahead of GMT) */ static getTimeZoneOffsetInSeconds(zone?: TimeZoneString): number; /** * @deprecated please use `getTimeZoneGMTOffset` or `getTimeZoneOffsetInSeconds` */ static getTimeZoneGMTOffsetfromNameZone(zone?: TimeZoneString): string; /** *The method determines the time zone offset relative to GMT (+00:00) using the transmitted string with the name of the time zone. *@param zone - A string with the name of the time zone (for example 'America/New_York'). *@return - A string representing the offset relative to GMT. * *Example : *const offset = TimeZoneIdentifier.getTimeZoneGMTOffset('Europe/Moscow'); *console.log(offset) /// "+03:00" * * */ static getTimeZoneGMTOffset(zone?: TimeZoneString): string; private static getTimezoneOffsetInBrowser; }