/** * Convert a mapping from filename patterns to media types * into a sorted array of pairs with predicates and media types. * A filename pattern can have the placeholders `*` and `?`. * * @template T * @param {Object.} types The type map from the configuration * @returns {{ predicate: (function(string): boolean), type: T }[]} */ export function fileTypePredicates(types: { [x: string]: T; }): { predicate: ((arg0: string) => boolean); type: T; }[]; /** * Load and merge the configuration from different sources. * @param {Boolean} loadDefaults A boolean flag to control, whether the default configuration is loaded or not * @param {String[]} additionalFileNames An array with paths for additional configuration files * @param {Boolean} loadEnv A boolean flag to control, whether environment variables are considered * @param {Object} explicit An explicit configuration map * @returns {Promise} A promise resolving into the merged configuration. */ export function load(loadDefaults: boolean, additionalFileNames: string[], loadEnv: boolean, explicit: any): Promise; export const defaultTypes: { [filePattern: string]: string; };