UNPKG

576 BTypeScriptView Raw
1import { AtomAsset, ExamplePresetAsset } from 'dumi-assets-types';
2import type { TypeMap } from 'dumi-assets-types/typings/atom/props/types';
3import { type FC } from 'react';
4interface IAtomRendererProps {
5 type: AtomAsset['type'];
6 value: ExamplePresetAsset['value'];
7 processor?: typeof builtInProcessor;
8}
9type Entity = TypeMap['element'] | TypeMap['function'] | TypeMap['dom'];
10type Exports = Record<string, any>;
11declare function builtInProcessor(entity: Entity, entryExports: Exports): any;
12export declare const AtomRenderer: FC<IAtomRendererProps>;
13export {};