import * as z from "zod"; export { isSensitivityMask, projectSensitivityMask, redactSensitiveValue, type SensitivityMask, type StructuralSensitivityMask, } from "./sensitivity.js"; export type { ObjectProducingSchema, ProducingSchema } from "./schema.js"; /** * Values accepted by the codec encoder, including recursively nested containers * and registered web-platform extension types. */ export type Encodable = null | undefined | void | boolean | number | bigint | string | Uint8Array | Uint8ClampedArray | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array | BigUint64Array | BigInt64Array | Encodable[] | readonly Encodable[] | { readonly [key: string]: Encodable; } | Map | Set | Date | RegExp | ArrayBuffer | DataView | Request | Response | Blob | File | Headers | URL | URLSearchParams; /** * Checks whether an unknown value fits the codec's supported input surface. * * @param value - Value to inspect. */ export declare function isEncodable(value: unknown): value is Encodable; /** Zod schema for values accepted by the codec encoder. */ export declare const encodableSchema: z.ZodOptional>; /** * Serializes a value after checking it against the codec's supported input * surface. * * Pre-walks the value to buffer any async-bodied values (`Request`, `Response`) * before handing off to the synchronous packer. * * @param value - Value to validate and serialize. * @throws {TypeError} When the value is outside the supported input surface. */ export declare function encode(value: unknown): Promise; /** * Deserializes msgpack bytes. * * Currently synchronous under the hood, but typed as async to leave room for * future concerns that need await (e.g. resolving blob refs from external * storage, streaming decodes). * * Returns the codec's supported value surface. Callers should still validate * the domain-specific shape where they know the expected type. * * @param bytes - Msgpack bytes to deserialize. * @throws {TypeError} When the decoded payload is outside the supported * surface. */ export declare function decode(bytes: Uint8Array): Promise;