import type { Publication, Registry, StagedPackage } from "./registry.js"; /** A test registry whose published versions and publish calls are easy to set and read. */ export declare class FakeRegistry implements Registry { /** Entries read `name@version`. */ readonly has: Set; readonly publishes: string[]; /** Directories whose publish the registry took already, answering a retry with `already`. */ readonly accepted: Set; /** Name to the version installs get, as `latest` reads on npm. */ readonly latest: Map; fails?: string; /** Makes `publish` stage, reporting this for each directory. */ staging?: (dir: string) => StagedPackage; /** Makes the registry scan what it accepts, as npm does. */ scanning?: boolean; /** Names `trust` was asked for, in order. */ readonly trusts: string[]; /** Names whose `trust` throws. */ readonly untrustable: Set; /** Set once `trusted()` is asked for: publishes then go out unstaged, as CI's do. */ viaTrust: boolean; get staged(): boolean; trusted(): Registry; get scans(): boolean; published(name: string, version: string): Promise; deployed(name: string): Promise; publish(dir: string): Promise; trust(name: string): Promise; page(name: string, version: string): string; }