import type { SqliteDatabase } from '../db/adapter.js'; import { type JsonObject, type JsonValue, type Redaction, type RunRecord } from './types.js'; export interface LedgerRunView extends Omit { title: string | null; metadata: JsonObject; untrusted: true; } export interface LedgerRunsPage { items: LedgerRunView[]; nextCursor: string | null; } export interface ReadLedgerRunInput { workspace: string; runId: string; } export interface LedgerEventView { eventId: string; runId: string; sequence: number; sourceEventId: string | null; sourceSequence: number | null; eventType: string; sourceType: string | null; actor: string; outcome: string | null; occurredAt: string | null; ingestedAt: string; payload: JsonValue; redaction: Redaction[]; previousHash: string; eventHash: string; untrusted: true; } export interface LedgerEventsPage { items: LedgerEventView[]; nextCursor: number | null; } export declare function listLedgerEvents(database: SqliteDatabase, input: unknown): LedgerEventsPage; export declare function readLedgerRun(database: SqliteDatabase, input: unknown): LedgerRunView; export declare function listLedgerRuns(database: SqliteDatabase, input: unknown): LedgerRunsPage; //# sourceMappingURL=query.d.ts.map