import type { Kysely } from 'kysely'; import type { KyselyPikkuDB } from './kysely-tables.js'; import type { AgentRunState } from '@pikku/core/agent'; import type { AgentRunScore } from '@pikku/core/agent-scorer'; import type { AgentRunStateService, CreateRunInput, SaveScoreInput } from '@pikku/core/services'; import type { PendingApproval } from '@pikku/core/agent'; export declare class KyselyAgentRunStateService implements AgentRunStateService { private db; private initialized; constructor(db: Kysely); init(): Promise; createRun(run: CreateRunInput): Promise; updateRun(runId: string, updates: Partial): Promise; getRun(runId: string): Promise; getRunsByThread(threadId: string): Promise; resolveApproval(toolCallId: string, status: 'approved' | 'denied'): Promise; findRunByToolCallId(toolCallId: string): Promise<{ run: AgentRunState; approval: PendingApproval; } | null>; saveScore(score: SaveScoreInput): Promise; getScores(runId: string): Promise; private toRunState; }