/** * Widget-local type definitions. * These are independent copies — the widget cannot import from src/server/. */ export type TaskType = 'bug' | 'feature' | 'content' | 'accessibility' | 'performance' | 'other'; export type Priority = 'low' | 'medium' | 'high' | 'critical'; export type Position = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'; export declare const TASK_TYPES: readonly TaskType[]; export declare const PRIORITY_LEVELS: readonly Priority[]; export interface WidgetConfig { screenshot: boolean; elementSelector: boolean; aiAssist: boolean; requireEmail: boolean; position: Position; } export interface FeedbackPayload { type: TaskType; priority: Priority; description: string; route: string | null; element_selector: string | null; metadata: string | null; email: string | null; } export type SubmitResult = { ok: true; data: { id: string; public_id: number; }; } | { ok: false; error: string; fields?: Record; }; export type ViewState = 'idle' | 'form' | 'success' | 'error'; export declare const DEFAULT_CONFIG: WidgetConfig; export declare const TYPE_LABELS: Record; export declare const PRIORITY_LABELS: Record; export interface AIAssistResult { improved_description: string; suggested_type: TaskType; suggested_priority: Priority; reasoning: string; } export type AIAssistState = 'idle' | 'loading' | 'ready' | 'error'; //# sourceMappingURL=types.d.ts.map