import { fabric } from 'fabric';
import { MerchiFile } from '../types';
export declare const loadImageFromUrl: (canvas: fabric.Canvas, viewUrl: string, width: number, height: number) => Promise<void>;
/**
 * Adds an editable text object to the canvas
 * @param canvas - The Fabric.js canvas instance
 * @param width - The width of the canvas
 * @param height - The height of the canvas
 * @param defaultText - Optional default text (defaults to "Text")
 * @param fontSize - Optional font size (defaults to 24)
 * @param fontFamily - Optional font family (defaults to Arial)
 */
export declare const addTextToCanvas: (canvas: fabric.Canvas, width: number, height: number, defaultText?: string, fontSize?: number, fontFamily?: string) => fabric.IText | null;
export declare const addFilesToCanvas: (canvas: fabric.Canvas, files: MerchiFile[], width: number, height: number) => Promise<void>;
