import { type ComputedRef, type SetupContext } from 'vue'; import { type ApiDeleteFileParams, type ApiQueryFileListParams, type ApiUpdateFileNameAndLinkParams, type CardValidateCallback, type FileCardEmits, type FileCardProps } from '../types'; import { type FileActionUploadApiResponseRecord, type GlobalConfigFileProps } from '../../typings'; import { type UseRequestHandleApiDefaultOptions, type VersionCaches } from '../../hooks'; import { type ReturnOf } from '../../utils'; import { type UseCardActionsReturn } from './use-card-actions'; export declare function useMode(options: { mergedProps: ComputedRef; emits: SetupContext['emit']; VersionCachesController: VersionCaches; handleApiDataSource: (params?: any) => Promise; hasEmptyDataSource: ComputedRef; }): { apiActions: { rowEditorApiOptions: (apiParams: FileCardProps['apiParams'], changeEventPayload: Omit) => UseRequestHandleApiDefaultOptions | undefined; historyApiOptions: (apiParams: FileCardProps['apiParams'], file: FileActionUploadApiResponseRecord) => UseRequestHandleApiDefaultOptions | undefined; deleteApiOptions: (apiParams: FileCardProps['apiParams'], row: FileActionUploadApiResponseRecord) => UseRequestHandleApiDefaultOptions & { actualIds?: string[] | undefined; }, FileActionUploadApiResponseRecord[]> | undefined; }; dataActions: { reloadRows: (params?: Partial | undefined) => Promise; editRow: (changeEventPayload: Omit, _row: FileActionUploadApiResponseRecord, cardUpdateRows: UseCardActionsReturn['cardUpdateRows'], editRowApiAction: (...args: any[]) => Promise, hasEmptyDataSource: ComputedRef, refreshCardDataApiAction: (params?: Partial | undefined) => Promise) => Promise; updateRow: (_row: FileActionUploadApiResponseRecord, _clickedRow: FileActionUploadApiResponseRecord, cardUpdateRows: UseCardActionsReturn['cardUpdateRows'], hasEmptyDataSource: ComputedRef, refreshCardDataApiAction: (params?: Partial | undefined) => Promise) => Promise; deleteRow: (_clickedRow: FileActionUploadApiResponseRecord, cardDeleteRows: UseCardActionsReturn['cardDeleteRows'], deleteRowApiAction: () => Promise, hasEmptyDataSource: ComputedRef, refreshCardDataApiAction: (params?: Partial | undefined) => Promise, validate: (trigger: string, callback?: CardValidateCallback | undefined) => Promise) => Promise; }; }; export declare type UseModeReturn = ReturnOf;