import type { AgentTrigger, TriggerKind, RepositoryRef } from "./types.js"; export interface PlatformTriggerAdapterOptions { clock?: () => Date; idFactory?: (prefix: string) => string; } export interface PlatformTriggerAdapter { readonly kind: TriggerKind; toTrigger(input: TInput): AgentTrigger; } export interface CliTriggerInput { id?: string; command?: string; argv?: string[]; flags?: Record; cwd?: string; actor?: string; source?: string; firedAt?: string | Date; correlationId?: string; payload?: Record; } export interface ScheduledTriggerInput { id?: string; scheduleId: string; scheduledFor?: string | Date; timezone?: string; actor?: string; source?: string; firedAt?: string | Date; correlationId?: string; payload?: Record; } export interface GitHubWebhookTriggerInput { id?: string; event: string; payload: Record; deliveryId?: string; signature256?: string; secret?: string; rawBody?: string | Uint8Array; actor?: string; source?: string; firedAt?: string | Date; correlationId?: string; } export interface ChatCommandTriggerInput { id?: string; provider: string; text: string; command?: string; channelId?: string; channelName?: string; userId?: string; username?: string; threadId?: string; messageId?: string; actor?: string; source?: string; firedAt?: string | Date; correlationId?: string; payload?: Record; } export interface DependencyAlertTriggerInput { id?: string; provider: string; packageName: string; ecosystem?: string; severity?: "low" | "moderate" | "medium" | "high" | "critical" | string; advisoryId?: string; cve?: string; affectedRange?: string; fixedVersion?: string; manifestPath?: string; repository?: RepositoryRef; url?: string; actor?: string; source?: string; firedAt?: string | Date; correlationId?: string; payload?: Record; } export declare function verifyGitHubWebhookSignature(input: { secret: string; rawBody: string | Uint8Array; signature256: string; }): void; export declare function createCliTrigger(input?: CliTriggerInput, options?: PlatformTriggerAdapterOptions): AgentTrigger; export declare function createScheduledTrigger(input: ScheduledTriggerInput, options?: PlatformTriggerAdapterOptions): AgentTrigger; export declare function createGitHubWebhookTrigger(input: GitHubWebhookTriggerInput, options?: PlatformTriggerAdapterOptions): AgentTrigger; export declare function createChatCommandTrigger(input: ChatCommandTriggerInput, options?: PlatformTriggerAdapterOptions): AgentTrigger; export declare function createDependencyAlertTrigger(input: DependencyAlertTriggerInput, options?: PlatformTriggerAdapterOptions): AgentTrigger; export declare class CliTriggerAdapter implements PlatformTriggerAdapter { private readonly options; readonly kind: "manual"; constructor(options?: PlatformTriggerAdapterOptions); toTrigger(input: CliTriggerInput): AgentTrigger; } export declare class ScheduledTriggerAdapter implements PlatformTriggerAdapter { private readonly options; readonly kind: "schedule"; constructor(options?: PlatformTriggerAdapterOptions); toTrigger(input: ScheduledTriggerInput): AgentTrigger; } export declare class GitHubWebhookTriggerAdapter implements PlatformTriggerAdapter { private readonly options; readonly kind: "webhook"; constructor(options?: PlatformTriggerAdapterOptions); toTrigger(input: GitHubWebhookTriggerInput): AgentTrigger; } export declare class ChatCommandTriggerAdapter implements PlatformTriggerAdapter { private readonly options; readonly kind: "chat"; constructor(options?: PlatformTriggerAdapterOptions); toTrigger(input: ChatCommandTriggerInput): AgentTrigger; } export declare class DependencyAlertTriggerAdapter implements PlatformTriggerAdapter { private readonly options; readonly kind: "dependency"; constructor(options?: PlatformTriggerAdapterOptions); toTrigger(input: DependencyAlertTriggerInput): AgentTrigger; } //# sourceMappingURL=triggers.d.ts.map