/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { InternalError } from "@matter/general";
import { ValidationDatatypeMismatchError } from "../common/ValidationError.js";
import { TlvSchema } from "./TlvSchema.js";
class VoidSchema extends TlvSchema {
  encodeTlvInternal(_writer, _value, _tag) {
  }
  decodeTlv(_encoded) {
  }
  decodeTlvInternalValue(_reader, _typeLength) {
    throw new InternalError("decodeTlvInternalValue should never be called");
  }
  validate(data) {
    if (data !== void 0) throw new ValidationDatatypeMismatchError(`Expected void, got ${typeof data}.`);
  }
}
const TlvVoid = new VoidSchema();
export {
  TlvVoid,
  VoidSchema
};
//# sourceMappingURL=TlvVoid.js.map
