import React, { Dispatch } from "react";
import { ITrigger } from "../../../types/interface";
import { IUseModal } from "@janda-com/front";
import { ISmsConfig } from "../../../app";
import { IChainProp as IModalChainProp, ITriggerModalInfo } from "./TriggerModal";
import { TriggerUpsertInput, triggerUpdate, triggerCreate, myManager_MyManager_data_senders } from "../../../types/api";
import { ExecutionResult } from "graphql";
export interface IChainProp extends IModalChainProp {
    modalHook: IUseModal<ITriggerModalInfo>;
}
export declare type TUpdateFn = (id: string, input: TriggerUpsertInput) => Promise<ExecutionResult<triggerUpdate>>;
export declare type TCreateFn = (input: TriggerUpsertInput) => Promise<ExecutionResult<triggerCreate>>;
export declare type ISet<T> = Dispatch<React.SetStateAction<T>>;
interface Iprops extends IChainProp {
    config: ISmsConfig;
    triggers: ITrigger[];
    totalLoading?: boolean;
    updateFn: TUpdateFn;
    createFn: TCreateFn;
    senders: myManager_MyManager_data_senders[];
}
declare const TriggerSetting: React.FC<Iprops>;
export default TriggerSetting;
