import { Options } from 'csv-parse/browser/esm/sync';
export declare function convertCSVToJSON(text: string, { trim, columns, bom, objname, group_columns_by_name, skip_empty_lines, record_delimiter, nested_delimiter, }: Options & {
    nested_delimiter?: string;
}): Promise<any>;
export type TableColumnBuilder = {
    types: Record<string, boolean>;
    index: number;
    min?: number;
    max?: number;
    size?: number;
    precision?: number;
};
export type TableColumn = {
    type: string;
    min?: number;
    max?: number;
    size?: number;
    precision?: number;
};
export type Table = {
    columns: Record<string, TableColumn>;
    columnByIndex: Record<number, TableColumn>;
    rows: Array<Array<any>>;
};
export type TableBuilder = {
    columnIndex: number;
    columns: Record<string, TableColumnBuilder>;
    columnByIndex: Record<number, TableColumnBuilder>;
    rows: Array<Array<any>>;
};
export declare function convertJsonToSql(records: any): string;
export declare function convertTableToPostgresqlOrMySql(name: string, table: Table): string;
export declare function convertJsonToTable(records: Array<Record<string, any>>): Table;
export declare function roundNearestMultiple(x: number, n: number): number;
