import { type H3Event } from "h3"; import { type JobFrontmatter } from "../jobs/frontmatter.js"; import type { TriggerFrontmatter } from "./types.js"; export interface AutomationRouteItem { id: string; name: string; path: string; owner: string; appId?: string; orgId?: string; scope: "personal" | "organization"; canUpdate: boolean; triggerType: TriggerFrontmatter["triggerType"]; event?: string; webhookPath?: string; schedule?: string; scheduleDescription?: string; condition?: string; mode: TriggerFrontmatter["mode"]; domain?: string; enabled: boolean; timezone?: string; lastStatus?: TriggerFrontmatter["lastStatus"]; lastRun?: string; lastCheck?: string; lastError?: string; nextRun?: string; createdBy?: string; body: string; model?: string; mcpTools: string[]; runAs?: JobFrontmatter["runAs"]; executionHostId?: string; executionEngine?: string; executionCwd?: string; deliveryPlatform?: string; deliveryDestination?: string; deliveryThreadRef?: string; } interface SetAutomationEnabledInput { owner?: string; path?: string; name?: string; enabled: boolean; } export declare function listAutomationsForOwner(event: H3Event, userEmail: string): Promise; export declare function setAutomationEnabledForOwner(event: H3Event, userEmail: string, input: SetAutomationEnabledInput): Promise; export declare function createAutomationsHandler(): import("h3").EventHandlerWithFetch | { error: any; }>>; export {};