import type { FeedbackContext, FeedbackScreenshotUpload } from "@opengeni/sdk"; /** Screenshots one report may carry, and the largest one the server accepts. */ export declare const FEEDBACK_SCREENSHOT_MAX_COUNT = 3; export declare const FEEDBACK_SCREENSHOT_MAX_BYTES: number; export type FeedbackImage = { id: string; name: string; upload: FeedbackScreenshotUpload; /** An object URL for the thumbnail; revoke it when the image is dropped. */ previewUrl: string; }; export type ScreenCapture = { kind: "ok"; blob: Blob; } /** The person declined the browser's share prompt. */ | { kind: "cancelled"; } | { kind: "failed"; }; /** How this app can take a screenshot: its own window, the browser tab, or not at all. */ export declare function screenCaptureKind(): "window" | "tab" | null; /** Resolves after the browser has painted twice, so a closed dialog is really gone. */ export declare function afterPaint(): Promise; /** * Resolves once nothing matches `selector` (an exit animation finished and the * element unmounted) and that is painted, or after `timeoutMs`. */ export declare function untilGone(selector: string, timeoutMs?: number): Promise; /** * A still of what the person sees. Call it from a click (browsers allow tab * capture only right after one), with your own dialog already out of the way. */ export declare function captureScreen(): Promise; /** * An image ready to send: scaled to at most 2400px on its longest side and * encoded as JPEG under the server's size limit. Null when it can't be read. */ export declare function prepareFeedbackImage(blob: Blob, name: string): Promise; /** "Chrome 141", "Safari 26", "Firefox 145" or "Edge 141" from the user agent. */ export declare function browserName(agent: string): string | undefined; /** * Facts about where a report was sent from: web or the desktop app, versions, * the page and chat in view, browser, language, time zone, connection, recent * errors, the latest API requests, uncaught errors and the steps before it. */ export declare function webFeedbackContext(server: { serverVersion?: string | undefined; deploymentRevision?: string | undefined; }): FeedbackContext;