UNPKG

953 BTypeScriptView Raw
1import { Chrono, Configuration, Parser, Refiner } from "../../chrono.js";
2import { ParsingResult, ParsingComponents, ReferenceWithTimezone } from "../../results.js";
3import { Component, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday } from "../../types.js";
4export { Chrono, Parser, Refiner, ParsingResult, ParsingComponents, ReferenceWithTimezone };
5export { Component, ParsedResult, ParsingOption, ParsingReference, Meridiem, Weekday };
6export declare const casual: Chrono;
7export declare const strict: Chrono;
8export declare function parse(text: string, ref?: ParsingReference | Date, option?: ParsingOption): ParsedResult[];
9export declare function parseDate(text: string, ref?: ParsingReference | Date, option?: ParsingOption): Date;
10export declare function createCasualConfiguration(littleEndian?: boolean): Configuration;
11export declare function createConfiguration(strictMode?: boolean, littleEndian?: boolean): Configuration;