/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
/**
 * List all automation configs for an agent, ordered by creation time.
 */
export declare function listAutomations(agentId: string): Promise<{
    agentId: string;
    name: string;
    schedule: string;
    message: string;
    enabled: boolean;
    createdAt: Date;
    updatedAt: Date;
}[]>;
/**
 * Get a single automation config by agent + name. Returns null if not found.
 */
export declare function getAutomation(agentId: string, name: string): Promise<{
    agentId: string;
    name: string;
    schedule: string;
    message: string;
    enabled: boolean;
    createdAt: Date;
    updatedAt: Date;
}>;
/**
 * Create or update an automation config.
 */
export declare function upsertAutomation(agentId: string, name: string, data: {
    schedule: string;
    message: string;
    enabled?: boolean;
}): Promise<void>;
/**
 * Enable or disable an automation.
 */
export declare function setAutomationEnabled(agentId: string, name: string, enabled: boolean): Promise<void>;
/**
 * Record a new automation run. Returns the inserted run ID.
 */
export declare function recordAutomationRun(agentId: string, name: string, sessionId: string | null, status: string, error?: string): Promise<number>;
/**
 * Update an existing run to mark it completed or failed.
 */
export declare function completeAutomationRun(runId: number, status: string, opts?: {
    sessionId?: string;
    error?: string;
}): Promise<void>;
/**
 * List recent runs for an automation, ordered newest-first.
 */
export declare function listAutomationRuns(agentId: string, name: string, limit?: number): Promise<{
    id: number;
    agentId: string;
    name: string;
    sessionId: string | null;
    status: string;
    error: string | null;
    startedAt: Date;
    completedAt: Date | null;
}[]>;
