/** * Resolve the effective interaction policy. * * Canonical comment and tracked-change fields resolve independently. * Deprecated `readOnly` keeps its historical effect on both comment writes * and tracked-change decisions. Deprecated `allowResolve` affects only * resolve and reopen actions. * * @param {Record} [config] Raw consumer config. * @returns {{ * comments: { * level: CommentInteractionLevel, * readOnly: boolean, * allowResolve: boolean, * }, * trackedChanges: { allowDecisions: boolean }, * }} */ export function normalizeInteractionConfig(config?: Record): { comments: { level: CommentInteractionLevel; readOnly: boolean; allowResolve: boolean; }; trackedChanges: { allowDecisions: boolean; }; }; export type CommentInteractionLevel = "read" | "write" | "resolve";