import { Credentials } from "./credentials"; type Table = { name: string; }; export type DBInfoPayload = { success: true; tableInfo: RetoolDBTableInfo; }; export type RetoolDBTableInfo = { fields: Array; primaryKeyColumn: string; totalRowCount: number; }; export type RetoolDBField = { name: string; type: any; columnDefault: { kind: "NoDefault"; } | { kind: "LiteralDefault"; value: string; } | { kind: "ExpressionDefault"; value: string; }; generatedColumnType: string | undefined; }; export declare function verifyTableExists(tableName: string, credentials: Credentials): Promise; export declare function fetchAllTables(credentials: Credentials): Promise | undefined>; export declare function fetchTableInfo(tableName: string, credentials: Credentials): Promise; export declare function deleteTable(tableName: string, credentials: Credentials, confirmDeletion: boolean): Promise; export declare function createTable(tableName: string, headers: string[], rows: string[][] | undefined, credentials: Credentials, printConnectionString: boolean): Promise; export declare function createTableFromCSV(csvFilePath: string, credentials: Credentials, printConnectionString: boolean, promptForTableName: boolean): Promise<{ tableName: string; colNames: string[]; }>; export declare function parseDBData(data: string): string[][]; export declare function generateDataWithGPT(retoolDBInfo: DBInfoPayload, fields: RetoolDBField[], primaryKeyMaxVal: number, credentials: Credentials, exitOnFailure: boolean): Promise<{ fields: string[]; data: string[][]; } | undefined>; export declare function collectTableName(): Promise; export declare function collectColumnNames(): Promise; export {};