UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

16 lines (15 loc) 948 B
import { TimeTextBuilder } from "./text/TimeTextBuilder.js"; import { AbstractDataService, AllDataService, RR0Event, RR0EventJson } from "@rr0/data"; import { HtmlRR0Context } from "../RR0Context.js"; import { TimeContext } from "@rr0/time"; import { TimeOptions } from "./TimeOptions.js"; export declare class TimeService extends AbstractDataService<RR0Event, RR0EventJson> { protected options: TimeOptions; readonly timePathRegex: RegExp; static readonly defaultRegex: RegExp; constructor(dataService: AllDataService, options: TimeOptions, timePathRegex?: RegExp); parseFileName(fileName: string): RegExpExecArray | null; titleFromFile(context: HtmlRR0Context, fileName: string, timeTextBuilder: TimeTextBuilder): string | undefined; contextFromFileName(context: HtmlRR0Context, fileName?: string): TimeContext | undefined; setContextFromFile(context: HtmlRR0Context, filePath: string): TimeContext | undefined; }