import { Plugin } from "@webiny/plugins"; import type { Context } from "../types.js"; export interface ContextPluginCallable { (context: T): void | Promise; } export declare class ContextPlugin extends Plugin { static readonly type: string; private readonly _callable; constructor(callable: ContextPluginCallable); apply(context: T): Promise; } interface ContextPluginOptions { name?: string; } export declare const createContextPlugin: (callable: ContextPluginCallable, options?: ContextPluginOptions) => ContextPlugin; export {};