Seym0n's picture
feat: handle images instead webcam
cb2d036
raw
history blame contribute delete
643 Bytes
export type AppState = "upload" | "loading" | "analyzing";
export interface GlassEffectProps {
baseFrequency?: number;
numOctaves?: number;
scale?: number;
bgColor?: string;
highlight?: string;
}
export interface WebcamPermissionError {
type: "general" | "https" | "not-supported" | "permission";
message: string;
details: string;
}
export interface Position {
x: number;
y: number;
}
export interface Dimensions {
width: number;
height: number;
}
export type InitialPosition = "bottom-left" | "bottom-right" | Position;
export interface ImageAnalysisResult {
file: File;
caption: string;
error?: string;
}