@rajkrajpj/cultivate-ui-library
Version:
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
24 lines (23 loc) • 1.33 kB
TypeScript
export declare const emailRegex: RegExp;
export declare const nameRegex: RegExp;
export declare const formatPhoneNumber: (value: string) => string;
export declare const isValidDate: (dateString: string) => boolean;
export declare const calculateAge: (birthDate: Date) => number;
export declare const unformatCurrency: (value: string) => string;
export declare function camelCaseString(str: string): string;
export declare function camelCaseToWords(s: string): string;
export declare const getInvestorTypeKey: (investorType: string, arrayList: any) => any;
export declare const handleApiErrorMsg: (error: any) => string[];
export declare function assertUnreachable(): never;
export declare const formatNumber: (value: number, locale?: string) => string;
export declare const maskSSN: (input: string) => string;
export declare const maskNumbersExceptLastFour: (input: string) => string;
export declare const pollAPI: (url: string, condition: (data: any) => boolean, interval?: number, maxAttempts?: number) => Promise<any>;
export declare const autoFormatTaxId: (value: string) => string;
export declare const stepMappingKeyNumber: {
[key: number]: string;
};
export declare const stepMappingKeyString: {
[key: string]: number;
};
export declare const getStateFullName: (countryCode: string, stateCode: string) => string;