import type { ErrorOr, MachineConfiguration } from '../shared/types.js'; import type { IntrospectionServiceResponse } from './helpers.js'; import type { CommonImportOptions } from './import-command.js'; export type DBType = 'mysql' | 'postgresql' | 'snowflake' | 'presto' | 'db2' | 'oracle'; export type DBIntrospectionOptions = { naming?: '2022' | '2023'; }; export type CommonSqlImportOptions = CommonImportOptions & { dbType: DBType; host: string; database: string; user: string; password: string; linkTypes: boolean; include?: 'tables-only' | 'views-only' | 'tables-and-views'; introspectionOptions?: DBIntrospectionOptions; }; export type MysqlImportOptions = CommonSqlImportOptions & { dbType: 'mysql'; }; export type PostgresqlImportOptions = CommonSqlImportOptions & { dbType: 'postgresql'; schema?: string; }; export type Db2sqlImportOptions = Omit & { dbType: 'db2'; schema?: string; jdbcUrl: string; }; export type SnowflakeImportOptions = Omit & { dbType: 'snowflake'; accountId: string; warehouse: string; schema?: string; }; export type PrestoImportOptions = Omit & { dbType: 'presto'; catalog: string; schema: string; }; export type OraclesqlImportOptions = Omit & { dbType: 'oracle'; jdbcUrl: string; schema?: string; }; export type JdbcParsedDsn = { driver: string; jdbcUrl: string; schema?: string; }; export type SqlImportOptions = MysqlImportOptions | PostgresqlImportOptions | SnowflakeImportOptions | PrestoImportOptions | Db2sqlImportOptions | OraclesqlImportOptions; export declare const sql2sdl: (options: SqlImportOptions, configuration: MachineConfiguration) => Promise>; //# sourceMappingURL=sql2sdl.d.ts.map