Read the image processing guide. Signatures below come from the published SDK declarations. Access SDK services through db; use their constructors only when integrating at a lower level.
SharpImageProcessor
/** Node image adapter. Import from nostrbase/node; install the optional sharp peer. */
declare class SharpImageProcessor implements ImageProcessor {}
process
process(
blob: Blob,
options?: ImageTransformOptions,
signal?: AbortSignal,
): Promise<Blob>;