import { IndexListAreaPaginationProps } from '../IndexList'; import { ViewType } from './types/views'; import type { UseSearchReturn } from './useSearch'; import type { SetNotificationType } from '../../Provider'; import type { ApiSearchParams, IndexPageTemplateProps } from '../../templates/IndexPage/types'; type UseViewHandlersReturn = { createView: (nextLabel: string) => Promise; renameView: (nextLabel: string) => Promise; duplicateView: (nextLabel: string) => Promise; deleteView: () => Promise; updateView: (view: ViewType) => Promise; selectView: (view: ViewType) => void; errorFields?: { name: string; message: string; attachments?: unknown; }[]; }; export declare const useViewHandlers:

({ currentViewId, views, searchQuery, setCurrentView, setNotification, onClose, resetCurrentViewParams, pagination, }: { setNotification: SetNotificationType; onClose: () => void; pagination?: IndexListAreaPaginationProps | undefined; } & Required, "views">> & Pick, "searchQuery" | "currentViewId" | "setCurrentView" | "resetCurrentViewParams">) => UseViewHandlersReturn; export {};