/** * Replace placeholders in SQL statements * Placeholders: * - {{username}} - The generated username * - {{password}} - The generated password * - {{expiration}} - Expiration timestamp (ISO format) * - {{expiration_timestamp}} - Expiration as UNIX timestamp */ export declare function replaceStatementPlaceholders(statement: string, username: string, password: string, expiresAt: string): string; /** * Generate a username from template * Templates: * - {{role}} - Role name (sanitized) * - {{random:N}} - N random alphanumeric characters * - {{timestamp}} - UNIX timestamp * - {{uuid}} - UUID (first 8 chars) */ export declare function generateUsername(template: string, roleName: string): string; /** * Generate a secure random password * 32 bytes = 256 bits of entropy, base64 encoded = 44 characters */ export declare function generatePassword(): string; /** * Parse connection string to extract components */ export declare function parseConnectionString(connectionString: string): { protocol: string; username?: string; password?: string; host: string; port?: number; database?: string; params?: Record; }; //# sourceMappingURL=utils.d.ts.map