//#region src/browser/key.d.ts declare function toPosixPath(p: string): string; /** Makes a story/test name safe to use as a file name on every platform. */ declare function sanitizeStoryName(name: string): string; type DeriveKeyInput = { /** Absolute path of the stories file (the Vitest test file). */ filePath: string; /** Test name, which addon-vitest derives from the story name. */ testName: string; /** Absolute Vitest project root. */ root: string; /** Browser name appended before `.png` when multiple instances run. */ browserName?: string; }; /** * Derives the screenshot key: the stories file path relative to the project * root, with one PNG per story below it. Example: * `src/components/button/button.stories.tsx/Primary.png` */ declare function deriveKey(input: DeriveKeyInput): string; //#endregion export { DeriveKeyInput, deriveKey, sanitizeStoryName, toPosixPath };