import { AxiosInstance } from 'axios'; import type { ConfigCatalogType } from './api-generator'; type StatusType = '' | 'c' | 'r' | 'u' | string; type MergeDataType = 'deep' | 'shallow' | false | ((newFormData: any) => any); type GetListType = (payload?: any, payloadAs?: string) => Promise; type SubmitFormType = (params: any) => Promise; interface FormType { show?: boolean; data?: any; dataAt?: string | Function; mergeData?: MergeDataType; loading?: boolean; submitting?: boolean; status?: StatusType; } interface ListType { filter: object; pageNumberKey: string; watchFilter?: boolean; debounceInterval?: number; data?: any[]; dataAt?: string | Function; total?: number; totalAt?: string | Function; loading?: boolean; } export declare function unwrap(value: V, path?: string | ((value: V) => any) | symbol): any; export default function useAdmate({ axios, axiosConfig, urlPrefix, form, list, getListProxy, openFormProxy, submitFormProxy }: { axios: AxiosInstance; axiosConfig: ConfigCatalogType; urlPrefix: string; form?: FormType; list?: ListType; getListProxy?: (getList: GetListType, trigger?: string) => void; openFormProxy?: (openForm: Function) => Promise | FormType | undefined; submitFormProxy?: (submitForm: SubmitFormType) => Promise | FormType | undefined; }): object; export {};