import { Platform } from 'react-native';
export const LINKING_ERROR = `The package 'react-native-authsignal' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
  ios: "- You have run 'pod install'\n",
  default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
export let ErrorCode;
(function (ErrorCode) {
  ErrorCode["user_canceled"] = "user_canceled";
  ErrorCode["no_credential"] = "no_credential";
  ErrorCode["token_not_set"] = "token_not_set";
  ErrorCode["token_required"] = "token_required";
  ErrorCode["token_invalid"] = "token_invalid";
})(ErrorCode || (ErrorCode = {}));
export function handleErrorCodes(ex) {
  return {
    error: ex.message,
    errorCode: ex.code
  };
}
//# sourceMappingURL=error.js.map