import { AttributeType, RelationType } from '@judo/model-api'; /** * Build a JUDO mask string from attributes and relations. * * The mask format wraps comma-separated entries in curly braces. * Plain attributes are listed by name, while relations include their * target attributes in nested braces. * * @example * // Attributes only * buildMaskString({ attributes: [{ name: "born" }, { name: "name" }] }) * // => "{born,name}" * * @example * // Attributes + relations * buildMaskString({ * attributes: [{ name: "born" }, { name: "name" }], * relations: [{ name: "messages", target: { attributes: [{ name: "message" }] } }], * }) * // => "{born,name,messages{message}}" * * @example * // Empty produces "{}" * buildMaskString({ attributes: [] }) * // => "{}" */ export declare function buildMaskString(params: { attributes?: AttributeType[]; relations?: RelationType[]; }): string; //# sourceMappingURL=build-mask-string.d.ts.map