declare module "casual" { interface casual { define(type: string, cb: () => any): void; country: string; // 'United Kingdom' city: string; // 'New Ortiz chester' zip(digits: Object): string; // '26995-7979' (if no digits specified then random selection between ZIP and ZIP+4) street: string; // 'Jadyn Islands' address: string; // '6390 Tremblay Pines Suite 784' address1: string; // '8417 Veda Circles' address2: string; // 'Suite 648' state: string; // 'Michigan' state_abbr: string; // 'CO' latitude: string; // 90.0610 longitude: string; // 180.0778 building_number: string; // 2413 // Text sentence: string; // 'Laborum eius porro consequatur.' sentences(n?: number): string; // 'Dolorum fuga nobis sit natus consequatur. Laboriosam sapiente. Natus quos ut.' title: string; // 'Systematic nobis' text: string; // 'Nemo tempore natus non accusamus eos placeat nesciunt. et fugit ut odio nisi dolore non ... (long text)' description: string; // 'Vel et rerum nostrum quia. Dolorum fuga nobis sit natus consequatur.' short_description: string; // 'Qui iste similique iusto.' string: string; // 'saepe quia molestias voluptates et' word: string; // 'voluptatem' words(n?: number): string; // 'sed quis ut beatae id adipisci aut' array_of_words(n?: number): Array; // [ 'voluptas', 'atque', 'vitae', 'vel', 'dolor', 'saepe', 'ut' ] letter: string; // 'k' // Internet ip: string; // '21.44.122.149' domain: string; // 'darrion.us' url: string; // 'germaine.net' email: string; // 'Josue.Hessel@claire.us' user_agent: string; // 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0' // Person name: string; // 'Alberto' username: string; // 'Darryl' first_name: string; // 'Derek' last_name: string; // 'Considine' full_name: string; // 'Kadin Torphy' password: string; // '(205)580-1350Schumm' name_prefix: string; // 'Miss' name_suffix: string; // 'Jr.' company_name: string; // 'Cole, Wuckert and Strosin' company_suffix: string; // 'Inc' catch_phrase: string; // 'Synchronised optimal concept' phone: string; // '982-790-2592' // numbers random // 0.7171590146608651 (core generator) integer(from?: number, to?: number): number // 632 double(from?: number, to?: number): number // -234.12987444 array_of_digits(n?: number): Array; // [ 4, 8, 3, 1, 7, 6, 6 ] array_of_integers(n?: number): Array; // [ -105, -7, -532, -596, -430, -957, -234 ] array_of_doubles(n?: number): Array; // [ -866.3755785673857, -166.62194719538093, ...] coin_flip: Boolean; // true // Date unix_time: number; // 659897901 moment: any; // moment.js object see http://momentjs.com/docs/ date(format?: string): string; // '2001-07-06' (see available formatters http://momentjs.com/docs/#/parsing/string-format/) time(format?: string): string; // '03:08:02' (see available formatters http://momentjs.com/docs/#/parsing/string-format/) century: string; // 'IV' am_pm: string; // 'am' day_of_year: number; // 323 day_of_month: number; // 9 day_of_week: number; // 4 month_number: number; // 9 month_name: string; // 'March' year: number; // 1990 timezone: string; // 'America/Miquelon' // Payments card_type: string; // 'American Express' card_number(vendor?: string): string; // '4716506247152101' (if no vendor specified then random) card_exp: string; // '03/04' card_data: {type: string, number: string, exp: string, holder_name: string}; // { type: 'MasterCard', number: '5307558778577046', exp: '04/88', holder_name: 'Jaron Gibson' } // Misc country_code: string; // 'ES' language_code: string; // 'ru' locale: string; // 'hi_IN' mime_type: string; // 'audio/mpeg' file_extension: string; // 'rtf' // Colors color_name: string; // 'DarkOliveGreen' safe_color_name: string; // 'maroon' rgb_hex: string; // '#2e4e1f' rgb_array: Array // [ 194, 193, 166 ] } export const casual: casual; }