export interface IPeriod { from: string; to: string; } /** Reports a period prop that cannot be used, so a typo is visible. */ export type PeriodWarning = (description: string) => void; /** * The period taken from the `from` and `to` props, or `null` to follow the * date picker instead. A value that cannot be used is reported and ignored, a * typo must not blank the component. */ export declare const resolveCustomPeriod: (from: string | undefined, to: string | undefined, warn: PeriodWarning) => IPeriod | null; /** * The requested window, either the one supplied through the props or the date * picker range. Invalid values are rejected and an inverted range swapped, so * the API never gets a negative period. */ export declare const resolvePeriod: (props: { from?: string; to?: string; }, datePicker: { start: string; end: string; }, warn: PeriodWarning) => IPeriod | null;