UNPKG

@hhgtech/hhg-components

Version:
27 lines (26 loc) 1.25 kB
/// <reference types="react" /> import { DueDateInfoType } from "../../../embeddedHeathToolCards/due-date/dueDate"; import { LOCALE } from "../../../../../types"; export declare enum DueDateCalculatorType { lastPeriod = 0, conception = 1, IVF = 2, IUI = 3, ultrasound = 4 } export declare const DUE_DATE_CONFIG: { [x: string]: { value: string; icon: import("react").FC<import("../../../..").IconProps>; label: string; }; }; export declare const DUE_DATE_METHOD: Record<LOCALE, string[]>; export declare const API_DATE_FORMAT = "yyyy-MM-dd"; export declare const getDueDateLastPeriod: (lastPeriodDate: Date, periodLength: number) => DueDateInfoType; export declare const getDueDateConception: (conceptionDate: Date) => DueDateInfoType; export declare const getDueDateIVF: (IVFDate: Date, numDayTransfer: number) => DueDateInfoType; export declare const getDueDateIUI: (dateOfIUIProcedure: Date) => DueDateInfoType; export declare const getDueDateUltrasound: (dateOfUltrasound: Date, additionalInfo: string) => DueDateInfoType; export declare const DateToInputValue: (date: Date) => string; export declare const getDaysDifference: (firstDate: Date, secondDate: Date) => number;