import type { WidgetConfig, FeedbackPayload, SubmitResult, AIAssistResult } from './types.js'; /** * Fetch widget configuration from the server. * Throws on failure — caller catches and uses defaults. */ export declare function fetchConfig(): Promise; /** * Submit feedback to the server as JSON. * Returns a discriminated union — never throws. */ export declare function submitFeedback(payload: FeedbackPayload): Promise; /** * Submit feedback with optional screenshot as multipart FormData. * Falls back to JSON when no screenshot is provided. */ export declare function submitFeedbackWithAttachments(payload: FeedbackPayload, screenshot: Blob | null): Promise; export interface AIAssistPayload { description: string; type: string; priority: string; route?: string | null; element_selector?: string | null; } export type AIAssistApiResult = { ok: true; data: AIAssistResult; } | { ok: false; error: string; }; /** * Request AI-assisted description improvement. * Returns a discriminated union — never throws. */ export declare function requestAIAssist(payload: AIAssistPayload): Promise; //# sourceMappingURL=api.d.ts.map