import { DataSource, Repository } from '@n8n/typeorm';
import { AgentCheckpoint } from '../entities/agent-checkpoint.entity';
export declare class AgentCheckpointRepository extends Repository<AgentCheckpoint> {
    constructor(dataSource: DataSource);
    findByRunId(runId: string): Promise<AgentCheckpoint | null>;
    findByRunIdAndAgentId(runId: string, agentId: string): Promise<AgentCheckpoint | null>;
    findActiveForAgent(agentId: string): Promise<AgentCheckpoint[]>;
    claimForResume(runId: string, agentId: string, suspendedState: string, runningState: string): Promise<boolean>;
    cancelSuspended(runId: string, agentId: string, suspendedState: string): Promise<boolean>;
    expireByRunIdAndAgentId(runId: string, agentId: string): Promise<void>;
    markExpired(olderThan: Date): Promise<number>;
}
