import { ExportApi } from '../ExportModel'; export declare type Env = "prod"; export interface NotifyConfig { url: string; } export interface Config { env?: Env; notify?: NotifyConfig; authToken?: string; } export interface BaseParams { $config?: { notify?: { url?: string; }; }; env?: Env; } export interface FunctionRequest { method: string; params: T & BaseParams; source: string; appId?: string; isvAppId?: string; authToken?: string; } export interface FunctionResponse { requestId: string; success: boolean; result: R; } export interface ServerlessFunction { invoke(functionName: string, request: FunctionRequest): Promise>; } export interface Serverless { function: ServerlessFunction; } export default class CloudBase { invoker: Serverless; private _services; constructor(); get services(): ExportApi; init(mpserverless: Serverless): void; invoke(openApiName: string, params: { [key: string]: any; }): Promise<{ [key: string]: any; }>; invokeWithPageExe(openApiName: string, params: { [key: string]: any; }): Promise; invokePre(preFunctionName: string, openApiName: string, params: { [key: string]: any; }): Promise<{ [key: string]: any; }>; getInvokeArgs(method: string, params: { [key: string]: any; }): FunctionRequest<{ [key: string]: any; }>; }