import type { ContextParams as BaseContextParams, ContextPluginCallable as BaseContextPluginCallable } from "@webiny/api"; import { Context as BaseContext, ContextPlugin as BaseContextPlugin } from "@webiny/api"; import type { Context as ContextInterface } from "./types.js"; export interface ContextParams extends BaseContextParams { routes: ContextInterface["routes"]; } export declare class Context extends BaseContext implements ContextInterface { readonly routes: ContextInterface["routes"]; handlerClient: ContextInterface["handlerClient"]; request: ContextInterface["request"]; reply: ContextInterface["reply"]; constructor(params: ContextParams); } /** * We need to extend and reexport the ContextPlugin, ContextPluginCallable and createContextPlugin to support extended context. * * This can be removed when we introduce the type augmentation. */ export type ContextPluginCallable = BaseContextPluginCallable; export declare class ContextPlugin extends BaseContextPlugin { } export declare const createContextPlugin: (callable: ContextPluginCallable) => BaseContextPlugin;