/** * React context provider for the Lightdash client. * * Usage: * const lightdash = createClient({ apiKey, baseUrl, projectUuid }) * */ import { type ReactNode } from 'react'; import { type LightdashClient } from './client'; import type { Transport } from './types'; export declare function useTransport(): Transport; export declare function useLightdashClient(): LightdashClient | null; /** Non-throwing transport lookup for hooks that must keep working without a * provider (`useVizContext` supports standalone self-subscription). */ export declare function useOptionalTransport(): Transport | null; type LightdashProviderProps = { children: ReactNode; } & ({ client: LightdashClient; transport?: never; } | { transport: Transport; client?: never; }); export declare function LightdashProvider({ children, ...props }: LightdashProviderProps): import("react/jsx-runtime").JSX.Element; export {};