import { type DescField, type DescMessage } from "../descriptors.js"; import type { MessageShape } from "../types.js"; import type { ReflectList, ReflectMap, ReflectMessage } from "./reflect-types.js"; /** * Create a ReflectMessage. */ export declare function reflect(messageDesc: Desc, message?: MessageShape, /** * By default, field values are validated when setting them. For example, * a value for an uint32 field must be a ECMAScript Number >= 0. * * When field values are trusted, performance can be improved by disabling * checks. */ check?: boolean): ReflectMessage; /** * Create a ReflectList. */ export declare function reflectList(field: DescField & { fieldKind: "list"; }, unsafeInput?: unknown[], /** * By default, field values are validated when setting them. For example, * a value for an uint32 field must be a ECMAScript Number >= 0. * * When field values are trusted, performance can be improved by disabling * checks. */ check?: boolean): ReflectList; /** * Create a ReflectMap. */ export declare function reflectMap(field: DescField & { fieldKind: "map"; }, unsafeInput?: Record, /** * By default, field values are validated when setting them. For example, * a value for an uint32 field must be a ECMAScript Number >= 0. * * When field values are trusted, performance can be improved by disabling * checks. */ check?: boolean): ReflectMap;