import { Ref, ComputedRef } from 'vue'; import { File, Folder, Favorite, MiniFolder } from '../../../../types/openapi'; import { RecentFile } from '../../../types/recentFiles.types'; import { ViewCompactFile, ViewCompactFileFolder, ViewCompactFolder } from '../../../types/files'; import { OrganizationSettings } from '../../../types/organizationSettings.types'; import { InstanceSettings } from '../../../types/instanceSettings.types'; export type AppName = 'admin' | 'impact'; export type AppCurrentState = 'browse' | 'create-folder' | 'upload-files' | 'update-folder' | 'update-file' | 'batch-move'; export type BrowserSectionType = 'all' | 'favorites' | 'recent' | 'trash'; export type SortOption = 'nameAsc' | 'nameDesc' | 'modifiedAsc' | 'modifiedDesc'; export type StateSelectedItem = Partial & { type: string | null | undefined; thumbnail_url: string | null | undefined; content_type: string | null | undefined; }; type SelectedItemId = Folder['id'] | File['id'] | RecentFile['id'] | (Favorite['page'] extends { id: any; } ? Favorite['page']['id'] : never); type View = 'grid' | 'table'; type RecentFileWithFavoriteId = RecentFile & { favoriteId: string; }; type FavoriteExtended = Favorite & { favoriteId: string; tags?: string[]; content_type?: string | null | undefined; type?: 'file' | 'folder'; }; export default function (): { setAppName(appName: AppName): void; setSortOption(sortOption: SortOption): void; resetSelectedItems(): void; removeSelectedItems(removeIds: SelectedItemId[]): void; selectAll(): void; toggleSelectAll(value: boolean): void; toggleItemSelection(item: StateSelectedItem, { isSelected, disableMultiple }?: { isSelected?: boolean; disableMultiple?: boolean; }): void; toggleSingleItemSelection(item: Partial): void; toggleItemFavorite(item: ViewCompactFileFolder & { favoriteId?: string; }): void; setSelectedSection(section: BrowserSectionType, folderId?: string): void; toggleSelectedView(): void; setSearch(search: string): void; setIsLocalSearch(isLocal: boolean): void; toggleContentPanel(isOpen?: boolean): void; selectAndOpenContentPanel(item: ViewCompactFileFolder): void; setCurrentState(stateName: AppCurrentState, itemId?: Folder["id"] | File["id"]): void; clearInlineEditingItem(): void; appName: Ref; currentState: Ref; selectedItemIds: Ref; selectedSection: Ref; selectedView: Ref; selectedSortOption: Ref; search: Ref; displayedFiles: ComputedRef; displayedFolders: ComputedRef; displayedFilesFolders: ComputedRef; sortedFavorites: ComputedRef; displayedFavorites: ComputedRef; filteredRecentFiles: ComputedRef; displayedRecentFiles: ComputedRef; isContentPanelOpen: Ref; updatingFolderId: Ref; selectedFileId: ComputedRef; selectedFolderId: ComputedRef; updatingFolder: ComputedRef; inlineEditingItem: Ref<{ id: string | number; prop: "name" | "tags"; } | null>; showFilteredResults: ComputedRef; isAdmin: ComputedRef; enabledFavorites: ComputedRef; enabledRecents: ComputedRef; disabledSearchContext: ComputedRef; isLocalSearch: Ref; isMobileView: Ref; pitcherSettings: Ref; }; export {};