import { EventEmitter } from 'events';
import { ServerAddress, Credentials } from './types';
export declare class Server extends EventEmitter {
    private conn;
    constructor(serverAddress: ServerAddress, cb: (err?: Error) => void);
    login(credentials: Credentials): void;
    fileSearch(query: string, token: string): void;
    setWaitPort(port: number): void;
    getPeerAddress(username: string): void;
    destroy(): void;
}
//# sourceMappingURL=server.d.ts.map