import * as gracely from "gracely"; export declare type Error = gracely.Error; export declare namespace Error { const is: typeof gracely.Error.is; function databaseFailure(error: "authorization not found" | "merchant not found" | "backend problem", message: string): gracely.Error; function unauthorized(): gracely.Error; function backendFailure(details?: any): gracely.Error; function flawedContent(error: "invalid input" | "rule violation" | "verification required", flaw: gracely.Flaw): gracely.Error; function invalidContent(error: "invalid transaction" | "invalid input" | "rule violation", type: string, description: string, details?: any): gracely.Error; function malformedContent(error: "invalid card number" | "unsupported card" | "invalid expire date" | "invalid csc" | "invalid currency" | "invalid descriptor" | "card expired" | "card lost or stolen" | "card restricted" | "blocked merchant" | "card declined" | "amount limit" | "3ds authentication failure" | "suspected fraud" | "3ds problem" | "insufficient funds" | "verification required", property: string, type: string, description: string, details?: any): gracely.Error; function invalidPathArgument(path: string, name: string, type: string, description: string): gracely.Error; function invalidQueryArgument(name: string, type: string, description: string): gracely.Error; function misconfigured(key: string, description: string): gracely.Error; function unknown(details?: any): gracely.Error; function unavailable(): gracely.Error; type BackendFailure = gracely.server.BackendFailure; namespace BackendFailure { const is: typeof gracely.server.BackendFailure.is; } type DatabaseFailure = gracely.server.DatabaseFailure; namespace DatabaseFailure { const is: typeof gracely.server.DatabaseFailure.is; } type Flaw = gracely.Flaw; namespace Flaw { const is: typeof gracely.Flaw.is; } type InvalidContent = gracely.client.InvalidContent; namespace InvalidContent { const is: typeof gracely.client.InvalidContent.is; } type InvalidPathArgument = gracely.client.InvalidPathArgument; namespace InvalidPathArgument { const is: typeof gracely.client.InvalidPathArgument.is; } type InvalidQueryArgument = gracely.client.InvalidQueryArgument; namespace InvalidQueryArgument { const is: typeof gracely.client.InvalidQueryArgument.is; } type MalformedContent = gracely.client.MalformedContent; namespace MalformedContent { const is: typeof gracely.client.MalformedContent.is; } type Misconfigured = gracely.server.Misconfigured; namespace Misconfigured { const is: typeof gracely.server.Misconfigured.is; } type Unauthorized = gracely.client.Unauthorized; namespace Unauthorized { const is: typeof gracely.client.Unauthorized.is; } type Unknown = gracely.server.Unknown; namespace Unknown { const is: typeof gracely.server.Unknown.is; } type Unavailable = gracely.server.Unavailable; namespace Unavailable { const is: typeof gracely.server.Unavailable.is; } type Code = "3ds problem" | "3ds authentication failure" | "acquirer error" | "amount limit" | "authentication required" | "authorization not found" | "backend problem" | "blocked merchant" | "card declined" | "card lost or stolen" | "card restricted" | "card expired" | "invalid card number" | "invalid csc" | "invalid currency" | "invalid descriptor" | "invalid expire date" | "invalid input" | "invalid transaction" | "insufficient funds" | "merchant not found" | "rule violation" | "suspected fraud" | "unauthorized" | "unknown error" | "unsupported card" | "verification required"; namespace Code { function is(value: any | Code): value is Code; const types: Code[]; } }