import { RawCallResult } from '../providers'; import { RawCall } from '../providers'; import { Falsy } from '../model/types'; /** * A low-level function that makes multiple calls to specific methods of specific contracts and returns values or error if present. * The hook will cause the component to refresh when values change. * * Calls will be combined into a single multicall across all uses of {@link useChainCall}, {@link useChainCalls}, {@link useRawCall} and {@link useRawCalls}. * It is recommended to use {@link useCalls} where applicable instead of this method. * @public * @param calls List of calls, also see {@link RawCall}. Calls need to be in the same order across component renders. * @returns list of multicall calls. See {@link RawCallResult} and {@link useRawCall}. */ export declare function useRawCalls(calls: (RawCall | Falsy)[]): RawCallResult[]; /** * A low-level function that makes a call to a specific method of a specific contract and returns the value or error if present. * The hook will cause the component to refresh whenever a new block is mined and the value is changed. * * Calls will be combined into a single multicall across all uses of {@link useChainCall}, {@link useChainCalls}, {@link useRawCall} and {@link useRawCalls}. * It is recommended to use {@link useCall} where applicable instead of this method. * * @param call a single call, also see {@link RawCall}. * A call can be Falsy, as it is important to keep the same ordering of hooks even if in a given render cycle * and there might be not enough information to perform a call. * @public * @returns result of multicall call. * The hook returns {@link RawCallResult} type. * That is: `undefined` when call didn't return yet or object `{ success: boolean, value: string }` if it did, * `success` - boolean indicating whether call was successful or not, * `value` - encoded result when success is `true` or encoded error message when success is `false`. */ export declare function useRawCall(call: RawCall | Falsy): RawCallResult; //# sourceMappingURL=useRawCalls.d.ts.map