UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

13 lines (12 loc) 455 B
import type { RefObject } from 'react'; import type { Path } from '../../types'; import type { SnapshotName } from './Snapshot'; export type SnapshotMap = RefObject<Map<Path, unknown>>; export type SnapshotContextState = { name: SnapshotName; setMountedField: (path: Path, { isMounted }: { isMounted: boolean; }) => void; }; declare const SnapshotContext: import("react").Context<SnapshotContextState>; export default SnapshotContext;