import { CashOutTaxRate, JBChainId, ReservedPercent, RulesetWeight, WeightCutPercent } from "juice-sdk-core"; export declare function useJBRuleset({ projectId, chainId, }: { projectId: bigint | undefined; chainId: JBChainId | undefined; }): { data: { data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }; error: import("viem").ReadContractErrorType; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; } | { data: { data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }; error: null; isError: false; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; isPlaceholderData: false; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; } | { data: undefined; error: import("viem").ReadContractErrorType; isError: true; isPending: false; isLoading: false; isLoadingError: true; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; } | { data: undefined; error: null; isError: false; isPending: true; isLoading: true; isLoadingError: false; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "pending"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; } | { data: undefined; error: null; isError: false; isPending: true; isLoadingError: false; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "pending"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isLoading: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; } | { data: { data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }; isError: false; error: null; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; isPlaceholderData: true; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: import("viem").ReadContractErrorType | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise>; fetchStatus: import("@tanstack/query-core").FetchStatus; promise: Promise<{ data: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; }; metadata: { cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; dataHook: `0x${string}`; metadata: number; }; }>; queryKey: import("@tanstack/query-core").QueryKey; ruleset: { weight: RulesetWeight; weightCutPercent: WeightCutPercent; cycleNumber: number; id: number; basedOnId: number; start: number; duration: number; approvalHook: `0x${string}`; metadata: bigint; } | undefined; rulesetMetadata: { dataHook: `0x${string}`; cashOutTaxRate: CashOutTaxRate; reservedPercent: ReservedPercent; baseCurrency: number; pausePay: boolean; pauseCreditTransfers: boolean; allowOwnerMinting: boolean; allowSetCustomToken: boolean; allowTerminalMigration: boolean; allowSetTerminals: boolean; allowSetController: boolean; allowAddAccountingContext: boolean; allowAddPriceFeed: boolean; ownerMustSendPayouts: boolean; holdFees: boolean; useTotalSurplusForCashOuts: boolean; useDataHookForPay: boolean; useDataHookForCashOut: boolean; metadata: number; } | undefined; }; //# sourceMappingURL=useJBRuleset.d.ts.map