import { ActionError } from '../../library/ActionError.js'; import { PageError } from '../../library/PageError.js'; import { AcceptedPayloadTypes } from '../Payload.js'; import { AcceptedQueryTypes } from '../Query.js'; import '../../library/FetchError.js'; type HandleErrorCaughtOptions = ({ type: "pageAPI"; method: "getPage" | "getPreview" | "getPages"; error: PageError; } | { type: "action"; actionName: string; error: ActionError; }) & { parameters: { query?: AcceptedQueryTypes; body?: AcceptedPayloadTypes; }; url: string; tracing: { frontendRequestId: string; frontasticRequestId?: string; }; }; export type { HandleErrorCaughtOptions };