import { TwirpContext, TwirpServer } from 'twirp-ts'; import { TriggerEvent } from '../../triggers/v1alpha/triggers.js'; import { TriggerResponse, TriggerFanOutResponse, TriggerInvocation } from './triggers.js'; import { Empty } from '../../../google/protobuf/empty.js'; import { InstallationInfo } from '../../dev_portal/installation/installation.js'; export interface TriggersTwirp { OnTrigger(ctx: T, request: TriggerEvent): Promise; OnFanOut(ctx: T, request: TriggerEvent): Promise; OnInvoke(ctx: T, request: TriggerInvocation): Promise; OnInstall(ctx: T, request: InstallationInfo): Promise; OnUninstall(ctx: T, request: InstallationInfo): Promise; OnInstallChanged(ctx: T, request: InstallationInfo): Promise; } export declare enum TriggersMethod { OnTrigger = "OnTrigger", OnFanOut = "OnFanOut", OnInvoke = "OnInvoke", OnInstall = "OnInstall", OnUninstall = "OnUninstall", OnInstallChanged = "OnInstallChanged" } export declare const TriggersMethodList: TriggersMethod[]; export declare function createTriggersServer(service: TriggersTwirp): TwirpServer>>, T>; //# sourceMappingURL=triggers.twirp.d.ts.map