import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from 'ethers';
import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi';
import type { Listener, Provider } from '@ethersproject/providers';
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from './common';
export declare namespace MerkleOrchard {
    type ClaimStruct = {
        distributionId: PromiseOrValue<BigNumberish>;
        balance: PromiseOrValue<BigNumberish>;
        distributor: PromiseOrValue<string>;
        tokenIndex: PromiseOrValue<BigNumberish>;
        merkleProof: PromiseOrValue<BytesLike>[];
    };
    type ClaimStructOutput = [BigNumber, BigNumber, string, BigNumber, string[]] & {
        distributionId: BigNumber;
        balance: BigNumber;
        distributor: string;
        tokenIndex: BigNumber;
        merkleProof: string[];
    };
}
export interface BalancerMerkleOrchardInterface extends utils.Interface {
    functions: {
        'claimDistributions(address,(uint256,uint256,address,uint256,bytes32[])[],address[])': FunctionFragment;
        'claimDistributionsToInternalBalance(address,(uint256,uint256,address,uint256,bytes32[])[],address[])': FunctionFragment;
        'claimDistributionsWithCallback(address,(uint256,uint256,address,uint256,bytes32[])[],address[],address,bytes)': FunctionFragment;
        'createDistribution(address,bytes32,uint256,uint256)': FunctionFragment;
        'getDistributionRoot(address,address,uint256)': FunctionFragment;
        'getNextDistributionId(address,address)': FunctionFragment;
        'getRemainingBalance(address,address)': FunctionFragment;
        'getVault()': FunctionFragment;
        'isClaimed(address,address,uint256,address)': FunctionFragment;
        'verifyClaim(address,address,uint256,address,uint256,bytes32[])': FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: 'claimDistributions' | 'claimDistributionsToInternalBalance' | 'claimDistributionsWithCallback' | 'createDistribution' | 'getDistributionRoot' | 'getNextDistributionId' | 'getRemainingBalance' | 'getVault' | 'isClaimed' | 'verifyClaim'): FunctionFragment;
    encodeFunctionData(functionFragment: 'claimDistributions', values: [PromiseOrValue<string>, MerkleOrchard.ClaimStruct[], PromiseOrValue<string>[]]): string;
    encodeFunctionData(functionFragment: 'claimDistributionsToInternalBalance', values: [PromiseOrValue<string>, MerkleOrchard.ClaimStruct[], PromiseOrValue<string>[]]): string;
    encodeFunctionData(functionFragment: 'claimDistributionsWithCallback', values: [
        PromiseOrValue<string>,
        MerkleOrchard.ClaimStruct[],
        PromiseOrValue<string>[],
        PromiseOrValue<string>,
        PromiseOrValue<BytesLike>
    ]): string;
    encodeFunctionData(functionFragment: 'createDistribution', values: [
        PromiseOrValue<string>,
        PromiseOrValue<BytesLike>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: 'getDistributionRoot', values: [PromiseOrValue<string>, PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: 'getNextDistributionId', values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'getRemainingBalance', values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'getVault', values?: undefined): string;
    encodeFunctionData(functionFragment: 'isClaimed', values: [PromiseOrValue<string>, PromiseOrValue<string>, PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: 'verifyClaim', values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BytesLike>[]
    ]): string;
    decodeFunctionResult(functionFragment: 'claimDistributions', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'claimDistributionsToInternalBalance', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'claimDistributionsWithCallback', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'createDistribution', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getDistributionRoot', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getNextDistributionId', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getRemainingBalance', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'getVault', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'isClaimed', data: BytesLike): Result;
    decodeFunctionResult(functionFragment: 'verifyClaim', data: BytesLike): Result;
    events: {
        'DistributionAdded(address,address,uint256,bytes32,uint256)': EventFragment;
        'DistributionClaimed(address,address,uint256,address,address,uint256)': EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: 'DistributionAdded'): EventFragment;
    getEvent(nameOrSignatureOrTopic: 'DistributionClaimed'): EventFragment;
}
export interface DistributionAddedEventObject {
    distributor: string;
    token: string;
    distributionId: BigNumber;
    merkleRoot: string;
    amount: BigNumber;
}
export declare type DistributionAddedEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string,
    BigNumber
], DistributionAddedEventObject>;
export declare type DistributionAddedEventFilter = TypedEventFilter<DistributionAddedEvent>;
export interface DistributionClaimedEventObject {
    distributor: string;
    token: string;
    distributionId: BigNumber;
    claimer: string;
    recipient: string;
    amount: BigNumber;
}
export declare type DistributionClaimedEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string,
    string,
    BigNumber
], DistributionClaimedEventObject>;
export declare type DistributionClaimedEventFilter = TypedEventFilter<DistributionClaimedEvent>;
export interface BalancerMerkleOrchard extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: BalancerMerkleOrchardInterface;
    queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
    listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
    listeners(eventName?: string): Array<Listener>;
    removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
    removeAllListeners(eventName?: string): this;
    off: OnEvent<this>;
    on: OnEvent<this>;
    once: OnEvent<this>;
    removeListener: OnEvent<this>;
    functions: {
        claimDistributions(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        claimDistributionsToInternalBalance(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        claimDistributionsWithCallback(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], callbackContract: PromiseOrValue<string>, callbackData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        createDistribution(token: PromiseOrValue<string>, merkleRoot: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, distributionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        getDistributionRoot(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string]>;
        getNextDistributionId(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getRemainingBalance(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getVault(overrides?: CallOverrides): Promise<[string]>;
        isClaimed(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
        verifyClaim(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, claimedBalance: PromiseOrValue<BigNumberish>, merkleProof: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<[boolean]>;
    };
    claimDistributions(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    claimDistributionsToInternalBalance(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    claimDistributionsWithCallback(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], callbackContract: PromiseOrValue<string>, callbackData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    createDistribution(token: PromiseOrValue<string>, merkleRoot: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, distributionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    getDistributionRoot(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
    getNextDistributionId(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    getRemainingBalance(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    getVault(overrides?: CallOverrides): Promise<string>;
    isClaimed(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
    verifyClaim(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, claimedBalance: PromiseOrValue<BigNumberish>, merkleProof: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<boolean>;
    callStatic: {
        claimDistributions(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>;
        claimDistributionsToInternalBalance(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>;
        claimDistributionsWithCallback(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], callbackContract: PromiseOrValue<string>, callbackData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
        createDistribution(token: PromiseOrValue<string>, merkleRoot: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        getDistributionRoot(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
        getNextDistributionId(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getRemainingBalance(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getVault(overrides?: CallOverrides): Promise<string>;
        isClaimed(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
        verifyClaim(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, claimedBalance: PromiseOrValue<BigNumberish>, merkleProof: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<boolean>;
    };
    filters: {
        'DistributionAdded(address,address,uint256,bytes32,uint256)'(distributor?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, distributionId?: null, merkleRoot?: null, amount?: null): DistributionAddedEventFilter;
        DistributionAdded(distributor?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, distributionId?: null, merkleRoot?: null, amount?: null): DistributionAddedEventFilter;
        'DistributionClaimed(address,address,uint256,address,address,uint256)'(distributor?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, distributionId?: null, claimer?: PromiseOrValue<string> | null, recipient?: null, amount?: null): DistributionClaimedEventFilter;
        DistributionClaimed(distributor?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, distributionId?: null, claimer?: PromiseOrValue<string> | null, recipient?: null, amount?: null): DistributionClaimedEventFilter;
    };
    estimateGas: {
        claimDistributions(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        claimDistributionsToInternalBalance(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        claimDistributionsWithCallback(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], callbackContract: PromiseOrValue<string>, callbackData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        createDistribution(token: PromiseOrValue<string>, merkleRoot: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, distributionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        getDistributionRoot(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        getNextDistributionId(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getRemainingBalance(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getVault(overrides?: CallOverrides): Promise<BigNumber>;
        isClaimed(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        verifyClaim(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, claimedBalance: PromiseOrValue<BigNumberish>, merkleProof: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        claimDistributions(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        claimDistributionsToInternalBalance(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        claimDistributionsWithCallback(claimer: PromiseOrValue<string>, claims: MerkleOrchard.ClaimStruct[], tokens: PromiseOrValue<string>[], callbackContract: PromiseOrValue<string>, callbackData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        createDistribution(token: PromiseOrValue<string>, merkleRoot: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, distributionId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        getDistributionRoot(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getNextDistributionId(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getRemainingBalance(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getVault(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isClaimed(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        verifyClaim(token: PromiseOrValue<string>, distributor: PromiseOrValue<string>, distributionId: PromiseOrValue<BigNumberish>, claimer: PromiseOrValue<string>, claimedBalance: PromiseOrValue<BigNumberish>, merkleProof: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
