react-virtual-tryon
Version:
## **Introduction**
14 lines (13 loc) • 489 B
TypeScript
interface GeneratePreviewParams {
userPhoto: File | null;
garmentId: string;
garmentImage: string;
garmentType: "tops" | "bottoms" | "one-pieces";
}
export declare function uploadPhoto(file: File): Promise<string>;
export declare function generatePreview({ userPhoto, garmentId, garmentImage, garmentType, }: GeneratePreviewParams): Promise<string>;
export declare function customizeWidget(config: {
primaryColor?: string;
fontFamily?: string;
}): void;
export {};