export type DecodingErrorCode = "UnsupportedTopic" | "NotInSecureContext" | "EncodedStreamNotSupported" | "DecoderError";
export declare class DecodingError extends Error {
    readonly topicName: string;
    readonly code: DecodingErrorCode;
    constructor(code: DecodingErrorCode, topicName: string, message?: string);
}
export declare class UnsupportedTopicError extends DecodingError {
    constructor(topicName: string, message?: string);
}
export declare class NotInSecureContextError extends DecodingError {
    constructor(topicName: string);
}
export declare class EncodedStreamNotSupportedError extends DecodingError {
    constructor(topicName: string);
}
export declare class DecoderRuntimeError extends DecodingError {
    constructor(topicName: string, message?: string);
}
export declare function createDecodingError(code: DecodingErrorCode, topicName: string, message?: string): DecodingError;
//# sourceMappingURL=error.d.ts.map