import React, { PropsWithChildren } from "react"; import { JBFundingCycle, JBFundingCycleMetadata } from "../../../types"; import { AsyncData } from "../types"; /** * Context for the current funding cycle of a project. */ export type JBFundingCycleContext = { /** * The current funding cycle of the project. */ fundingCycleData: AsyncData; /** * The metadata for the current funding cycle of the project. */ fundingCycleMetadata: AsyncData; }; /** * Context for the current funding cycle of a project. */ export declare const JBFundingCycleContext: React.Context; export declare function useJBFundingCycleContext(): JBFundingCycleContext; export declare function useJBFundingCycleData(): AsyncData; export declare function useJBFundingCycleMetadata(): AsyncData; type JBFundingCycleProviderProps = PropsWithChildren<{ projectId: bigint; }>; /** * Provides the current funding cycle for a project. * * @note depends on JBContractContext */ export declare const JBFundingCycleProvider: ({ projectId, children, }: JBFundingCycleProviderProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=JBFundingCycleContext.d.ts.map