import { EthqlContext } from '@ethql/base'; import { GraphQLResolveInfo } from 'graphql'; import { EthqlAccount, EthqlBlock, EthqlTransaction } from '../model'; declare type TransactionFilter = { filter: { withInput?: boolean; withLogs?: boolean; contractCreation?: boolean; }; }; declare type TransactionsInvolvingArgs = { participants: string[]; } & TransactionFilter; declare type TransactionsRolesArgs = { from: string; to: string; } & TransactionFilter; /** * Gets the miner account. */ declare function miner(obj: EthqlBlock, {}: {}, {}: EthqlContext, info: GraphQLResolveInfo): Promise; /** * Gets the parent block. */ declare function parent(obj: EthqlBlock, args: any, { services }: EthqlContext, info: GraphQLResolveInfo): Promise; /** * Gets all transactions from this block. */ declare function transactions(obj: EthqlBlock, args: TransactionFilter): EthqlTransaction[]; /** * Gets the transaction at the specified index. */ declare function transactionAt(obj: EthqlBlock, { index }: { index: any; }, { services }: EthqlContext): Promise; /** * Gets all transactions from the block involving any of the specified participants. */ declare function transactionsInvolving(obj: EthqlBlock, args: TransactionsInvolvingArgs): EthqlTransaction[]; /** * Gets transactions whose from and/or to addresses match the provided ones. * The operator is an OR (i.e. any of the participants, or both, match). */ declare function transactionsRoles(obj: EthqlBlock, args: TransactionsRolesArgs): EthqlTransaction[]; declare const _default: { Block: { miner: typeof miner; parent: typeof parent; transactions: typeof transactions; transactionAt: typeof transactionAt; transactionsInvolving: typeof transactionsInvolving; transactionsRoles: typeof transactionsRoles; }; }; export default _default; //# sourceMappingURL=block.d.ts.map