/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { TlvTag, TlvToPrimitive, TlvType, TlvTypeLength } from "./TlvCodec.js"; import { TlvReader, TlvSchema, TlvWriter } from "./TlvSchema.js"; type LengthConstraints = { minLength?: number; maxLength?: number; length?: number; }; export declare class StringSchema extends TlvSchema { readonly type: T; readonly minLength: number; readonly maxLength: number; constructor(type: T, minLength?: number, maxLength?: number); encodeTlvInternal(writer: TlvWriter, value: TlvToPrimitive[T], tag?: TlvTag): void; decodeTlvInternalValue(reader: TlvReader, typeLength: TlvTypeLength): TlvToPrimitive[T]; validate(value: TlvToPrimitive[T]): void; /** @deprecated Part of old ClusterType() compat layer. */ get element(): TlvSchema.Element; bound({ minLength, maxLength, length }: LengthConstraints): StringSchema; } /** ByteString TLV schema. */ export declare const TlvByteString: StringSchema; /** String TLV schema. */ export declare const TlvString: StringSchema; export {}; //# sourceMappingURL=TlvString.d.ts.map