declare interface ColumnConfigurationDataType { column: string; delimiter?: string; } /** * Fetches a CSV file from a URL, parses it, and applies transformations based on the provided configuration. * * @param dataURL - The URL of the CSV file to fetch. * @param dataTransformation - Optional Handlebars template for data transformation. * @param columnsToArray - Optional columns configuration to transform certain columns to arrays. * @param debugMode - Optional flag to log data to the console for debugging. * @param delimiter - Optional delimiter used in the CSV file (default is comma). * @param header - Optional flag to specify whether the CSV file contains headers (default is true). * * @returns A promise that resolves to the parsed and transformed data. * * @example * fetchAndParseCSV('https://example.com/data.csv', '{{data}}', [], true) * .then(parsedData => console.log(parsedData)) * .catch(error => console.error('Error:', error)); */ export declare function fetchAndParseCSV(dataURL: string, dataTransformation?: string, columnsToArray?: ColumnConfigurationDataType[], debugMode?: boolean, delimiter?: string, header?: boolean): Promise; /** * Parses CSV data from a string, applying optional transformations. * * @param data - The CSV data as a string. * @param dataTransformation - Optional Handlebars template for data transformation. * @param columnsToArray - Optional columns configuration to transform certain columns to arrays. * @param debugMode - Optional flag to log data to the console for debugging. * @param delimiter - Optional delimiter used in the CSV file (default is comma). * @param header - Optional flag to specify whether the CSV file contains headers (default is true). * * @returns A promise that resolves to the parsed and transformed data. */ export declare function fetchAndParseCSVFromTextBlob(data: string, dataTransformation?: string, columnsToArray?: ColumnConfigurationDataType[], debugMode?: boolean, delimiter?: string, header?: boolean): Promise; /** * Fetches and parses a JSON file from a URL, and applies optional transformations. * * @param dataURL - The URL of the JSON file to fetch. * @param columnsToArray - Optional columns configuration to transform certain columns to arrays. * @param dataTransformation - Optional Handlebars template for data transformation. * @param debugMode - Optional flag to log data to the console for debugging. * * @returns A promise that resolves to the parsed and transformed data. */ export declare function fetchAndParseJSON(dataURL: string, columnsToArray?: ColumnConfigurationDataType[], dataTransformation?: string, debugMode?: boolean): Promise; /** * Fetches and parses data from multiple sources (CSV, JSON, API), and merges the results. * * @param dataURL - An array of file settings containing URLs, column configurations, and other settings. * @param idColumnTitle - Optional title of the ID column to merge data sources by. * * @returns A promise that resolves to the merged data from all sources. */ export declare function fetchAndParseMultipleDataSources(dataURL: FileSettingsDataType[], idColumnTitle?: string): Promise; /** * Fetches and transforms data from an API, and applies optional transformations. * * @param requestURL - The URL of the API to fetch data from. * @param headers - Optional headers to include in the API request. * @param columnsToArray - Optional columns configuration to transform certain columns to arrays. * @param dataTransformation - Optional Handlebars template for data transformation. * @param debugMode - Optional flag to log data to the console for debugging. * * @returns A promise that resolves to the transformed data. */ export declare function fetchAndTransformDataFromAPI(requestURL: string, headers?: any, columnsToArray?: ColumnConfigurationDataType[], dataTransformation?: string, debugMode?: boolean): Promise; declare interface FileSettingsDataType { dataURL: string; idColumnName: string; fileType?: 'csv' | 'json' | 'api'; delimiter?: string; columnsToArray?: ColumnConfigurationDataType[]; apiHeaders?: any; dataTransformation?: string; } export { }