import { CashOutTaxRate, jbControllerAbi, ReservedPercent, RulesetWeight, WeightCutPercent } from "juice-sdk-core"; import { ContractFunctionReturnType } from "viem"; import { AsyncData } from "../types"; /** * Context for the current ruleset of a project. */ export type JBRulesetContext = { /** * The current ruleset of the project. */ ruleset: AsyncData[0], "weight" | "weightCutPercent"> & { weight: RulesetWeight; weightCutPercent: WeightCutPercent; }>; /** * The metadata for the current ruleset of the project. */ rulesetMetadata: AsyncData[1], "cashOutTaxRate" | "reservedPercent"> & { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; }>; }; /** * Context for the project's current ruleset. */ export declare const JBRulesetContext: import("react").Context; export declare function useJBRulesetContext(): JBRulesetContext; /** * * @deprecated use useJBRuleset instead */ export declare function useJBRulesetMetadata(): AsyncData & { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; }>; /** * Provides the current ruleset for a project. * * @note depends on JBContractContext */ export declare const JBRulesetProvider: ({ children }: { children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=JBRulesetContext.d.ts.map