import { RozeniteDevToolsClient } from '@rozenite/plugin-bridge'; import { GraphQLOperation, CacheEntry, GraphQLSchema, GraphQLError, OperationType } from './types'; export type GraphQLDevToolEventMap = { 'graphql-enable': unknown; 'graphql-disable': unknown; 'operation-start': { operation: GraphQLOperation; }; 'operation-update': { id: string; updates: Partial; }; 'operation-complete': { id: string; data: any; duration: number; }; 'operation-error': { id: string; error: GraphQLError; duration: number; }; 'cache-snapshot': { entries: CacheEntry[]; }; 'cache-update': { entry: CacheEntry; }; 'cache-invalidate': { keys: string[]; }; 'get-cache-snapshot': unknown; 'schema-loaded': { schema: GraphQLSchema; }; 'get-schema': unknown; 'clear-operations': unknown; 'execute-operation': { query: string; variables?: Record; operationType: OperationType; }; }; export type GraphQLDevToolsClient = RozeniteDevToolsClient;