import { Plugin } from "@webiny/plugins"; import type { ApiEndpoint, CmsContext } from "../types/index.js"; /** * Type can be null because it might be that Headless CMS context is loaded on a different Lambda where there is no GraphQL Schema generated. */ export type CmsParametersPluginResponseType = ApiEndpoint | null; export interface CmsParametersPluginResponse { type: CmsParametersPluginResponseType; } export interface CmsParametersPluginCallable { (context: CmsContext): Promise; } export declare class CmsParametersPlugin extends Plugin { static readonly type: string; private readonly callable; constructor(callable: CmsParametersPluginCallable); getParameters(context: CmsContext): Promise; }