import { GraphQLDevToolEventMap } from '../shared/events'; import { GraphQLClientAdapter } from './adapters/types'; type SupportedClientType = 'apollo' | 'custom'; interface UseGraphqlClientDevtoolConfig { /** * The GraphQL client instance */ client: any; /** * Type of the GraphQL client */ clientType: SupportedClientType; /** * Custom adapter implementation (required if clientType is 'custom') */ adapter?: GraphQLClientAdapter; /** * Whether to include variables in operation tracking * @default true */ includeVariables?: boolean; /** * Whether to include response data in operation tracking * @default true */ includeResponseData?: boolean; } /** * Main hook for integrating GraphQL client with Rozenite DevTools. * * This hook automatically tracks all GraphQL operations (queries, mutations, subscriptions) * including duplicate queries that might be deduplicated by your GraphQL client. * * @example * ```typescript * // With Apollo Client * useGraphqlClientDevtool({ * client: apolloClient, * clientType: 'apollo', * }); * * * // With custom adapter * useGraphqlClientDevtool({ * client: myCustomClient, * clientType: 'custom', * adapter: new MyCustomAdapter(myCustomClient), * }); * ``` */ export declare const useGraphqlClientDevtool: (config: UseGraphqlClientDevtoolConfig) => import('@rozenite/plugin-bridge').RozeniteDevToolsClient | null; export {};