UNPKG

@novely/solid-renderer

Version:
26 lines (25 loc) 771 B
import type { ValidAction, NovelyAsset } from '@novely/core'; type ShowImageParams = { classesBase?: string; classesIn?: string; wait?: boolean; }; type ShowImageData = { classesBase?: string[]; classesIn?: string[]; classesOut?: string[]; key: string; image: HTMLImageElement; visible: boolean; onIn: () => void; onOut: () => void; }; type ContextImages = ShowImageData[]; declare const showImage: (asset: NovelyAsset, { classesBase, classesIn, wait }?: ShowImageParams) => ValidAction; type HideImageParams = { classesOut?: string; wait?: boolean; }; declare const hideImage: (asset: NovelyAsset, { classesOut, wait }?: HideImageParams) => ValidAction; export { showImage, hideImage }; export type { ContextImages };