import { z } from "zod"; import { type FormattedChatError } from "@kenkaiiii/gg-ai"; declare const appErrorSchema: z.ZodObject<{ scope: z.ZodDefault; headline: z.ZodString; message: z.ZodCatch>; guidance: z.ZodCatch>; reason: z.ZodCatch>; source: z.ZodCatch>; provider: z.ZodCatch>; statusCode: z.ZodCatch>; requestId: z.ZodCatch>; occurredAt: z.ZodCatch>; resetsAt: z.ZodCatch>; }, z.core.$strip>; export type AppErrorPayload = z.infer; /** The same sanitized snapshot goes to SSE and the append-only history marker. */ export declare function createAppErrorPayload(error: FormattedChatError, scope: string, occurredAt: number, secrets: Iterable): AppErrorPayload; /** Backward-compatible read: no migration or reclassification of old saved text. */ export declare function restoreAppErrorPayload(value: unknown): AppErrorPayload | undefined; export {};