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