import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
export interface ModuleManagerInterface extends Interface {
    getFunction(nameOrSignature: "disableModule" | "enableModule" | "execTransactionFromModule" | "execTransactionFromModuleReturnData" | "getModulesPaginated" | "isModuleEnabled"): FunctionFragment;
    getEvent(nameOrSignatureOrTopic: "DisabledModule" | "EnabledModule" | "ExecutionFromModuleFailure" | "ExecutionFromModuleSuccess"): EventFragment;
    encodeFunctionData(functionFragment: "disableModule", values: [AddressLike, AddressLike]): string;
    encodeFunctionData(functionFragment: "enableModule", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "execTransactionFromModule", values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "execTransactionFromModuleReturnData", values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "getModulesPaginated", values: [AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "isModuleEnabled", values: [AddressLike]): string;
    decodeFunctionResult(functionFragment: "disableModule", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "enableModule", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "execTransactionFromModule", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "execTransactionFromModuleReturnData", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getModulesPaginated", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "isModuleEnabled", data: BytesLike): Result;
}
export declare namespace DisabledModuleEvent {
    type InputTuple = [module: AddressLike];
    type OutputTuple = [module: string];
    interface OutputObject {
        module: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace EnabledModuleEvent {
    type InputTuple = [module: AddressLike];
    type OutputTuple = [module: string];
    interface OutputObject {
        module: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ExecutionFromModuleFailureEvent {
    type InputTuple = [module: AddressLike];
    type OutputTuple = [module: string];
    interface OutputObject {
        module: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ExecutionFromModuleSuccessEvent {
    type InputTuple = [module: AddressLike];
    type OutputTuple = [module: string];
    interface OutputObject {
        module: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export interface ModuleManager extends BaseContract {
    connect(runner?: ContractRunner | null): ModuleManager;
    waitForDeployment(): Promise<this>;
    interface: ModuleManagerInterface;
    queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
    listeners(eventName?: string): Promise<Array<Listener>>;
    removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
    disableModule: TypedContractMethod<[
        prevModule: AddressLike,
        module: AddressLike
    ], [
        void
    ], "nonpayable">;
    enableModule: TypedContractMethod<[
        module: AddressLike
    ], [
        void
    ], "nonpayable">;
    execTransactionFromModule: TypedContractMethod<[
        to: AddressLike,
        value: BigNumberish,
        data: BytesLike,
        operation: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    execTransactionFromModuleReturnData: TypedContractMethod<[
        to: AddressLike,
        value: BigNumberish,
        data: BytesLike,
        operation: BigNumberish
    ], [
        [boolean, string] & {
            success: boolean;
            returnData: string;
        }
    ], "nonpayable">;
    getModulesPaginated: TypedContractMethod<[
        start: AddressLike,
        pageSize: BigNumberish
    ], [
        [string[], string] & {
            array: string[];
            next: string;
        }
    ], "view">;
    isModuleEnabled: TypedContractMethod<[
        module: AddressLike
    ], [
        boolean
    ], "view">;
    getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
    getFunction(nameOrSignature: "disableModule"): TypedContractMethod<[
        prevModule: AddressLike,
        module: AddressLike
    ], [
        void
    ], "nonpayable">;
    getFunction(nameOrSignature: "enableModule"): TypedContractMethod<[module: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature: "execTransactionFromModule"): TypedContractMethod<[
        to: AddressLike,
        value: BigNumberish,
        data: BytesLike,
        operation: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "execTransactionFromModuleReturnData"): TypedContractMethod<[
        to: AddressLike,
        value: BigNumberish,
        data: BytesLike,
        operation: BigNumberish
    ], [
        [boolean, string] & {
            success: boolean;
            returnData: string;
        }
    ], "nonpayable">;
    getFunction(nameOrSignature: "getModulesPaginated"): TypedContractMethod<[
        start: AddressLike,
        pageSize: BigNumberish
    ], [
        [string[], string] & {
            array: string[];
            next: string;
        }
    ], "view">;
    getFunction(nameOrSignature: "isModuleEnabled"): TypedContractMethod<[module: AddressLike], [boolean], "view">;
    getEvent(key: "DisabledModule"): TypedContractEvent<DisabledModuleEvent.InputTuple, DisabledModuleEvent.OutputTuple, DisabledModuleEvent.OutputObject>;
    getEvent(key: "EnabledModule"): TypedContractEvent<EnabledModuleEvent.InputTuple, EnabledModuleEvent.OutputTuple, EnabledModuleEvent.OutputObject>;
    getEvent(key: "ExecutionFromModuleFailure"): TypedContractEvent<ExecutionFromModuleFailureEvent.InputTuple, ExecutionFromModuleFailureEvent.OutputTuple, ExecutionFromModuleFailureEvent.OutputObject>;
    getEvent(key: "ExecutionFromModuleSuccess"): TypedContractEvent<ExecutionFromModuleSuccessEvent.InputTuple, ExecutionFromModuleSuccessEvent.OutputTuple, ExecutionFromModuleSuccessEvent.OutputObject>;
    filters: {
        "DisabledModule(address)": TypedContractEvent<DisabledModuleEvent.InputTuple, DisabledModuleEvent.OutputTuple, DisabledModuleEvent.OutputObject>;
        DisabledModule: TypedContractEvent<DisabledModuleEvent.InputTuple, DisabledModuleEvent.OutputTuple, DisabledModuleEvent.OutputObject>;
        "EnabledModule(address)": TypedContractEvent<EnabledModuleEvent.InputTuple, EnabledModuleEvent.OutputTuple, EnabledModuleEvent.OutputObject>;
        EnabledModule: TypedContractEvent<EnabledModuleEvent.InputTuple, EnabledModuleEvent.OutputTuple, EnabledModuleEvent.OutputObject>;
        "ExecutionFromModuleFailure(address)": TypedContractEvent<ExecutionFromModuleFailureEvent.InputTuple, ExecutionFromModuleFailureEvent.OutputTuple, ExecutionFromModuleFailureEvent.OutputObject>;
        ExecutionFromModuleFailure: TypedContractEvent<ExecutionFromModuleFailureEvent.InputTuple, ExecutionFromModuleFailureEvent.OutputTuple, ExecutionFromModuleFailureEvent.OutputObject>;
        "ExecutionFromModuleSuccess(address)": TypedContractEvent<ExecutionFromModuleSuccessEvent.InputTuple, ExecutionFromModuleSuccessEvent.OutputTuple, ExecutionFromModuleSuccessEvent.OutputObject>;
        ExecutionFromModuleSuccess: TypedContractEvent<ExecutionFromModuleSuccessEvent.InputTuple, ExecutionFromModuleSuccessEvent.OutputTuple, ExecutionFromModuleSuccessEvent.OutputObject>;
    };
}
