/** * Converts protobuf `FieldMask` values between runtime, JSON, and wire forms. * * The runtime representation is `string[]`. The protobuf JSON representation * is one comma-separated string. * * @packageDocumentation */ import type { BinaryReader, BinaryWriter } from './core.js'; /** * Reads the protobuf `FieldMask` runtime JSON form. * * A comma-separated string becomes trimmed path strings. An array is accepted * for compatibility and each element is converted to a string. Other values * produce an empty array. */ export declare function fmFromJSON(o: unknown): string[]; /** Converts field-mask paths to the protobuf JSON comma-separated string form. */ export declare function fmToJSON(paths: string[]): string; /** Writes each path as field 1 of a protobuf `FieldMask` message. */ export declare function writeFieldMask(writer: BinaryWriter, paths: string[]): void; /** * Reads one length-delimited protobuf `FieldMask` message body. * * Unknown fields are skipped. The returned paths keep their wire order. */ export declare function readFieldMask(reader: BinaryReader, length: number): string[]; //# sourceMappingURL=fieldmask.d.ts.map