import type { CBORSchemaType } from "./type.js"; /** * Creates a schema for literal values (string, number, bigint, boolean, Uint8Array, null, or undefined) * * @template T The literal type (string, number, bigint, boolean, Uint8Array, null, or undefined) * @param value The literal value to match against * * @example * ```typescript * import { cs } from "../cbor_schema.ts"; * const schema = cs.literal("hello"); * const encoded = cs.toCBOR(schema, "hello"); * const decoded = cs.fromCBOR(schema, encoded); // "hello" * ``` */ export declare function literal(value: T): CBORSchemaType; //# sourceMappingURL=literal.d.ts.map