import { type GraphQLConnectionState } from './types.js';
/**
* React hook that returns the current GraphQL client connection state.
* Must be called within a GraphQLProvider.
* @returns Current GraphQLConnectionState.
* @throws {GraphQLClientError} GRAPHQL_CONTEXT_NOT_FOUND - If called outside of GraphQLProvider.
* @example
* function MyComponent() {
* const connectionState = useConnectionState();
*
* return (
*
* );
* }
*/
export declare function useConnectionState(): GraphQLConnectionState;
/**
* React hook that returns a function to manually trigger a reconnection.
* Must be called within a GraphQLProvider.
* @returns Function that triggers a reconnection attempt.
* @throws {GraphQLClientError} GRAPHQL_CONTEXT_NOT_FOUND - If called outside of GraphQLProvider.
* @example
* function ReconnectButton() {
* const reconnect = useGraphQLReconnect();
*
* return (
*
* );
* }
*/
export declare function useGraphQLReconnect(): () => void;
//# sourceMappingURL=hooks.d.ts.map