/** * Auth Headers Hook * * IMPORTANT: Before using this hook, you must inject the dependencies from your application: * * ```typescript * import { injectDependencies } from '@levr/shared/react'; * import { usePrivy, useIdentityToken, useUser } from '@privy-io/react-auth'; * import { useQuery } from '@tanstack/react-query'; * import { LevrEnv } from '@levr/shared/core'; * * // Call this once in your app initialization (e.g., in your root component or main.tsx) * injectDependencies({ usePrivy, useIdentityToken, useUser, useQuery, levrEnv: LevrEnv.TESTNET }); * ``` * * This ensures that the shared library uses your application's React context and configuration * instead of creating its own, which would cause context duplication issues. */ import { Address } from "viem"; import { LevrAuth } from "../../../core"; export interface UseAuthHeadersProps { address?: Address; } export declare const useAuthHeaders: (props?: UseAuthHeadersProps) => import("@tanstack/react-query").UseQueryResult<{ "x-levr-auth-type"?: undefined; "x-eth-address"?: undefined; "privy-access-token"?: undefined; "privy-id-token"?: undefined; } | { "x-levr-auth-type": LevrAuth; "x-eth-address": `0x${string}` | undefined; "privy-access-token": string | null; "privy-id-token": string | null; }, Error>; export declare const useAdminAuthHeaders: (props?: UseAuthHeadersProps) => import("@tanstack/react-query").UseQueryResult<{ "x-levr-auth-type"?: undefined; "x-eth-address"?: undefined; "privy-access-token"?: undefined; "privy-id-token"?: undefined; } | { "x-levr-auth-type": LevrAuth; "x-eth-address": `0x${string}` | undefined; "privy-access-token": string | null; "privy-id-token": string | null; }, Error>;