import type { SvgOptions } from "@altano/astro-html-to-image"; import type { AstroIntegration } from "astro"; export type FontWithBuffer = SvgOptions["fonts"][0]; export type FontWithPath = Omit & { path: string; }; type SvgOptionsBase = { width?: number; height?: number; debug?: boolean; }; export type SvgOptionsWithFontPaths = SvgOptionsBase & { fonts: FontWithPath[]; }; export type SvgOptionsWithFontBuffers = SvgOptionsBase & { fonts: FontWithBuffer[]; }; export type OpengraphImageConfig = { getSvgOptions(): Promise; }; /** * This must remain JSON-serializable! */ export type OpengraphImageConfigSerializable = { svgOptions: SvgOptionsWithFontPaths; }; export type OpengraphImageConfigSerializableMaybeMocked = OpengraphImageConfigSerializable | (() => OpengraphImageConfigSerializable); export type OpengraphImageConfigResolved = { svgOptions: SvgOptionsWithFontBuffers; }; /** * The integration */ declare const _default: (config: OpengraphImageConfig) => AstroIntegration; export default _default; //# sourceMappingURL=integration.d.ts.map