import { ConfigContextValueOffBoard } from '@befe/brick-core'; /** * @public */ export interface ImageInfo { /** * 必须唯一, 用于定位 "当前打开的图片" */ key: string | number | null; /** * 图片的线上地址 */ imageUrl: string; } /** * @public */ export interface ShowPreviewOptions { /** * 对应 ImageInfo.key 代表当前打开的首张预览图片是哪一个 */ currentKey: ImageInfo['key']; /** * 预览图片列表 */ imageList: ImageInfo[]; /** * preview 最外的模态容器的 className */ className?: string; } export declare function createPreview(configContext?: ConfigContextValueOffBoard): { show: (opts: ShowPreviewOptions | (() => Promise)) => { destroy: () => void; readonly closed: Promise; }; };