import type { Transporter, EmitFn } from '../types.js';
import type { TransporterOptions } from './types.js';
export interface ConnectionObject extends Record<string, unknown> {
    status: string;
    error?: string;
}
export default class Connection {
    #private;
    constructor(transporter: Transporter, options: TransporterOptions, emit: EmitFn);
    connect(auth?: Record<string, unknown> | null): Promise<boolean>;
    disconnect(): Promise<void>;
    get status(): string | null;
    get error(): string | null;
    get object(): ConnectionObject | null;
}
