import { EntityDict } from '../oak-app-domain'; import { AppType } from '../oak-app-domain/Application/Schema'; import { BackendRuntimeContext } from '../context/BackendRuntimeContext'; import { MediaType, MaterialType } from '../types/WeChat'; import { WebEnv } from 'oak-domain/lib/types/Environment'; import { File } from 'formidable'; export declare function getApplication>(params: { type: AppType; domain: string; }, context: Cxt): Promise; export declare function signatureJsSDK>({ url, env }: { url: string; env: WebEnv; }, context: Cxt): 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: Cxt): Promise<{ mediaId: string; }>; export declare function getMaterial>(params: { applicationId: string; mediaId: string; isPermanent?: boolean; }, context: Cxt): Promise; export declare function deleteMaterial>(params: { applicationId: string; mediaId: string; }, context: Cxt): Promise; export declare function batchGetArticle>(params: { applicationId: string; offset?: number; count: number; noContent?: 0 | 1; }, context: Cxt): Promise; export declare function getArticle>(params: { applicationId: string; articleId: string; }, context: Cxt): Promise; export declare function batchGetMaterialList>(params: { applicationId: string; type: MaterialType; offset?: number; count: number; }, context: Cxt): Promise;