export interface ErrorTextParts { /** The text without an "API 409:" prefix or the reference. */ text: string; /** The request reference, for an unexpected failure only. */ reference: string | undefined; } /** True for a 4xx: the request was refused for a reason the person can act on. */ export declare function isExpectedApiStatus(status: number | undefined): boolean; /** The status in a raw "API 409: ..." message, if it has one. */ export declare function apiStatusInText(text: string): number | undefined; /** * Splits text meant for a person into what to show and the reference to offer * discreetly. A raw "API 4xx: ..." message loses its prefix and its reference. */ export declare function splitErrorText(text: string): ErrorTextParts;