export interface QboFaultError { code?: string; message?: string; detail?: string; element?: string; } export interface QboFault { type?: string; errors: QboFaultError[]; } /** The QBO Fault carried by `error`, wherever it happens to be, or undefined. */ export declare function extractQboFault(error: unknown): QboFault | undefined; /** HTTP status attached by axios (`response.status`) or by rest.ts (`status`). */ export declare function extractHttpStatus(error: unknown): number | undefined; /** * Whether QuickBooks rejected the credentials rather than the request. * * The fault is looked up wherever it sits, which is the whole point: a call made * through a node-quickbooks method rejects with the raw axios error, so an * expired token arrives as a generic Error carrying the AuthenticationFault down * on `response.data`. Reading only the top level classifies that as an ordinary * failure and the caller never learns to refresh. */ export declare function isAuthFault(error: unknown): boolean; /** * A caller-facing description of a failed QuickBooks call: the transport-level * message, plus every Fault entry QBO returned. Only fields QBO put in the * fault are echoed — never the request body, which for a write is client * financial data. */ export declare function formatQboError(error: unknown): string; //# sourceMappingURL=errors.d.ts.map