import type { Context } from "@webiny/api/types.js"; import { Plugin } from "@webiny/plugins"; import type { GraphQLSchemaDefinition, ResolverDecorators, Resolvers, TypeDefs } from "../types.js"; export interface IGraphQLSchemaPlugin extends Plugin { schema: GraphQLSchemaDefinition; isApplicable: (context: TContext) => boolean; } export interface GraphQLSchemaPluginConfig { typeDefs?: TypeDefs; resolvers?: Resolvers; resolverDecorators?: ResolverDecorators; isApplicable?: (context: TContext) => boolean; } export declare class GraphQLSchemaPlugin extends Plugin implements IGraphQLSchemaPlugin { static readonly type: string; protected config: GraphQLSchemaPluginConfig; constructor(config: GraphQLSchemaPluginConfig); get schema(): GraphQLSchemaDefinition; isApplicable(context: TContext): boolean; } export declare const createGraphQLSchemaPlugin: (config: GraphQLSchemaPluginConfig) => GraphQLSchemaPlugin;