/// import { ReactElement } from 'react'; import { TItem, TSyntxLines } from '@x-ray/common-utils'; export declare type TMeta = { id: string; serializedElement: TSyntxLines; element: ReactElement; }; export declare type TSnapshotsCheckResult = { type: 'OK'; } | { type: 'DIFF'; oldData: Buffer; newData: Buffer; } | { type: 'NEW'; data: Buffer; } | { type: 'DELETED'; data: Buffer; }; export declare type TSnapshotsItemResult = { type: 'OK'; id: string; } | { type: 'DIFF'; oldData: Buffer; newData: Buffer; id: string; serializedElement: TSyntxLines; } | { type: 'NEW'; data: Buffer; id: string; serializedElement: TSyntxLines; } | { type: 'DELETED'; data: Buffer; id: string; serializedElement: TSyntxLines; } | { type: 'DONE'; path: string; } | { type: 'ERROR'; data: string; } | { type: 'BAILOUT'; reason: 'NEW' | 'DIFF'; id: string; path: string; } | { type: 'INIT'; }; export declare type TSnapshotItem = TItem & { type: 'new' | 'deleted' | 'diff'; }; export declare type TSnapshotResultType = 'new' | 'diff' | 'deleted'; export declare type TSnapshotsFileResult = { [type in TSnapshotResultType]: { [id: string]: TItem; }; }; export declare type TSnapshotsResult = { [filename: string]: TSnapshotsFileResult; }; export declare type TSnapshotsSave = string[]; export declare type TFileResultLine = { value: string; type?: 'added' | 'removed'; }; export declare type TSnapshotsFileResultData = { [k in TSnapshotResultType]: { [key: string]: TFileResultLine[]; }; }; export declare type TSnapshotsResultData = { [key: string]: TSnapshotsFileResultData; }; export declare type TRunSnapshotsResult = { result: TSnapshotsResult; resultData: TSnapshotsResultData; hasBeenChanged: boolean; }; export declare type TSnapshotItems = { [id: string]: TSnapshotItem; }; export declare type TSnapshotsListResult = { type: 'text'; files: string[]; items: TSnapshotItems; };