import { ScopeType } from "@fluidframework/protocol-definitions" ; export const canRead = ( scopes ) => scopes . includes ( ScopeType . DocRead ) ; export const canWrite = ( scopes ) => scopes . includes ( ScopeType . DocWrite ) ; export const canSummarize = ( scopes ) => scopes . includes ( ScopeType . SummaryWrite ) ;