import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; export type ManualDateParseFailure = { ok: false; reason: 'format' | 'invalid'; }; export type ManualDateParseSuccess = { ok: true; struct: NgbDateStruct; }; export type ManualDateParseResult = ManualDateParseFailure | ManualDateParseSuccess; export interface ManualDateInputError { reason: 'invalid' | 'beforeMin' | 'afterMax'; bound?: string; } /** * Parses a manual date string using a pattern like d/M/yyyy or dd-MM-yyyy. * Order and separator are taken from {@link formatPattern}; tokens use first letter: d, m, y. */ export declare function parseManualDateInput(value: string, formatPattern: string): ManualDateParseResult; /** * Formats {@link NgbDateStruct} using the same pattern rules as {@link parseManualDateInput}. * Avoids `new Date(y, m, d)` so short years (e.g. 19) are not expanded to 1919 by the JS Date API. */ export declare function formatDateStructByPattern(date: NgbDateStruct | null, formatPattern: string): string;