import type { PromiseOrValue } from '@envelop/core'; import type { GraphQLSchemaWithContext, YogaInitialContext } from '../types.cjs'; import type { Plugin } from './types.cjs'; export type YogaSchemaDefinition = PromiseOrValue> | ((context: TServerContext & { request: YogaInitialContext['request']; }) => PromiseOrValue>); export declare const useSchema: (schemaDef?: YogaSchemaDefinition) => Plugin;