export type ToJpeg = (avatar: Avatar, options?: Options) => Result; export type ToPng = (avatar: Avatar, options?: Options) => Result; export type ToWebp = (avatar: Avatar, options?: Options) => Result; export type ToAvif = (avatar: Avatar, options?: Options) => Result; export type Avatar = { toString(): string; } | string; export interface Result { toDataUri(): Promise; toArrayBuffer(): Promise; } export interface Exif { [key: string]: string; } export interface Options { size?: number; fonts?: string[]; includeExif?: boolean; } export interface Metadata { title?: string; source?: string; creator?: string; license?: string; copyright?: string; }