import type { InitialAccountData } from '@aztec/accounts/testing';
import type { AztecNodeService } from '@aztec/aztec-node';
import { AztecAddress } from '@aztec/aztec.js/addresses';
import type { Logger } from '@aztec/aztec.js/log';
import { TxHash } from '@aztec/aztec.js/tx';
import type { RollupCheatCodes } from '@aztec/aztec/testing';
import type { EpochCacheInterface } from '@aztec/epoch-cache';
import type { EmpireSlashingProposerContract, RollupContract, TallySlashingProposerContract } from '@aztec/ethereum/contracts';
import { EpochNumber } from '@aztec/foundation/branded-types';
import { EthAddress } from '@aztec/foundation/eth-address';
import type { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
import type { SlashFactoryContract } from '@aztec/stdlib/l1-contracts';
import { type ProvenTx } from '../test-wallet/utils.js';
export declare const submitComplexTxsTo: (logger: Logger, from: AztecAddress, spamContract: SpamContract, numTxs: number, opts?: {
    callPublic?: boolean | undefined;
}) => Promise<TxHash[]>;
export declare const submitTransactions: (logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData) => Promise<TxHash[]>;
export declare function prepareTransactions(logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData): Promise<ProvenTx[]>;
export declare function awaitProposalExecution(slashingProposer: EmpireSlashingProposerContract | TallySlashingProposerContract, timeoutSeconds: number, logger: Logger): Promise<bigint>;
export declare function awaitCommitteeExists({ rollup, logger }: {
    rollup: RollupContract;
    logger: Logger;
}): Promise<readonly `0x${string}`[]>;
/**
 * Advance epochs until we find one where the target proposer is selected for at least one slot,
 * then stop one epoch before it. This leaves time for the caller to start sequencers before
 * warping to the target epoch, avoiding the race where the target epoch passes before sequencers
 * are ready.
 *
 * Returns the target epoch number so the caller can warp to it after starting sequencers.
 */
export declare function advanceToEpochBeforeProposer({ epochCache, cheatCodes, targetProposer, logger, maxAttempts }: {
    epochCache: EpochCacheInterface;
    cheatCodes: RollupCheatCodes;
    targetProposer: EthAddress;
    logger: Logger;
    maxAttempts?: number;
}): Promise<{
    targetEpoch: EpochNumber;
}>;
/**
 * Advance epochs until we find one where the target proposer is selected for at least one slot.
 * With N validators and M slots per epoch, a specific proposer may not be selected in any given epoch.
 * For example, with 4 validators and 2 slots/epoch, there is about a 44% chance per epoch.
 */
export declare function awaitEpochWithProposer({ epochCache, cheatCodes, targetProposer, logger, maxAttempts }: {
    epochCache: EpochCacheInterface;
    cheatCodes: RollupCheatCodes;
    targetProposer: EthAddress;
    logger: Logger;
    maxAttempts?: number;
}): Promise<void>;
export declare function awaitOffenseDetected({ logger, nodeAdmin, slashingRoundSize, epochDuration, waitUntilOffenseCount, timeoutSeconds }: {
    nodeAdmin: AztecNodeAdmin;
    logger: Logger;
    slashingRoundSize: number;
    epochDuration: number;
    waitUntilOffenseCount?: number;
    timeoutSeconds?: number;
}): Promise<import("@aztec/slasher").Offense[]>;
/**
 * Await the committee to be slashed out of the validator set.
 * Currently assumes that the committee is the same size as the validator set.
 */
export declare function awaitCommitteeKicked({ rollup, cheatCodes, committee, slashFactory, slashingProposer, slashingRoundSize, aztecSlotDuration, aztecEpochDuration, logger, offenseEpoch }: {
    rollup: RollupContract;
    cheatCodes: RollupCheatCodes;
    committee: readonly `0x${string}`[];
    slashFactory: SlashFactoryContract;
    slashingProposer: EmpireSlashingProposerContract | TallySlashingProposerContract | undefined;
    slashingRoundSize: number;
    aztecSlotDuration: number;
    aztecEpochDuration: number;
    logger: Logger;
    offenseEpoch: number;
}): Promise<void>;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZTJlX3AycC9zaGFyZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNsRSxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBR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