import type { ReactElement } from 'react'; import type { TJsonValue } from 'typeon'; export declare type TResultsType = Uint8Array | string; export declare type TEncoding = 'image' | 'text'; export declare type TPlugin = { name: string; encoding: TEncoding; appEntryPointPath: string; getResults: (files: string[]) => Promise>; }; export declare type TExampleOptions = { backgroundColor?: string; maxWidth?: number; overflowTop?: number; overflowBottom?: number; overflowLeft?: number; overflowRight?: number; hasOwnWidth?: boolean; }; export declare type TExample = { id: string; element: ReactElement; options?: TExampleOptions; meta?: (element: ReactElement) => TJsonValue; }; export declare type TExampleResult = { type: 'OK'; } | { type: 'DELETED'; data: T; width: number; height: number; meta?: TJsonValue; } | { type: 'NEW'; data: T; width: number; height: number; meta?: TJsonValue; } | { type: 'DIFF'; data: T; width: number; height: number; origData: T; origWidth: number; origHeight: number; meta?: TJsonValue; }; export declare type TExampleResults = Map>; export declare type TFileResults = { name: string; results: TExampleResults; status: { ok: number; new: number; diff: number; deleted: number; }; }; export declare type TTotalResults = Map>; export declare type TItem = { type: 'DELETED'; width: number; height: number; } | { type: 'NEW'; width: number; height: number; } | { type: 'DIFF'; width: number; height: number; origWidth: number; origHeight: number; }; export declare type TListItems = { [id: string]: TItem; }; export declare type TGetResponseQuery = { id: string; type: 'ORIG' | 'NEW'; };