import { StoreDefinition } from 'pinia'; /** * Store definition for managing the navigation state within a workspace or folder system. * Provides state variables and actions to handle navigation-related functionality such as loading * workspace data, managing nodes, folders, files, and handling user-specific behaviors. * * State Variables: * - `currentNode`: The currently active node in the navigation hierarchy. * - `totalRecordNodes`: The total number of record nodes available. * - `workspace`: The current workspace object. * - `workspaceInfo`: Additional information related to the workspace. * - `nodes`: A list of nodes within the workspace or folder. * - `files`: A list of file nodes present in the current view. * - `folders`: A list of folder nodes present in the current view. * - `children`: The immediate children of the current node. * - `loading`: A boolean indicating if the application is in a loading state. * - `emptyFolder`: A boolean indicating if the current folder is empty. * - `role`: The user's role within the current workspace. * - `canUpload`: A boolean indicating if the user has permission to upload. * - `pagination`: Pagination details for managing viewable content. * - `isInConsultation`: A boolean indicating if the user is in consultation mode. * - `isInUserHome`: A boolean indicating if the user is in their home workspace. * - `hasNoUserHome`: A boolean indicating if the user does not have a home workspace. * * Actions: * - `setIsInUserHome(value)`: Updates the state to mark if the user is in their home workspace. * - `setHasNoUserHome(value)`: Updates the state to mark if the user does not have a home workspace. * - `load(workspaceId, folderId, force)`: Loads data for the current workspace and optionally for a folder. * - `loadWithOpts(workspaceId, folderId, force, opts)`: Loads workspace data with additional options. * - `loadOnActes(workspaceId, seanceId, force)`: Special loading logic for navigating in an "Actes" application context. */ export const useNavigationStore: StoreDefinition<"NavigationStore", { currentNode: any; totalRecordNodes: any; workspace: any; workspaceInfo: any; nodes: any[]; files: any[]; folders: any[]; children: any[]; loading: boolean; emptyFolder: boolean; role: any; canUpload: boolean; pagination: any; isInConsultation: boolean; isInUserHome: boolean; hasNoUserHome: boolean; }, {}, { setIsInUserHome(value: any): void; setHasNoUserHome(value: any): void; /** * Load children from current node (if it change) * @param workspaceId Current Workspace id (mandatory) * @param folderId Current Folder id (optional) * @param force force load (reload) data * @return Promise */ load(workspaceId: any, folderId: any, force: any): Promise | Promise; loadWithOpts(workspaceId: any, folderId: any, force: any, opts: any): Promise | Promise; /** * Load children from current node in Actes Application (if it change) * @param workspaceId Current Workspace id (mandatory) * @param seanceId Current seance id (optional) * @param force force load (reload) data * @return Promise */ loadOnActes(workspaceId: any, seanceId: any, force: any): Promise | Promise; }>; //# sourceMappingURL=navigation.d.ts.map