import { AvatarCanvas, AvatarContext } from './types.js'; export declare function isBrowser(): boolean; export declare function setCreateCanvasHandle(handle: any): void; export declare function getCanvas(size: number, existingCanvas?: AvatarCanvas): { canvas: AvatarCanvas; ctx: AvatarContext; }; export declare function createCanvas(size: number): { canvas: AvatarCanvas; ctx: AvatarContext; }; export declare function canvasToBuffer(canvas: AvatarCanvas, mimeType?: 'image/png' | 'image/jpeg'): Buffer; export declare function canvasToDataURL(canvas: AvatarCanvas, mimeType?: 'image/png' | 'image/jpeg'): string; //# sourceMappingURL=canvas.d.ts.map