import { MatcherOptions } from '@blazediff/matcher'; export { ComparisonResult, ImageInput, MatcherOptions } from '@blazediff/matcher'; declare module "bun:test" { interface Matchers { /** * Compare an image against a stored snapshot. * * On first run, creates a new snapshot. * On subsequent runs, compares against the stored snapshot. * * @param options - Matcher options including comparison method and thresholds * * @example * ```typescript * // Compare file path * await expect('/path/to/screenshot.png').toMatchImageSnapshot({ * method: 'core-native', * failureThreshold: 100, * failureThresholdType: 'pixel', * }); * * // Compare image buffer * await expect({ * data: imageBuffer, * width: 800, * height: 600 * }).toMatchImageSnapshot({ * method: 'ssim', * failureThreshold: 0.01, * failureThresholdType: 'percent', * }); * ``` */ toMatchImageSnapshot(options?: Partial): Promise; } interface AsymmetricMatchers { toMatchImageSnapshot(options?: Partial): void; } } /** * Setup blazediff matchers for Bun test * * @example * ```typescript * // In your test file * import { setupBlazediffMatchers } from '@blazediff/bun'; * setupBlazediffMatchers(); * * // Or just import the package (auto-setup) * import '@blazediff/bun'; * ``` */ declare function setupBlazediffMatchers(): void; export { setupBlazediffMatchers as default, setupBlazediffMatchers };