histoire
Version:
A fast story book powered by Vite
10 lines • 822 B
TypeScript
import type { ScreenshotSetupAttempt, ScreenshotSetupSnapshot } from '@histoire/shared';
/** Returns an empty detached snapshot for one new owner. */
export declare function initialSetupSnapshot(): ScreenshotSetupSnapshot;
/** Copies public nested values so observers cannot mutate cached state. */
export declare function detachSetupSnapshot(value: ScreenshotSetupSnapshot): ScreenshotSetupSnapshot;
/** Copies a bounded attempt list without repeating a renderer. */
export declare function copySetupAttempts(attempts: readonly ScreenshotSetupAttempt[]): ScreenshotSetupAttempt[];
/** Adds one deterministic source result while retaining the four-candidate bound. */
export declare function addSetupAttempt(attempts: ScreenshotSetupAttempt[], attempt: ScreenshotSetupAttempt): void;
//# sourceMappingURL=snapshot.d.ts.map