import { DPT, KnxErrorCode, KnxServiceId } from '../../enums'; export type KnxLinkExceptionDetails = { actualDataLength: number; expectedDataType: DPT; knxErrorCode: KnxErrorCode; serviceId: KnxServiceId; address: string; readTimeoutCount: number; consecutiveReadTimeouts: number; target: string; channel: number; source: string; value: unknown; data: Buffer; }; export type KnxLinkExceptionCode = 'NOT_A_CONNECTION_RESPONSE' | 'DATA_LENGTH_MISMATCH' | 'CONNECTION_TIMEOUT' | 'CONNECTION_ERROR' | 'INVALID_VALUE' | 'NO_CONNECTION' | 'READ_TIMEOUT' | 'CONNECTION_ALREADY_ESTABLISHED' | 'CONNECTION_IN_PROGRESS' | 'PROTOCOL_ERROR' | 'ACK_TIMEOUT' | 'NETWORK_ERROR' | 'CONNECTION_ABORTED'; export declare class KnxLinkException extends Error { readonly code: KnxLinkExceptionCode; readonly details: Partial; constructor(code: 'NOT_A_CONNECTION_RESPONSE', message: string, details: { serviceId: KnxServiceId; }); constructor(code: 'DATA_LENGTH_MISMATCH', message: string, details: { actualDataLength: number; expectedDataType: DPT; target: string; source: string; data: Buffer; }); constructor(code: 'CONNECTION_ERROR', message: string, details: { knxErrorCode: KnxErrorCode; }); constructor(code: 'READ_TIMEOUT', message: string, details: { address: string; readTimeoutCount: number; consecutiveReadTimeouts: number; }); constructor(code: 'INVALID_VALUE', message: string, details: { value: unknown; }); constructor(code: 'PROTOCOL_ERROR', message: string, details: { data: Buffer; }); constructor(code: 'CONNECTION_TIMEOUT', message: string, details: {}); constructor(code: 'NO_CONNECTION', message: string, details: {}); constructor(code: 'CONNECTION_ALREADY_ESTABLISHED', message: string, details: {}); constructor(code: 'CONNECTION_IN_PROGRESS', message: string, details: {}); constructor(code: 'ACK_TIMEOUT', message: string, details: { channel: number; }); constructor(code: 'NETWORK_ERROR', message: string, details: {}); constructor(code: 'CONNECTION_ABORTED', message: string, details: {}); } //# sourceMappingURL=KnxLinkException.d.ts.map