import { EntityDict } from '../oak-app-domain'; import { AppType } from '../oak-app-domain/Application/Schema'; import { MediaType, MaterialType } from '../types/WeChat'; import { WebEnv } from 'oak-domain/lib/types/Environment'; import { File } from 'formidable'; import { BRC } from '../types/RuntimeCxt'; export declare function getApplication(params: { version: string; type: AppType; domain: string; data: ED['application']['Projection']; appId?: string; }, context: BRC): Promise; export declare function signatureJsSDK({ url, env }: { url: string; env: WebEnv; }, context: BRC): Promise<{ signature: string; noncestr: string; timestamp: number; appId: string; }>; export declare function uploadWechatMedia(params: { applicationId: string; file: File; type: MediaType; isPermanent?: string; description?: string; extraFileId?: string; }, // FormData表单提交 isPermanent 变成 'true' | 'false' context: BRC): Promise<{ mediaId: string; }>; export declare function getMaterial(params: { applicationId: string; mediaId: string; isPermanent?: boolean; }, context: BRC): Promise; export declare function deleteMaterial(params: { applicationId: string; mediaId: string; }, context: BRC): Promise; export declare function batchGetArticle(params: { applicationId: string; offset?: number; count: number; noContent?: 0 | 1; }, context: BRC): Promise; export declare function getArticle(params: { applicationId: string; articleId: string; }, context: BRC): Promise; export declare function batchGetMaterialList(params: { applicationId: string; type: MaterialType; offset?: number; count: number; }, context: BRC): Promise;