/** * Rewrite local path arguments so they mean what the user typed. * * The plugin CLI is spawned with `cwd: backendDir` — it has to be, because that * is where the plugin and its dependencies resolve from. But the developer runs * `rebase db` from the project root, so a relative `--out ./backups` was being * resolved against `backend/` and landed in `backend/backups`, while the * success line echoed the path as typed. The file was real and the reported * location was wrong, which is the worst way for a backup command to behave. * `rebase db --help` documents exactly this invocation. * * Absolutising here rather than inside the plugin keeps the fix where the cwd * is actually changed, and leaves the plugin usable on its own terms. */ export declare function absolutizeLocalPathArgs(args: string[], cwd: string): string[]; export declare function dbCommand(subcommand: string | undefined, rawArgs: string[]): Promise;