import { type DateAttributeGranularity } from "@gooddata/sdk-model"; /** * Parses a string representation of a date of a given granularity to a Date object. * For the en-US-x-24h locale, the parsed date is converted to UTC using fromZonedTime * to prevent double timezone conversion when formatting with formatInTimeZone. * * @param value - value to parse. * @param granularity - granularity to assume when parsing the value. * @param timezone - optional timezone information for time-based granularities. * @param locale - optional locale information to determine if UTC conversion is needed. * @internal */ export declare const parseDateValue: (value: string, granularity: DateAttributeGranularity, timezone?: string | undefined, locale?: string | undefined) => Date; /** * Serializes a Date object to a string representation based on the specified granularity. * For the en-US-x-24h locale, the parsed date is converted to UTC using fromZonedTime * to prevent double timezone conversion when formatting with formatInTimeZone. * * @param value - Date object to serialize. * @param granularity - granularity to assume when serializing the value. * @param timezone - optional timezone information for time-based granularities. * @param locale - optional locale information to determine if UTC conversion is needed. * @internal */ export declare const serializeDateValue: (value: Date, granularity: DateAttributeGranularity, timezone?: string | undefined, locale?: string | undefined) => string; //# sourceMappingURL=dateValueParser.d.ts.map