/**
 * Drizzle ORM schema for the CLEO Agent dimension.
 *
 * Defines the `agent_instances` table that tracks live agent processes,
 * their health (heartbeat protocol), capacity, and error history.
 *
 * This is the DB-backed runtime registry -- distinct from the file-based
 * skill agent registry in `skills/agents/registry.ts` which tracks
 * installed agent *definitions*. This table tracks running agent *instances*.
 *
 * @module agents/agent-schema
 */
/** Agent instance status values matching DB CHECK constraint. */
export declare const AGENT_INSTANCE_STATUSES: readonly ["starting", "active", "idle", "error", "crashed", "stopped"];
/** Agent type values for classification. */
export declare const AGENT_TYPES: readonly ["orchestrator", "executor", "researcher", "architect", "validator", "documentor", "custom"];
export declare const agentInstances: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
    name: "agent_instances";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        agentType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string enum";
            data: "custom" | "orchestrator" | "executor" | "researcher" | "architect" | "validator" | "documentor";
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["orchestrator", "executor", "researcher", "architect", "validator", "documentor", "custom"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string enum";
            data: "error" | "starting" | "active" | "idle" | "crashed" | "stopped";
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["starting", "active", "idle", "error", "crashed", "stopped"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        sessionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        taskId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        lastHeartbeat: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        stoppedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        errorCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "number int53";
            data: number;
            driverParam: number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        totalTasksCompleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "number int53";
            data: number;
            driverParam: number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        capacity: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        metadataJson: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        parentAgentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_instances";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
    };
    dialect: "sqlite";
}>;
export declare const agentErrorLog: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
    name: "agent_error_log";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "number int53";
            data: number;
            driverParam: number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        agentId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        errorType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "string enum";
            data: "retriable" | "permanent" | "unknown";
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["retriable", "permanent", "unknown"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        message: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        stack: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        occurredAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "string";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
        resolved: import("drizzle-orm/sqlite-core").SQLiteColumn<{
            name: string;
            tableName: "agent_error_log";
            dataType: "boolean";
            data: boolean;
            driverParam: number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}>;
    };
    dialect: "sqlite";
}>;
export type AgentInstanceRow = typeof agentInstances.$inferSelect;
export type NewAgentInstanceRow = typeof agentInstances.$inferInsert;
export type AgentErrorLogRow = typeof agentErrorLog.$inferSelect;
export type NewAgentErrorLogRow = typeof agentErrorLog.$inferInsert;
export type AgentInstanceStatus = (typeof AGENT_INSTANCE_STATUSES)[number];
export type AgentType = (typeof AGENT_TYPES)[number];
export type AgentErrorType = 'retriable' | 'permanent' | 'unknown';
//# sourceMappingURL=agent-schema.d.ts.map