import './index.css'; import * as React from 'react'; import * as S from 'ufc-schema'; export interface D3ModelCarouselProps { models: S.D3ModelFile[]; fileStores?: S.FileStore[]; style?: Record; width?: number; height?: number; onSwap?: (modelFile: S.D3ModelFile) => void; onAdd?: (modelFile: S.D3ModelFile) => void; onDelete?: (modelFile: S.D3ModelFile) => void; onThumbnailChange?: (fileId: S.Id, fileUrl: string, modelFile: S.D3ModelFile) => void; } export interface D3ModelCarouselState { selectedModelFile?: S.D3ModelFile; innerThumbnailMap: Record; } export declare class D3ModelCarouselComp extends React.PureComponent { static defaultProps: Partial; constructor(props: D3ModelCarouselProps); /** 执行模型选择之后的响应 */ onSelectModel: (model: S.D3ModelFile) => Promise; onAvatarChange: (model: S.D3ModelFile, fileId: S.Id, fileUrl: string) => Promise; /** 进行模型截图替换 */ onAvatarSwap(model: S.D3ModelFile): void; render(): JSX.Element; } export declare const D3ModelCarousel: typeof D3ModelCarouselComp;