import { PropsWithChildren } from "react"; import { Address } from "wagmi"; import { AsyncData } from "../types"; export declare enum JBDataSourceName { JB721Delegate = "JB721Delegate" } /** * Data structure for the context for a given datasource. */ export type JBDataSourceContextData = AsyncData<{ /** * The name of the datasource. */ name: JBDataSourceName; /** * The version of the datasource (in whatever verisoning scheme the datasource uses) */ version: string; /** * Address of the datasource. */ address: Address; }>; /** * Context for a given datasource. */ export declare const JBDataSourceContext: import("react").Context; export declare function useJBDataSourceContext(): JBDataSourceContextData; export type JBDataSourceProviderProps = PropsWithChildren<{ dataSourceAddress: Address | undefined; }>; /** * Provides information about a given datasource. * * @note depends on JBContractContext */ export declare const JBDataSourceProvider: ({ dataSourceAddress, children, }: JBDataSourceProviderProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=JBDataSourceContext.d.ts.map