import { LedgerError } from './common'; /** * Create an error instance based on the given reason and detail. * If an error class is found for the given reason, a new instance of that class * is created with the given detail as its argument. Otherwise, a new instance of * ApiUnexpectedError class is created with a default error message. * * @param reason The reason for the error * @param detail Optional error detail * @returns A new error instance */ declare function createError(reason: string, detail: string): LedgerError; export { createError };