import type { FeedbackRecentError } from "@opengeni/sdk"; /** Remember an error the person was shown (an error toast, a failed action). */ export declare function recordRecentError(error: { title?: string | undefined; message?: string | undefined; status?: number | undefined; code?: string | undefined; }): void; /** The remembered errors, oldest first. */ export declare function recentErrors(): FeedbackRecentError[]; /** Tests only. */ export declare function clearRecentErrors(): void; /** * Remember every error toast shown through this toast object (the app's one * sonner instance), whichever part of the app shows it. Call once at startup. */ export declare function recordErrorToasts(toast: { error: (...args: never[]) => unknown; }): void;