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

({ currentViewId, views, viewReflectParams, setCurrentView, setNotification, onClose, resetCurrentViewParams, pagination, }: { views: IndexListControlAreaViewsProps

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