/*!
 * Copyright 2019 VMware, Inc.
 * SPDX-License-Identifier: BSD-2-Clause
 */
export declare class CsvExporterService {
    /**
     * Creates a string that can be used to create a Blob for a CSV
     * @param rows 2D array of data. First row is the names for the fields
     * @param shouldSanitize If a cell starting with a control character should be edited to prevent
     * possible code injection
     */
    createCsv(rows: any[][], shouldSanitize?: boolean): string;
    /**
     * Whether the CSV that would result from the export is at risk of code injection
     * @param rows 2D array of data. First row is the names for the fields
     */
    hasPotentialInjection(rows: any[][]): boolean;
    /**
     * Does a client side download
     * @param csvFile The string contents of a CSV file to be downloaded
     * @param filename The name of the file to be downloaded
     */
    downloadCsvFile(csvFile: string, filename: string): void;
}
