import { Feature } from 'oak-frontend-base/es/types/Feature'; import { EntityDict } from '../oak-app-domain'; import { Cache } from 'oak-frontend-base/es/features/cache'; import { LocalStorage } from 'oak-frontend-base/es/features/localStorage'; import { MediaType, MediaVideoDescription, MaterialType } from '../types/WeChat'; export declare class WechatMenu extends Feature { private cache; private storage; constructor(cache: Cache, storage: LocalStorage); getCurrentMenu(params: { applicationId: string; }): Promise; getMenu(params: { applicationId: string; }): Promise; createMenu(params: { applicationId: string; menuConfig: any; id: string; }): Promise; createConditionalMenu(params: { applicationId: string; menuConfig: any; id: string; }): Promise; deleteConditionalMenu(params: { applicationId: string; menuId: number; }): Promise; deleteMenu(params: { applicationId: string; }): Promise; batchGetArticle(params: { applicationId: string; offset?: number; count: number; noContent?: 0 | 1; }): Promise; getArticle(params: { applicationId: string; articleId: string; }): Promise; createMaterial(params: { applicationId: string; type: MediaType; file: File; description?: MediaVideoDescription; isPermanent?: boolean; }): Promise; batchGetMaterialList(params: { applicationId: string; type: MaterialType; offset?: number; count: number; }): Promise; /** * 获取素材详情 * @param params * @returns */ getMaterial(params: { applicationId: string; mediaId: string; isPermanent?: boolean; }): Promise; }