/** * Helper to build GraphQL fields selection from fields array. * Supports both top-level fields (e.g., "createdOn", "id") and values fields (e.g., "values.author.name"). * Properly merges nested fields that share common parent paths. * * @param fields - Optional array of field paths in dot notation * @returns GraphQL selection string with proper field nesting * * @example * buildFieldsSelection(["id", "entryId", "createdOn", "values.name", "values.author.name", "values.author.email"]) * // Returns: * // id * // entryId * // createdOn * // values { * // name * // author { * // name * // email * // } * // } */ export declare const buildFieldsSelection: (fields?: string[]) => string;