1 | import { Plugin } from 'graphql-yoga';
|
2 | import { useSofa as createSofaHandler } from 'sofa-api';
|
3 | export { OpenAPI } from 'sofa-api';
|
4 | type SofaHandlerConfig = Parameters<typeof createSofaHandler>[0];
|
5 | export type SofaPluginConfig = Omit<SofaHandlerConfig, 'schema' | 'context' | 'execute' | 'subscribe'>;
|
6 | export declare function useSofa(config: SofaPluginConfig): Plugin;
|