import { ChacaUtils } from "../../core/utils"; import { DatatypeModule } from "../datatype"; export declare type CallDurationProps = { min?: number; max?: number; }; export declare type NumberProps = { format?: string; }; export declare class PhoneModule { private readonly utils; private readonly datatypeModule; constructor(utils: ChacaUtils, datatypeModule: DatatypeModule); readonly constants: { phonePrefixs: string[]; }; /** * Returns a phone number * * @param args.format Format of the phone number * * @example * modules.phone.number({ format: '+53 #### ## ##' }) // '+53 5417 98 99' * modules.phone.number() // '+1 234 498 37' * * @returns string */ number({ format: iformat }?: NumberProps): string; /** * Returns a string with a country number prefix * @example modules.phone.prefix() // '+53' * @returns string */ prefix(): string; /** * Return a call duartion with minutes and seconds * @param args.min Minimun minutes of the call. Default `0` * @param args.max Maximun minutes of the call. Default `59` * * @example * modules.phone.callDuration({ min: 10, max: 30 }) // '27:30' * modules.phone.callDuration() // '20:52' * * @returns string */ callDuration({ max: imax, min: imin }?: CallDurationProps): string; }