<commit_before>import {Plugin, Cordova} from './plugin';

/**
 * @name Globalization
 * @description
 * @usage
 */
@Plugin({
  plugin: 'cordova-plugin-globalization',
  pluginRef: 'navigator.globalization',
  repo: 'https://github.com/apache/cordova-plugin-globalization'
})
export class Globalization {

  /**
   * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value.
   * @return {Promise<{value:string}>}
   */
  @Cordova()
  static getPreferredLanguage() : Promise<{value:string}> {return}

  /**
   * Returns the BCP 47 compliant locale identifier string to the successCallback with a properties object as a parameter.
   * @return {Promise<{value:string}>}
   */
  @Cordova()
  static getLocaleName() : Promise<{value:string}> {return}

  /**
   * Converts date to string
   * @param date
   * @param options
   * @return {Promise<{value:string}>}
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static dateToString(date : Date, options : {formatLength:string, selector:string}) : Promise<{value:string}> {return}

  /**
   *
   * @param dateString
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static stringToDate(dateString:string, options:{formatLength:string, selector:string}) : Promise<{year : number, month : number, day:number, hour:number, minute:number, second:number, millisecond:number}> {return}


  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getDatePattern(options:{formatLength:string, selector:string}) : Promise<{pattern:string}> {return}


  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getDateNames(options:{type,item}) : Promise<{value:Array<string>}> {return}

  /**
   * Check if day light saving is active
   * @param date
   */
  @Cordova()
  static isDayLightSavingsTime(date:Date) : Promise<{dst:string}> {return}

  /**
   * Get first day of week
   */
  @Cordova()
  static getFirstDayOfWeek() : Promise<{value:string}> {return}

  /**
   *
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static numberToString(options:{type:string}) : Promise<{value:string}> {return}

  /**
   *
   * @param string
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static stringToNumber(string:string, options:{type:string}) :Promise<{value}> {return}

  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getNumberPattern(options:{type:string}) : Promise<{pattern:string, symbol:string, fraction:number, rounding:number, positive:string, negative:string, decimal:string, grouping:string}> {return}

  /**
   *
   * @param currencyCode
   */
  @Cordova()
  static getCurrencyPattern(currencyCode:string) : Promise<{pattern, code, fraction, rounding, decimal, grouping}> {return}

}<commit_msg>fix(plugin): fix types<commit_after>import {Plugin, Cordova} from './plugin';

/**
 * @name Globalization
 * @description
 * @usage
 */
@Plugin({
  plugin: 'cordova-plugin-globalization',
  pluginRef: 'navigator.globalization',
  repo: 'https://github.com/apache/cordova-plugin-globalization'
})
export class Globalization {

  /**
   * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value.
   * @return {Promise<{value:string}>}
   */
  @Cordova()
  static getPreferredLanguage() : Promise<{value:string}> {return}

  /**
   * Returns the BCP 47 compliant locale identifier string to the successCallback with a properties object as a parameter.
   * @return {Promise<{value:string}>}
   */
  @Cordova()
  static getLocaleName() : Promise<{value:string}> {return}

  /**
   * Converts date to string
   * @param date
   * @param options
   * @return {Promise<{value:string}>}
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static dateToString(date : Date, options : {formatLength:string, selector:string}) : Promise<{value:string}> {return}

  /**
   *
   * @param dateString
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static stringToDate(dateString:string, options:{formatLength:string, selector:string}) : Promise<{year : number, month : number, day:number, hour:number, minute:number, second:number, millisecond:number}> {return}


  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getDatePattern(options:{formatLength:string, selector:string}) : Promise<{pattern:string}> {return}


  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getDateNames(options:{type:string,item:string}) : Promise<{value:Array<string>}> {return}

  /**
   * Check if day light saving is active
   * @param date
   */
  @Cordova()
  static isDayLightSavingsTime(date:Date) : Promise<{dst:string}> {return}

  /**
   * Get first day of week
   */
  @Cordova()
  static getFirstDayOfWeek() : Promise<{value:string}> {return}

  /**
   *
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static numberToString(options:{type:string}) : Promise<{value:string}> {return}

  /**
   *
   * @param string
   * @param options
   */
  @Cordova({
    successIndex: 1,
    errorIndex: 2
  })
  static stringToNumber(string:string, options:{type:string}) :Promise<{value}> {return}

  /**
   *
   * @param options
   */
  @Cordova({
    callbackOrder: 'reverse'
  })
  static getNumberPattern(options:{type:string}) : Promise<{pattern:string, symbol:string, fraction:number, rounding:number, positive:string, negative:string, decimal:string, grouping:string}> {return}

  /**
   *
   * @param currencyCode
   */
  @Cordova()
  static getCurrencyPattern(currencyCode:string) : Promise<{pattern:string, code:string, fraction:number, rounding:number, decimal:number, grouping:string}> {return}

}
{'fraction_non_alphanumeric': 0.14756801319043694, 'fraction_numerical': 0.003957131079967024, 'mean_word_length': 3.911740890688259, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4796368', 'n_tokens_mistral': 1962, 'n_tokens_neox': 1898, 'n_words': 444}