import { MaterialCategory, MaterialItem, MaterialQueryParams, DesignerConfig } from '../types'; /** * 素材管理 Composable */ export declare function useMaterial(config: DesignerConfig): { categories: import('vue').Ref<{ id: number | string; title: string; pid?: number | string | undefined; sort?: number | undefined; _child?: /*elided*/ any[] | undefined; }[], MaterialCategory[] | { id: number | string; title: string; pid?: number | string | undefined; sort?: number | undefined; _child?: /*elided*/ any[] | undefined; }[]>; materials: import('vue').Ref<{ [x: string]: any; id: number | string; title: string; html: string; categoryId?: number | string | undefined; cover?: string | undefined; }[], MaterialItem[] | { [x: string]: any; id: number | string; title: string; html: string; categoryId?: number | string | undefined; cover?: string | undefined; }[]>; total: import('vue').Ref; loading: import('vue').Ref; loadingMore: import('vue').Ref; loadingCategories: import('vue').Ref; currentCategory: import('vue').Ref; keywords: import('vue').Ref; currentPage: import('vue').Ref; hasMore: import('vue').Ref; loadMaterials: (params?: MaterialQueryParams, append?: boolean) => Promise; loadMore: () => Promise; changeCategory: (categoryId: number | string) => void; search: (keyword: string) => void; };