/** * Create a new instance of Epex */ declare class Epex { _dateFormat: string; _baseUrl: string; constructor(); /** * @type {string} */ dateFormat: string; /** * @type {string} */ baseUrl: string; /** * Parse the dayahead auctions from epexspot * @param {String} date The date of the auctions in the given dateFormat * @param {String} country The country short * @return {Promise} Resolves the auctions as array * @fulfil {Array} - The auctions as an array * @reject {Error} - An error */ parse(date: string, countryShort: string): Promise<{ timestamp: number; price: number; energy: number; country: string; }[]>; /** * Create the URL from epexspot.com by given parameters. * @private * @param {String} baseUrl The base url from epexspot.com * @param {String} date The date of the data to read * @param {String} country The short of the datas country (FR, CH, AT, DE-LU, BE, NL, GB) * @param {String} dateFormat The format from the given date * @return {String} The URL pointing to the data */ private createUrl; /** * Get a string between two strings * @private * @param {String} text String to search in * @param {String} startString Beginning of the substring (included) * @param {String} endString End of the substring (excluded) * @return {String} The string between first and second string */ private stringBetween; /** * Get all strings between two strings * @private * @param {String} text String for search in * @param {RegExp} reg Search beginning * @param {String} sub2 Search end * @return {Array} One index for every match */ private stringBetweenArray; /** * Parse the information from the website * @private * @param {String} url The URL pointing to the data * @param {String} datum The date of the data to read * @param {String} dateFormat The format from the given date * @param {String} country The short of the datas country (FR, CH, AT, DE-LU, BE, NL, GB) * @return {Promise} The data as JSON objekts */ private parseInformations; } export declare const epex: Epex; export {};