/** * Parses the extended field-mask syntax used by the SDK. * * The parser accepts wildcards, JSON-quoted keys, and groups after a common * path prefix. It ignores whitespace around commas and dots and inside groups. * Empty groups are valid. * * The grammar is: * * ```text * mask := union * union := path ("," path)* * path := factor ("." factor)* * factor := segment | group * segment := "*" | plainKey | quotedKey * group := "(" union? ")" * plainKey := [a-zA-Z0-9_]+ * quotedKey := '"' '"' * ``` * * Application code normally uses {@link Mask.parse} or * {@link https://nebius.github.io/js-sdk/functions/runtime_fieldmask.parseFieldMask.html | parseFieldMask()} * from `@nebius/js-sdk/runtime/fieldmask`. * * @packageDocumentation */ import { Mask } from './fieldmask.js'; /** * Parses field-mask text into a {@link Mask}. * * The syntax supports comma-separated paths, `*` segments, JSON-quoted keys, * and groups after a shared prefix. For example, * `spec.(resources,cloud_init),metadata` contains three paths. Spaces around * separators are ignored. * * Most applications can use {@link Mask.parse} or * {@link https://nebius.github.io/js-sdk/functions/runtime_fieldmask.parseFieldMask.html | parseFieldMask()} * from `@nebius/js-sdk/runtime/fieldmask`. * * @throws `Error` when the input contains an invalid key, an incomplete path, * an unclosed group, or other trailing text. */ export declare function parseMask(source: string): Mask; //# sourceMappingURL=fieldmask_parser.d.ts.map