import type { Hex } from '@metamask/utils'; import type { PublishHook } from '../types.js'; export type CollectPublishHookResult = { signedTransactions: Hex[]; }; /** * Custom publish logic that collects multiple signed transactions until a specific number is reached. * Used by batch transactions to publish multiple transactions at once. */ export declare class CollectPublishHook { #private; constructor(transactionCount: number); /** * @returns The publish hook function to be passed to `addTransaction`. */ getHook(): PublishHook; /** * @returns A promise that resolves when all transactions are signed. */ ready(): Promise; /** * Resolve all publish promises with the provided transaction hashes. * * @param transactionHashes - The transaction hashes to pass to the original publish promises. */ success(transactionHashes: Hex[]): void; error(error: unknown): void; } //# sourceMappingURL=CollectPublishHook.d.ts.map