import { Request } from '../client'; export declare type RequestHandler = (payload: any, context: any) => any | Promise; export declare function registerHandler(key: string, handler: RequestHandler): void; export declare function processRequest(req: Request, context?: any): Promise;