import type { Collection } from "../../interfaces/models/Collection"; import type { Entity } from "../../interfaces/models/Entity"; export interface UseCollectionsActionsValues { openCollection: (collection: Collection) => void; goBack: () => void; goToRoot: () => void; fetchRootCollection: ({ projectId }: { projectId: string; }) => Promise; fetchSubCollections: ({ projectId, collectionId }: { projectId: string; collectionId: string; }) => Promise; createCollection: ({ projectId, parentCollectionId, collectionName }: { projectId: string; parentCollectionId: string; collectionName: string; }) => Promise; updateCollection: ({ projectId, collectionId, update }: { projectId: string; collectionId: string; update: { name: string; }; }) => Promise; deleteCollection: ({ projectId, collection }: { projectId: string; collection: Collection; }) => Promise; addToCollection: ({ projectId, collectionId, entity }: { projectId: string; collectionId: string; entity: Entity; }) => Promise; removeFromCollection: ({ projectId, collectionId, entityId }: { projectId: string; collectionId: string; entityId: string; }) => Promise; resetCollections: () => void; } /** * Redux-powered hook that provides all collection actions * This replaces the individual hooks and provides a centralized way to manage collections */ export declare function useCollectionsActions(): UseCollectionsActionsValues; export default useCollectionsActions;