declare module 'graphiql-code-exporter' { import { ComponentType } from 'react'; import { GraphQLSchema, OperationTypeNode, OperationDefinitionNode, FragmentDefinitionNode, } from 'graphql'; type OperationData = { query: string; name: string; displayName: string; type: OperationTypeNode | 'fragment'; variableName: string; variables: Record; operationDefinition: OperationDefinitionNode | FragmentDefinitionNode; fragmentDependencies: Array; }; type GenerateOptions = { serverUrl: string; headers: Record; context: Record; operationDataList: Array; options: Record; }; type Snippet = { language: string; codeMirrorMode: string; name: string; options: Array<{ id: string; label: string; initial: boolean; }>; generate: (options: GenerateOptions) => string; }; export type GraphiQLCodeExporterProps = { query: string; snippets: Array; codeMirrorTheme?: string; variables?: string; context?: Record; schema?: GraphQLSchema | null | undefined; }; const GraphiQLCodeExporter: ComponentType; export default GraphiQLCodeExporter; }