/** * A message, an error, or something which can generate one of those. */ export type MessageOrError = string | Error | (() => (string | Error)); /** * Helper for guards which expect text or an error, or * can generate one when needed. */ export declare const errorFromMessageOrError: (messageOrError: MessageOrError, defaultConstructor?: (new (message: string) => Error)) => Error; //# sourceMappingURL=error-from-message.d.ts.map