import { KenoConfiguration } from "@betswirl/sdk-core"; import { useReadContract } from "wagmi"; import { TokenWithImage } from "../types/types"; type UseKenoConfigurationProps = { token: TokenWithImage; query?: { enabled?: boolean; refetchInterval?: number; staleTime?: number; refetchOnWindowFocus?: boolean; }; }; type UseKenoConfigurationResult = { wagmiHook: ReturnType; config: KenoConfiguration | undefined; loading: boolean; error: Error | null; }; /** * Fetches Keno game configuration from the smart contract. * Configuration includes maximum selectable balls, biggest selectable ball number, * and multiplier table for different number combinations. * * @param props.token - Token for which to fetch Keno configuration * @param props.query - Optional query settings (refetchInterval, enabled, etc.) * @returns Keno configuration with loading and error states * @returns config - Keno configuration object with game parameters * @returns loading - Whether the configuration is currently being fetched * @returns error - Error object if configuration fetch failed * * @example * ```ts * const { config, loading, error } = useKenoConfiguration({ * token: degenToken, * query: { enabled: !!token } * }) * if (config) { * console.log('Max selectable balls:', config.maxSelectableBalls) * console.log('Multiplier table:', config.multiplierTable) * } * ``` */ export declare function useKenoConfiguration(props: UseKenoConfigurationProps): UseKenoConfigurationResult; export {};