import type { MittwaldAPIV2 } from "@mittwald/api-client"; import { MittwaldAPIV2Client } from "@mittwald/api-client"; import { ProcessRenderer } from "../../../../rendering/process/process.js"; type DatabaseMySqlUser = MittwaldAPIV2.Components.Schemas.DatabaseMySqlUser; /** * Generates a random password that fulfills the requirements for [mysql * passwords][mysql]. * * [mysql]: https://developer.mittwald.de/docs/v2/api/security/passwords#mysql * * @param length Desired length in characters * @returns A randomly generated password */ export declare function generateRandomPassword(length?: number): string; /** * Runs a callback function with a temporary user for a database operation. * * Note: This is implemented with a callback parameter, because this function * also handles the cleanup of the temporary user after the callback has been * executed. */ export declare function withTemporaryUser(apiClient: MittwaldAPIV2Client, databaseId: string, p: ProcessRenderer, cb: (tempUser: DatabaseMySqlUser, password: string) => Promise): Promise; export {};