/** * `rebase cloud db` — database + backup management for a project. * * db list List databases attached to the project * db create Attach a managed or bring-your-own database * db test Test connectivity to the project's database * db backup list|create|restore */ import arg from "arg"; export declare function dbCommand(subcommand: string | undefined, rawArgs: string[]): Promise; /** * `db backup [action] [filename]`, resolved in one strict parse. * * Both halves were reachable by the old operand filter, and both are * destructive: `rebase cloud db backup -p acme` read `--project`'s value as the * ACTION (falling through to a list, so the flag silently changed what ran), * and `db backup restore -p acme` read it as the FILENAME — a restore staged * over the live database, named after the project slug. An undeclared flag was * dropped instead of refused, which is the same failure one step quieter: `db * backup --dry-run` ran a list, having silently discarded the flag that was * supposed to change what it did. * * Exported so its tests drive the real parser. */ export declare function resolveBackupArgs(rawArgs: string[]): { flags: arg.Result<{ "--yes": BooleanConstructor; } & { readonly "--json": BooleanConstructor; readonly "--yes": BooleanConstructor; readonly "--help": BooleanConstructor; readonly "--project": StringConstructor; readonly "-p": "--project"; readonly "-y": "--yes"; readonly "-h": "--help"; }>; action: string; filename: string; }; export declare function printDbHelp(): void;