import { type ServerEnvironment, type ToolCallResult } from './dispatch.mts'; import { type FakeBlackboard, type FakeOptions } from './fake-blackboard.test-helpers.mts'; import { type RepoFixture } from './git-fixture.test-helpers.mts'; import type { GhRunner } from './pr-gh.mts'; import type { PolicySpawner } from './policy-spawn.mts'; import type { SnapshotRegistry } from './snapshot-registry.mts'; /** A fresh pair of real repositories for every test. */ export declare function useRepoFixture(): () => RepoFixture; export declare function outboxPath(worktree: string): string; export type Harness = { fake: FakeBlackboard; call: (name: string, args?: unknown) => Promise; }; /** Calls tools against a repository fixture with the blackboard client faked. */ export declare function harness(fixture: RepoFixture, options?: FakeOptions & { env?: NodeJS.ProcessEnv; launchRoot?: string | undefined; spawnPolicy?: PolicySpawner; runGit?: ServerEnvironment['runGit']; runGh?: GhRunner; device?: () => { user: string; host: string; }; snapshots?: SnapshotRegistry; clientName?: () => string | undefined; }): Harness; export declare function textOf(result: ToolCallResult): string; export declare function jsonOf(result: ToolCallResult): Record; export declare const JOURNAL_ARGS: { sessionId: string; parentSessionId: null; agent: string; version: string; mode: string; markdown: string; sourceEventId: string; workOutcome: string; repositories: string[]; feedbackCoverage: { status: string; sources: string[]; droppedCount: number; }; }; /** The time `useFixedClock` pins, which is the timestamp the server mints for a first append. */ export declare const NOW = "2026-01-01T00:00:00.000Z"; /** Pins `Date` only, so timers and child processes keep running. */ export declare function useFixedClock(): { advance: (milliseconds: number) => void; };