export declare function pad(n: number, len: number): string; export declare namespace pad { var fraction: (t: TemporalLike, width: number) => string; } export interface TemporalLike { year?: number; month?: number; day?: number; hour?: number; minute?: number; second?: number; millisecond?: number; microsecond?: number; nanosecond?: number; timeZoneId?: string; offset?: string; dayOfWeek?: number; calendarId?: string; toInstant?: () => unknown; toLocaleString?: (locale: string, options: Intl.DateTimeFormatOptions) => string; } export interface FormatOptions { /** BCP 47 locale tag, e.g. 'en-US', 'fr-FR', 'ar-EG'. Defaults to 'en-US'. */ locale?: string; /** * When set on parse(), opts into the lenient split heuristic for ambiguous * glued numeric runs (e.g. "121" against "Md"). Default (false) keeps * parse()'s strict behavior — throw on ambiguity rather than guess. * See README "Lenient parse mode" for the heuristic and why it's opt-in. */ lenient?: boolean; } export declare const DEFAULT_LOCALE = "en-US"; type TokenHandler = (t: TemporalLike, locale: string) => string; export declare const TOKENS: Array<[string, TokenHandler, keyof TemporalLike]>; export declare function onTokenTableChange(listener: () => void): void; export declare function getEffectiveTokens(): Array<[string, TokenHandler, keyof TemporalLike]>; export declare function registerToken(token: [string, TokenHandler, keyof TemporalLike]): void; export declare function _resetRegisteredTokensForTesting(): void; export {};