import IPermissionsManager from "gpdb-api-client/build/main/types/permissions-manager"; import { FeaturesManager as ICustomFeaturesManager } from "../customFeaturesManager"; import { UserPermissions } from "../../types/permissions"; interface FeaturesManager { readonly can: (name: string, ...rest: any[]) => boolean; readonly show: (name: string, ...rest: any[]) => boolean; } export declare enum ShowComponents { RecorderRecordButton = "recorderRecordButton", SelfRecorderAction = "selfRecorderAction", CustomAttributesForSelf = "customAttributesForSelf", PronunciationsBlock = "showPronunciationsBlock", PersonalBlock = "showPersonalBlock", SearchWidget = "showSearchWidget", LibraryRecordings = "showLibraryRecordings", Avatars = "avatars" } export declare enum CanComponents { CreateRecordingRequest = "createRecordingRequest", FindRecordingRequest = "findRecordingRequest", RestoreOrgPeerPronunciation = "restoreOrgPeerPronunciation", RestoreSelfPronunciation = "restoreSelfPronunciation", Restore = "restore", CreateUserResponse = "createUserResponse", UserResponse = "userResponse", DestroyPronunciation = "destroyPronunciation", CustomDestroy = "customDestroy", CreateSelfRecording = "createSelfRecording", CreateOrgPeerRecording = "createOrgPeerRecording", RecordNameBadge = "recordNameBadge", Pronunciation = "pronunciation", CreateCustomAttributes = "createCustomAttributes", EditCustomAttributesForSelf = "editCustomAttributesForSelf", CanRequestAvatars = "canRequestAvatars" } declare const useFeaturesManager: (permissionsManager?: IPermissionsManager, customFeaturesManager?: ICustomFeaturesManager, enforcedPermissions?: UserPermissions) => FeaturesManager; export default useFeaturesManager;