UNPKG

1.65 kBTypeScriptView Raw
1/** Used for convert Arabic characters to Persian */
2declare function persianChar(value: string): string;
3/** Used for convert any numbers to English */
4declare function englishNumber(value: string): string;
5/** Used for convert any numbers to Persian */
6declare function persianNumber(value: string): string;
7/** Used for convert any numbers to arabic */
8declare function arabicNumber(value: string): string;
9/**
10 * Used for decode Persian Characters in URL
11 * https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons-Functions.js
12 */
13declare function decodeURL(value: string): string;
14/** Used for Change keyboard layout */
15declare function switchKey(value: string): string;
16/** Used for get persian words representation of a number */
17declare function digitsToWords(value: number | string): string;
18/** Used for Zero-width non-joiner correction */
19declare function halfSpace(value: string): string;
20/** Remove anything expect numbers */
21declare function parseNumber(value: string): string;
22/** Used for validation integer number */
23declare function isInteger(value: string): boolean;
24/**
25 * Used for validation back card number
26 *
27 * @param {string} value 16 digit
28 */
29declare function isValidBankCard(value: string): boolean;
30/** Used for convert english number to currency mode */
31declare function currency(value: string): string;
32/** Convert any char to star ("*") */
33declare function security(value: string): string;
34export { persianChar, englishNumber, persianNumber, arabicNumber, decodeURL, switchKey, digitsToWords, halfSpace, isInteger, isValidBankCard, currency, security, parseNumber, };
35//# sourceMappingURL=lib.d.ts.map
\No newline at end of file