import type { CBORSchemaType } from "./type.js"; /** * Creates a schema for arrays of items of the same type * * @template T The type of array elements * @param itemSchema Schema for the array elements * * @example * ```typescript * import { cs } from "../cbor_schema.ts"; * const numberArraySchema = cs.array(cs.float); * const encoded = cs.toCBOR(numberArraySchema, [1, 2, 3]); * const decoded = cs.fromCBOR(numberArraySchema, encoded); // [1, 2, 3] * ``` */ export declare function array(itemSchema: CBORSchemaType): CBORSchemaType; //# sourceMappingURL=array.d.ts.map