UNPKG

serina

Version:

Natural Language Parser for date and time in Javascript

7 lines (6 loc) 531 B
import { ParsedMatchSchema } from 'serina.schema'; export declare function matchPattern(haystack: string, pattern: string, wordBoundary?: boolean): string[]; export declare function contains(haystack: string, pattern: string, wordBoundary?: boolean): boolean; export declare function trimWhiteSpaces(text: string): string; export declare function parseMatches(text: string, pattern: string, dateTimeObj: Date): ParsedMatchSchema; export declare function remove(text: string, pattern: string, wordBoundary?: boolean): string;