export default class ConfigMapping { /** * @constructor * @param that Other mapping to clone */ constructor(that?: Object); /** * Returns copy of this mapping, extended using specified modifier * * @param modifier An modifier functor * @return Copy of this mapping */ extended(modifier?: Function): any; /** * Remaps a parameter matched to specified selector using specified mapper * * @param selector Parameter selector, supports regexp * @param mapper Mapper function * @return This instance (for chaining purposes) */ remap(selector: string | RegExp, mapper: Function): this; /** * Renames a parameter * * @param selector Parameter selector, supports regexp * @param newName New name for matching parameter * @return This instance (for chaining purposes) */ rename(selector: string, newName: string): this; /** * Uses parameter as-is * * @param selector Parameter selector, supports regexp * @return This instance (for chaining purposes) */ asIs(selector: string): this; /** * Sets default value factory for the selector * * @param selector Parameter selector, supports regexp * @param defaultValueFactory Default value factory * @return This instance (for chaining purposes) */ default(selector: string, defaultValueFactory: Function): this; /** * Applies mappings to given values * * @param values Values to map * @return Mapped values */ apply(values: Object): {}; }