/// import BaseCommand from "../../lib/base-command"; import { ApsorcImportOutput, ImportReport, Introspector } from "../../lib/import"; /** * Resolve the Postgres connection string from an explicit flag or, failing * that, the SUPABASE_DB_URL / DATABASE_URL environment variables. Returns * undefined if none is set (the command then prompts interactively). */ export declare function resolveConnectionString(flagValue: string | undefined, env?: NodeJS.ProcessEnv): string | undefined; /** * Run the full introspect -> convert -> validate pipeline against any * Introspector. Throws if the generated relationships fail to parse. Pure of * file/console I/O so it can be unit-tested with a fake Introspector. */ export declare function importFromIntrospector(introspector: Introspector, schema: string): Promise<{ apsorc: ApsorcImportOutput; report: ImportReport; unknownTypes: string[]; }>; /** Render the import report as a human-readable summary (contains no secrets). */ export declare function formatReport(report: ImportReport): string; /** * Write the generated .apsorc to disk, backing up any existing file first. * Returns the backup path if one was made. */ export declare function writeApsorcFile(apsorc: ApsorcImportOutput, outPath: string): { backupPath?: string; }; export default class ImportSupabase extends BaseCommand { static description: string; static examples: string[]; static flags: { "connection-string": import("@oclif/core/lib/interfaces").OptionFlag; schema: import("@oclif/core/lib/interfaces").OptionFlag; out: import("@oclif/core/lib/interfaces").OptionFlag; "dry-run": import("@oclif/core/lib/interfaces").BooleanFlag; yes: import("@oclif/core/lib/interfaces").BooleanFlag; }; /** Overridable for testing. */ protected makeIntrospector(connectionString: string): Introspector; run(): Promise; }