/** * Error object with HTTP status code and optional extra information intended * to be used by the error handler defined in `src/functions/index.ts`. * * @property message - Error message * @property extraInfo - Additional error details * @property status - HTTP status code */ export type AppError = Error & { extraInfo?: string; status: number; }; /** * Parameters for creating an app error. * * @property message - Error message * @property extraInfo - Additional error details * @property status - HTTP status code (default: 500) */ export type CreateAppErrorParams = { message: string; extraInfo?: string; status?: number; }; /** * Create an app error object with status code and extra information. */ export declare const createAppError: ({ message, extraInfo, status, }: CreateAppErrorParams) => AppError; /** * Error object used when interactions with the AMO API led to errors. */ export declare class AMOError extends Error { constructor(message: string); }