import {Plugin as Plugin_2} from 'sanity' import * as React_2 from 'react' /** * Usage in `sanity.config.ts` (or .js) * * ```ts * import {defineConfig} from 'sanity' * import {graphiQLTool} from 'sanity-plugin-graphiql' * * export default defineConfig({ * // ... * plugins: [ * graphiQLTool({ * apiVersion: '2021-10-21', * * // use a custom graphql api, disable the api selector in the tool. * url, * * // override the default tool name * name: 'graphiql', * * // override the default tool title * title: 'GraphiQL', * * // override the default tool icon * icon: BlockElementIcon, * * // set the default query * defaultQuery: 'query { ... }' * }), * ], * }) * ``` */ export declare const graphiQLTool: Plugin_2 declare type GraphiQLToolConfig = { apiVersion: string url?: string name?: string title?: string icon?: React_2.ComponentType defaultQuery?: string } export {}