import { Data, TypeName } from './types'; import { getFilePathExtension } from './utils'; import { ClassTransformValidator } from './ClassTransformValidator'; export declare abstract class Loader extends ClassTransformValidator implements TypeName { static getFilePathExtension: typeof getFilePathExtension; constructor(args?: { fileLocationUri: string; }); /** * Index name of the file contents used as an index key by the config * object. */ readonly __name: K; /** * File location URI. The configuration file will be loaded at * this location, then validated. */ __fileLocationUri: string; /** * Asynchronously loads and validates the contents of the config file. * An error will be thrown if the validator fails or rejects the data. */ __load(): Promise, K>>; /** * Loads a Loader's file contents based on its . * @param parsedUri - Parsed URI from the Loader's config file location. */ __loadFile(fileLocationUri: string): Promise; /** * Loads and parses a config file in JSON format. * @param filePath - Path to the file to be loaded. */ __loadFileJson(filePath: string): Promise; }