import type { Kysely } from 'kysely'; import type { StepRecord } from '@pikku/core/virtual-user'; import type { VirtualUserRunOutcome, VirtualUserRunRecord, VirtualUserRunStart, VirtualUserRunStore } from '@pikku/core/virtual-user'; import type { KyselyPikkuDB } from './kysely-tables.js'; export declare class KyselyVirtualUserRunStore implements VirtualUserRunStore { private db; private initialized; constructor(db: Kysely); /** * Creates the table on first use, like the audit sink — the runtime does not * need it, so it arrives with the feature that fills it rather than in every * database. */ init(): Promise; start(run: VirtualUserRunStart): Promise; complete(runId: string, outcome: VirtualUserRunOutcome): Promise; fail(runId: string, error: string): Promise; get(runId: string): Promise; list(options?: { persona?: string; limit?: number; offset?: number; }): Promise; steps(runId: string, options?: { limit?: number; offset?: number; }): Promise; private writeSteps; private toStep; private toRecord; }