UNPKG

x-satori

Version:

use Vue or Astro file to generate SVG image using Satori

15 lines (10 loc) 411 B
import { SatoriOptions as SatoriOptions$1 } from 'satori'; type SatoriOptions = SatoriOptions$1 & { /** * component props */ props?: Record<string, any>; }; declare function genSatoriSVG(opts: SatoriOptions, renderedHtmlStr: string): Promise<string>; declare function defineSatoriConfig(opts: SatoriOptions): SatoriOptions; export { type SatoriOptions, defineSatoriConfig, genSatoriSVG };