chertoperter
Version:
Fake data generator for Persian developers
24 lines • 1.23 kB
TypeScript
import { T_OPERATOR, T_PROVINCE } from '../types';
/**
* Generates a list of possible cellphone number prefixes based on the specified operator.
* @param {T_OPERATOR} [operator] - The mobile operator for which prefixes should be returned.
* @returns {string[]} An array of possible prefixes for the given operator.
* @example
* CellphoneGenerator("MCI"); // Returns MCI prefixes (e.g., ["0912", "0913", ...])
* CellphoneGenerator(); // Returns all available prefixes from all operators
*/
declare const CellphoneGenerator: (operator?: T_OPERATOR) => string[];
/**
* Generates landline prefixes based on the specified province.
* @param {T_PROVINCE} [province] - The province for which the landline prefixes should be returned.
* @returns {Array<{ code: string; province: T_PROVINCE }>} A list of objects containing landline prefixes and their associated provinces.
* @example
* LandLineGenerator("Tehran"); // Returns landline prefixes for Tehran
* LandLineGenerator(); // Returns all available landline prefixes
*/
declare const LandLineGenerator: (province?: T_PROVINCE) => {
province: T_PROVINCE;
code: string;
}[];
export { CellphoneGenerator, LandLineGenerator };
//# sourceMappingURL=index.d.ts.map