import type { LogEntry, LogQuery } from "@skaile/workspaces/types"; export interface LocalTailOptions { dbPath: string; query: Omit & { sessionId: string; }; /** Poll interval in milliseconds (default 500). */ intervalMs?: number; /** Called once per new entry, in chronological order. */ onEntry: (entry: LogEntry) => void; /** Aborts the loop cleanly. */ signal?: AbortSignal; /** * Initial cursor: only entries with `id > startAfterId` are streamed. * Used to skip rows already printed by the history snapshot before the * tail loop took over. */ startAfterId?: string; } /** * Live-poll a SQLite log DB and stream new entries to `onEntry`. Re-opens the * db read-only on every iteration (cheap; survives WAL rotation, hibernation, * and stale connections). Returns when `signal` is aborted. */ export declare function localTail(opts: LocalTailOptions): Promise; //# sourceMappingURL=local-tail.d.ts.map