/** * Represents an abstract server connection. */ export interface IZServer { /** * The host or ip address to connect to. * * Does not distinguish between the protocol and hostname. */ address: string; /** * The optional port to connect on. * * If this is falsy, then it is up to the implementation * taking this object to properly default the value. */ port?: number; /** * The optional username. * * Falsy usually implies guest access. */ username?: string; /** * The user's password to connect with. * * If username is not supplied, then this generally has no meaning. */ password?: string; } /** * Represents a builder for a server object. */ export declare class ZServerBuilder { private _server; /** * Initializes a new instance of this object. */ constructor(); /** * The server ip address or hostname. * * @param val - * The value to set. * * @returns * This object. */ address(val: string): this; /** * Sets the optional port to connect on. * * @param val - * The value to set. * * @returns * This object. */ port(val: number): this; /** * Sets the optional username to connect on. * * @param val - * The value to set. * * @returns * This object. */ username(val: string): this; /** * Sets the password to connect on. * * @param val - * The value to set. * * @returns * This object. */ password(val: string): this; /** * Assigns all truthy properties in other to this object. * * @param other - * The server object to copy. * * @returns * This object. */ assign(other: Partial): this; /** * Copies all properties in other to this object. * * @param other - * The server object to copy. * * @returns * This object. */ copy(other: IZServer): this; /** * Returns a copy of the built object. * * @returns * A copy of the built object. */ build(): IZServer; }