/** * @interface * @typedef {Object} DateRenderer * @method render(date: Level0Date): string */ /** * @implements DateRenderer */ export class Level0DateRenderer implements DateRenderer { /** * @readonly * @type {Level0DateRenderer} */ static readonly instance: Level0DateRenderer; /** * @param {object} comp A date component. * @return {boolean} If the component has unspecified digits ("XX"), and is thus read as the range of its possible values. */ static isRange(comp: object): boolean; /** * @param {{start: Level0Component, end: Level0Component}} range The possible values of a component with unspecified digits. * @return {string} The digits of the component, with an X for each unspecified one ("XX" for days 01 to 31, "19XX" for years 1900 to 1999). */ static unspecified(range: { start: Level0Component; end: Level0Component; }): string; /** * @param {{uncertain?: boolean, approximate?: boolean}} range * @return {string} The qualification of a range of values, as written after it (unspecified digits are from level 1). */ static suffix(range: { uncertain?: boolean; approximate?: boolean; }): string; /** * @protected * @param {Level0Date} date * @param {"year"|"month"|"day"|"hour"|"minute"|"second"} name The name of the date component to render. * @return {string} */ protected renderComponent(date: Level0Date, name: "year" | "month" | "day" | "hour" | "minute" | "second"): string; /** * @protected * @param {Level0Date} date * @return {string} The seconds, followed by the decimal fraction of the seconds, if any. */ protected renderSecond(date: Level0Date): string; /** * @param {Level0Date} date * @return {string} */ render(date: Level0Date): string; } export type DateRenderer = any; //# sourceMappingURL=Level0DateRenderer.d.mts.map