import { KnxConnectionType, KnxLayer } from '../enums'; import { KnxEventEmitter, RequiredKnxLinkOptions, LinkInfo } from '../knx-common'; import { KnxCemiFrame } from '../knx-common'; /** * Docs * http://www.eb-systeme.de/?page_id=479 */ export declare class KnxConnection { private readonly options; private readonly ip; private readonly connectionType; private readonly layer; private readonly events; private transport?; private session?; private connecting; private explicitDisconnect; private tearingDown; private ignoreSocketClose; private disconnectTimeoutId?; private reconnectTimeoutId?; private pendingDisconnectResolve?; private abortConnectRetry?; constructor(options: RequiredKnxLinkOptions, ip: string, connectionType: KnxConnectionType, layer: KnxLayer, events: KnxEventEmitter); connect(): Promise; sendCemiFrame(cemiFrame: Buffer): Promise; getLinkInfo(): LinkInfo; private clearReconnectTimeout; private scheduleReconnect; private handleSocketClose; private teardown; /** * Abort an in-flight {@link connect}. No-op when not connecting. * * @remarks * Call when the consumer cancels startup (e.g. process shutdown) while {@link connect} * is still retrying. Does not replace {@link disconnect} after a successful connection. */ abortConnect(): void; /** * Gracefully close the knx gateway connection */ disconnect(): Promise; } //# sourceMappingURL=KnxConnection.d.ts.map