Files
klz-cables.com/.pnpm-store/v10/files/1d/5d04084efb39bf8276d0117c2d83a168823f9355f04f1fbb147c55fcb35f1908948f365a09e593d50f06d4117c7857f9d1cb76b41186074302c71afad09dfd
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

35 lines
933 B
Plaintext

import type { Match } from "../../locale/types.js";
import { ValueSetter } from "./Setter.js";
import type { ParseFlags, ParseResult, ParserOptions } from "./types.js";
export declare abstract class Parser<Value> {
abstract incompatibleTokens: string[] | "*";
abstract priority: number;
subPriority?: number;
run(
dateString: string,
token: string,
match: Match,
options: ParserOptions,
): {
setter: ValueSetter<Value>;
rest: string;
} | null;
protected abstract parse(
dateString: string,
token: string,
match: Match,
options: ParserOptions,
): ParseResult<Value>;
protected validate<DateType extends Date>(
_utcDate: DateType,
_value: Value,
_options: ParserOptions,
): boolean;
protected abstract set<DateType extends Date>(
date: DateType,
flags: ParseFlags,
value: Value,
options: ParserOptions,
): DateType | [DateType, ParseFlags];
}