import { MessageFunctionType, Result } from '../types'; export interface ToDateErrors { TARGET_ARGUMENT_NOT_A_STRING: MessageFunctionType; TARGET_ARGUMENT_COULD_NOT_BE_PARSED: MessageFunctionType; } export declare const TO_DATE_ERRORS: ToDateErrors; /** * Convert the input string to a date, * or null if the input is not a date. * * @param target The target */ export declare function toDate(target: string): Result;