/** * React context for the Aithos assets client. * * App roots wrap their tree with `` * once, then child components use `` (or the * `useAithosAsset` hook) without having to thread the client through * props. */ import { type ReactNode } from "react"; import type { AssetsClient } from "../assets.js"; export interface AssetsClientProviderProps { /** The SDK's assets client — typically `sdk.assets`. */ readonly client: AssetsClient; readonly children?: ReactNode; } /** * Provider that exposes an {@link AssetsClient} to descendants. * * Typical placement: as high in the React tree as the authenticated * session lives (e.g. inside the auth boundary). */ export declare function AssetsClientProvider(props: AssetsClientProviderProps): any; /** * Return the {@link AssetsClient} from the nearest provider, or `null` * if no provider is present. Components SHOULD accept an override via * an explicit `client` prop and fall back to this hook when omitted. */ export declare function useAssetsClient(): AssetsClient | null; //# sourceMappingURL=context.d.ts.map