import { Capi } from '@tencent-sdk/capi'; import { RegionType, CapiCredentials, ApiServiceType } from '../interface'; import { TriggerInputs, TriggerInputsParams, CreateTriggerReq, TriggerResponse } from './interface'; import Scf from '../scf'; import { TriggerManager } from './manager'; declare type Qualifier = string; export default abstract class BaseTrigger

{ region: RegionType; credentials: CapiCredentials; capi: Capi; constructor(options?: { credentials?: CapiCredentials; region?: RegionType; serviceType: ApiServiceType; }); abstract getKey(triggerType: CreateTriggerReq): Promise | string; abstract formatInputs({ region, inputs }: { region: RegionType; inputs: TriggerInputs

}): | { triggerKey: string; triggerInputs: P; } | Promise<{ triggerKey: string; triggerInputs: P; }>; /** Get Trigger List */ getTriggerList({ functionName, namespace, qualifier, }: { functionName?: string; namespace: string; qualifier: Qualifier; }): Promise; abstract create({ scf, region, inputs, }: { scf: Scf | TriggerManager; region: string; inputs: TriggerInputs

; }): Promise; /** delete scf trigger */ abstract delete({ scf, region, inputs, }: { scf: Scf | TriggerManager; region: RegionType; inputs: TriggerInputs

; }): Promise< | boolean | { requestId: string; success: boolean; } >; /** delete scf trigger */ abstract delete({ scf, region, inputs, }: { scf: Scf | TriggerManager; region: RegionType; inputs: TriggerInputs

; }): Promise< | boolean | { requestId: string; success: boolean; } >; abstract update( { scf, region, inputs, }: { scf: Scf | TriggerManager; region: string; inputs: TriggerInputs

; }, triggerName?: string | undefined, ): Promise; abstract getTrigger({ scf, region, inputs, }: { scf: Scf | TriggerManager; region: string; inputs: TriggerInputs

; }): Promise; } export declare const TRIGGER_STATUS_MAP: { OPEN: string; CLOSE: string; 1: string; 0: string; }; export declare const CAN_UPDATE_TRIGGER: string[]; export declare const OPTIMIZE_UPDATE_LOGIC_TRIGGERS: string[]; export {};