import { EntityDict } from '../general-app-domain'; import { BackendRuntimeContext } from '../context/BackendRuntimeContext'; declare type WechatPublicTemplateMsgKeyword = 'keyword1' | 'keyword2' | 'keyword3' | 'keyword4' | 'keyword5' | 'keyword6' | 'keyword7'; export declare type Channel = 'wechatPublic' | 'jPush' | 'jim' | 'wechatMp' | 'sms'; export declare type Weight = 'high' | 'medium' | 'low'; export interface MessageNotificationConverter> { type: string; toWechatMp?: (entity: ED['message']['OpSchema']['entity'], entityId: string, applications: EntityDict['application']['Schema'][], application: EntityDict['application']['Schema'], context: Cxt) => Promise<{ [K: string]: { value: string; }; } | undefined>; toWechatPublic?: (entity: ED['message']['OpSchema']['entity'], entityId: string, applications: EntityDict['application']['Schema'][], application: EntityDict['application']['Schema'], context: Cxt) => Promise<{ data: { first?: { value: string; color?: string; }; remark?: { value: string; color?: string; }; } & { [K in WechatPublicTemplateMsgKeyword]?: { value: string; color?: string; }; }; wechatMpAppId?: string; } | undefined>; toSms?: (entity: ED['message']['OpSchema']['entity'], entityId: string, context: Cxt) => Promise<{ signName?: string; params?: Record; paramsArray?: Array; } | undefined>; } export {};