import type { AutomationProvenance, AutomationTrigger, DiskAutomation } from "../types.js"; export declare const AUTOMATION_CONFIG_FILENAME = "automation.json"; export declare const AUTOMATION_MAX_NAME_LENGTH = 80; /** Host SAND_ROUTINE_NOTICES — only id the serializer will persist. */ export declare const ROUTINE_NOTICE_IDS: readonly ["github-listener-scope"]; /** * Host parseStoredTrigger allowlist. Do not add `once` until the live host * union includes it — unknown members are dropped (a group [once, slack] * becomes slack). */ export declare const KNOWN_TRIGGER_TYPES: readonly ["cron", "slack", "github", "microsoftTeams", "linear", "sentry", "pagerduty"]; /** Host parseStoredTrigger — accept known member / group / list shapes. */ export declare function parseStoredTrigger(value: unknown): AutomationTrigger | null; export type ParsedAutomationConfig = { name: string; prompt: string; trigger: AutomationTrigger; enabled: boolean; provenance: AutomationProvenance; createdAt: number; lastRunAt: number | null; raisedNotices: string[]; }; /** * Host parseStoredConfig. `fallbackCreatedAt` is file birthtime/mtime when * reading from disk; tests may pass a fixed clock. */ export declare function parseStoredAutomationConfig(raw: string, fallbackCreatedAt: number): ParsedAutomationConfig | null; export declare function listAgentAutomations(agentId: string, sandRoot?: string): DiskAutomation[]; export declare function listAllDiskAutomations(sandRoot?: string): DiskAutomation[]; //# sourceMappingURL=automations.d.ts.map