import type { DataSource, DataSourceOptions } from "typeorm"; import { PromptTemplate } from "@langchain/core/prompts"; export interface SqlDatabaseParams { includesTables?: Array; ignoreTables?: Array; sampleRowsInTableInfo?: number; customDescription?: Record; } export interface SqlDatabaseOptionsParams extends SqlDatabaseParams { appDataSourceOptions: DataSourceOptions; } export interface SqlDatabaseDataSourceParams extends SqlDatabaseParams { appDataSource: DataSource; } export type SerializedSqlDatabase = SqlDatabaseOptionsParams & { _type: string; }; export interface SqlTable { tableName: string; columns: SqlColumn[]; } export interface SqlColumn { columnName: string; dataType?: string; isNullable?: boolean; } export declare const verifyListTablesExistInDatabase: (tablesFromDatabase: Array, listTables: Array, errorPrefixMsg: string) => void; export declare const verifyIncludeTablesExistInDatabase: (tablesFromDatabase: Array, includeTables: Array) => void; export declare const verifyIgnoreTablesExistInDatabase: (tablesFromDatabase: Array, ignoreTables: Array) => void; export declare const getTableAndColumnsName: (appDataSource: DataSource) => Promise>; export declare const generateTableInfoFromTables: (tables: Array | undefined, appDataSource: DataSource, nbSampleRow: number, customDescription?: Record) => Promise; export declare const getPromptTemplateFromDataSource: (appDataSource: DataSource) => PromptTemplate;