import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client"; type AppLinkedDatabase = MittwaldAPIV2.Components.Schemas.AppLinkedDatabase; /** * Resolves a database identifier, which may be either a full UUID or a database * name, to the database's UUID. Names are looked up among the project's MySQL * and Redis databases. */ export declare function resolveDatabaseId(apiClient: MittwaldAPIV2Client, projectId: string, candidate: string): Promise; /** * Picks the linked database to act on from an app installation's linked * databases. When a purpose is given, the matching database is returned; * otherwise the sole linked database is used, and an ambiguous selection raises * an error. */ export declare function selectLinkedDatabase(linkedDatabases: AppLinkedDatabase[], purpose?: string): AppLinkedDatabase; export {};