export type validityFlag = 'valueMissing' | 'typeMismatch' | 'patternMismatch' | 'tooLong' | 'tooShort' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'badInput' | 'customError' | 'valid'; export type DsValidityEvent = { flag: validityFlag; message?: string; }; export type DsSubmitInvalidEvent = { flag: validityFlag; message: string; }; export interface ValidityMessageOptions { type?: HTMLInputElement['type']; } export declare const typeMismatch: (opts?: ValidityMessageOptions) => string; export declare const validityMessage: (flag: validityFlag, opts?: ValidityMessageOptions) => string; export declare const getOptionalText: (text: string | undefined, optionalText?: string) => string; export declare const getRequiredText: (text: string | undefined) => string;