import { gracely } from "gracely"; import { isly } from "isly"; import { Transaction } from "../Transaction"; export type Status = "approved" | Status.Failed; export declare namespace Status { const failures: readonly ["insufficient funds", "cancelled card", "card expired", "exceeds limit", "invalid csc", "system failure", "invalid request", "expired", "denied", "merchant lock violation", "card not found", "account not found", "other"]; type Failed = (typeof failures)[number]; namespace Failed { function from(error: gracely.Error | Transaction.Status.Reason): Failed; } const type: isly.Type<"other" | "insufficient funds" | "cancelled card" | "card expired" | "exceeds limit" | "invalid csc" | "system failure" | "invalid request" | "expired" | "denied" | "merchant lock violation" | "card not found" | "account not found" | "approved">; }