/**
 * ORM client wrapper for React Query hooks
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { createClient } from '../orm';
export { GraphQLRequestError } from '../orm/client';
let client = null;
/**
 * Configure the ORM client for React Query hooks
 *
 * @example
 * ```ts
 * import { configure } from './generated/hooks';
 *
 * configure({
 *   endpoint: 'https://api.example.com/graphql',
 *   headers: { Authorization: 'Bearer <token>' },
 * });
 * ```
 */
export function configure(config) {
    client = createClient(config);
}
/**
 * Get the configured ORM client instance
 * @throws Error if configure() has not been called
 */
export function getClient() {
    if (!client) {
        throw new Error('ORM client not configured. Call configure() before using hooks.');
    }
    return client;
}
