import { ProcessRenderer } from "../../rendering/process/process.js"; import { DDEVDatabaseFlags } from "./flags.js"; import { type MittwaldAPIV2, type MittwaldAPIV2Client } from "@mittwald/api-client"; type AppInstallation = MittwaldAPIV2.Components.Schemas.AppAppInstallation; /** * Determines the database ID to use for the DDEV project. * * This is done according to the following rules (in order of precedence): * * 1. If the `--without-database` flag is set, do not use a database. * 2. If the `--database-id` flag is set, use the database with the given ID. * 3. If the app installation has a linked database with the purpose "primary", use * that database. * 4. Otherwise, prompt the user to select a database from the list of databases * present in the project. * 5. If interactive input is not available, terminate with an error. */ export declare function determineDDEVDatabaseId(r: ProcessRenderer, apiClient: MittwaldAPIV2Client, flags: DDEVDatabaseFlags, appInstallation: AppInstallation): Promise; export {};