import type { ApiEndpoint, CmsContext, CmsModel } from "../types/index.js"; import type { ICmsGraphQLSchemaPlugin } from "../plugins/index.js"; import type { IGraphQLSchemaPlugin } from "@webiny/handler-graphql"; import type { GraphQLSchemaDefinition } from "@webiny/handler-graphql/types.js"; import type { CmsModelFieldToGraphQLRegistry } from "../features/graphql/index.js"; interface CreatePluginCallableParams { schema: GraphQLSchemaDefinition; type: "manage" | "preview" | "read"; fieldType: string; } interface CreatePluginCallable { (params: CreatePluginCallableParams): IGraphQLSchemaPlugin; } interface Params { models: CmsModel[]; fieldRegistry: CmsModelFieldToGraphQLRegistry.Interface; type: ApiEndpoint; createPlugin?: CreatePluginCallable; } export declare const createGraphQLSchemaPluginFromFieldPlugins: (params: Params) => ICmsGraphQLSchemaPlugin[]; export {};