You've already forked docusaurus-og
mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-04-22 15:27:22 -07:00
793aefd381
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
22 lines
599 B
TypeScript
22 lines
599 B
TypeScript
import React from 'react';
|
|
import { type SatoriOptions } from 'satori';
|
|
export type ImageGeneratorOptions = SatoriOptions;
|
|
export type ImageGeneratorResult = {
|
|
url: string;
|
|
relativePath: string;
|
|
absolutePath: string;
|
|
};
|
|
export declare class ImageGenerator {
|
|
private args;
|
|
private satori;
|
|
private cache;
|
|
private outDir;
|
|
constructor(args: {
|
|
dir: string;
|
|
websiteUrl: string;
|
|
websiteOutDir: string;
|
|
});
|
|
init: () => Promise<void>;
|
|
generate: (element: React.ReactNode, options: ImageGeneratorOptions) => Promise<ImageGeneratorResult>;
|
|
}
|