import type { Payload } from '@xyo-network/sdk'; import type { IndexedResultsConfig, PollingConfig } from '../../interfaces/index.js'; /** Async function invoked on each React-hook poll attempt to fetch payload results. */ export type FunctionToPoll = () => Promise; /** Hook that builds a poll callback with retry or continuous strategies for a function to poll. */ export declare const usePollingFunction: (config?: IndexedResultsConfig, pollDivinerConfig?: PollingConfig, functionToPoll?: FunctionToPoll, onResult?: (result: T[] | null) => void) => { poll: () => Promise; }; /** Polls configured diviners with retry strategies and tracks the latest poll results. */ export declare const usePollDiviners: (config?: IndexedResultsConfig, pollDivinerConfig?: PollingConfig, onResult?: (result: T[] | null) => void) => { pollDiviners: () => Promise; pollResults: T[] | null | undefined; }; //# sourceMappingURL=usePollDiviners.d.ts.map