import { IIRCLine, IQueue } from '../types/irc.interfaces'; /** * Collect a single line from the server. */ export declare class Collector implements IQueue { await: string; private resolve; from?: string | undefined; match?: ((line: IIRCLine) => boolean) | undefined; constructor(await: string, resolve: (lines: IIRCLine) => void, from?: string | undefined, match?: ((line: IIRCLine) => boolean) | undefined); do(line: IIRCLine): void; } /** * Collect lines from the server. */ export declare class MultiLineCollector implements IQueue { await: string; additional: string[]; private resolve; match?: ((line: IIRCLine) => boolean) | undefined; buffer: IIRCLine[]; constructor(await: string, additional: string[], resolve: (lines: IIRCLine[]) => void, match?: ((line: IIRCLine) => boolean) | undefined); do(line: IIRCLine, data: IIRCLine[]): void; digest(line: IIRCLine): void; } /** * Get a full WHOIS response from the server * * `311` - Start of WHOIS, Nickname, hostmask, realname * * `319` - Channels * * `378` - Connecting from * * `379` - User modes * * `312` - Server and server name * * `313` - User title * * `330` - Login time * * `335` - Is a bot * * `307` - Registered * * `671` - Secure connection * * `317` - Sign on time and idle time * * `318` - End of WHOIS */ export declare class WhoisCollector extends MultiLineCollector { constructor(resolve: (lines: IIRCLine[]) => void, target: string); } /** * Get a full WHO response from the server * * `352` - WHO line: ` [*][@|+] : ` * * `315` - end of WHO */ export declare class WhoCollector extends MultiLineCollector { constructor(resolve: (lines: IIRCLine[]) => void, target: string); }