@rr0/cms
Version:
RR0 Content Management System (CMS)
17 lines (16 loc) • 660 B
TypeScript
import { Level2Date as EdtfDate } from "@rr0/time";
import { TimeOptions } from "./TimeOptions.js";
import { TimeContext } from "./TimeContext.mjs";
export type TimeUrlBuilderOptions = TimeOptions;
export declare class TimeUrlBuilder {
readonly options: TimeUrlBuilderOptions;
constructor(options: TimeUrlBuilderOptions);
fromContext(time: TimeContext): string;
fromEdtf(time: EdtfDate): string;
fromYYMMDD(year: number, month: number, day: number): string;
isTimeFile(filePath: string): boolean;
/**
* @return the found time URL or undefined if not found.
*/
matchExistingTimeFile(url: string): string | undefined;
}