import * as express from 'express'; import { HttpsFunction, Runnable } from '../cloud-functions'; import { CallableContext, FunctionsErrorCode, HttpsError, Request } from '../common/providers/https'; import { DeploymentOptions } from '../function-configuration'; export { Request, CallableContext, FunctionsErrorCode, HttpsError }; /** * Handle HTTP requests. * @param handler A function that takes a request and response object, * same signature as an Express app. */ export declare function onRequest(handler: (req: Request, resp: express.Response) => void | Promise): HttpsFunction; /** * Declares a callable method for clients to call using a Firebase SDK. * @param handler A method that takes a data and context and returns a value. */ export declare function onCall(handler: (data: any, context: CallableContext) => any | Promise): HttpsFunction & Runnable; /** @hidden */ export declare function _onRequestWithOptions(handler: (req: Request, resp: express.Response) => void | Promise, options: DeploymentOptions): HttpsFunction; /** @hidden */ export declare function _onCallWithOptions(handler: (data: any, context: CallableContext) => any | Promise, options: DeploymentOptions): HttpsFunction & Runnable;