/** * Represents options for a database. */ export interface IZDatabaseOptions { /** * The name of the database to connect to and modify. */ database?: string; /** * The database connection string. */ url?: string; /** * The timeout value for connections. */ timeout?: number; } /** * Represents an object that can be used to build a database options object. */ export declare class ZDatabaseOptionsBuilder { private _options; /** * Initializes a new instance of this object. */ constructor(); /** * Sets the database to connect to. * * @param val - * The value to set. * * @returns * This object. */ database(val: string): this; /** * Sets the connection string. * * @param val - * The connection string. * * @returns * This object. */ url(val: string): this; /** * Sets the timeout. * * @param val - * The value to set. * * @returns * This object. */ timeout(val: number): this; /** * Assigns values from a subset of database options to this object. * * @param other - * The partial object to assign values from. * * @returns * This object. */ assign(other: Partial): this; /** * Copies values from another database options structure to this object. * * @param other - * The object to copy. * * @returns * This object. */ copy(other: IZDatabaseOptions): this; /** * Builds the options. * * @returns * A copy of the current options structure. */ build(): IZDatabaseOptions; }