/** * Common Types * * Shared utility types used across the application */ /** * Error object * * Standardized error format used throughout the application */ export interface ErrorProps { /** Category of error */ type: 'GENERAL' | 'AUTH' | 'OBJECT'; /** Unique error key/code */ key: string; /** Human-readable error message */ message: string; } /** * Focus position * * Defines a rectangular region for UI focus or highlighting */ export interface FocusPositionProps { /** X coordinate (horizontal position) */ x: number; /** Y coordinate (vertical position) */ y: number; /** Height of the focus region */ height: number; /** Width of the focus region */ width: number; } /** * Geographic coordinates * * Latitude and longitude pair for location data */ export interface CoordinatesProps { /** Latitude in decimal degrees */ latitude: number; /** Longitude in decimal degrees */ longitude: number; } /** * Image metadata * * Represents an image with URL and optional dimensions */ export interface ImageProps { /** URL to the image file */ url: string; /** Optional image width in pixels or CSS units */ width?: number | string; /** Optional image height in pixels or CSS units */ height?: number | string; /** Optional image MIME type */ type?: string; }