import type { ImportConfig, ImportDeps } from '../../../services/deps.js'; import type { ImportJob } from '../../../services/job/types.js'; import type { StoreFixture } from '../../../services/ports/lookup.js'; import { CollectingLogger } from '../../../testing/CollectingLogger.js'; import { FakeClock } from '../../../testing/FakeClock.js'; import { FakeEventBacklog } from '../../../testing/FakeEventBacklog.js'; import { FakeImageFetcher } from '../../../testing/FakeImageFetcher.js'; import { MemoryFileStore } from '../../../testing/MemoryFileStore.js'; import { MemoryJobStore } from '../../../testing/MemoryJobStore.js'; import { MemoryLookup } from '../../../testing/MemoryLookup.js'; import { MemoryPageAddresses } from '../../../testing/MemoryPageAddresses.js'; import { MemoryServices } from '../../../testing/MemoryServices.js'; import { RecordingServices } from '../../../testing/RecordingServices.js'; export interface Harness { deps: ImportDeps; jobs: MemoryJobStore; files: MemoryFileStore; clock: FakeClock; lookup: MemoryLookup; memory: MemoryServices; services: RecordingServices; images: FakeImageFetcher; /** The event queue: empty, until a test fills it. */ backlog: FakeEventBacklog; /** The page addresses that the events lost: none, until a test says so. */ pages: MemoryPageAddresses; logger: CollectingLogger; /** Stages a file and makes a job for it (by default `uploaded`). */ stage(file: string | Buffer, fields?: Partial): ImportJob; } /** Everything a run needs, from the doubles of `testing/`. */ export declare function harness(options?: { store?: StoreFixture; config?: Partial; }): Harness;