export interface WebViewBridgeResponse {
  targetFunc: string;
  data: any;
  msgId: string;
  isSuccessful: boolean;
}

export const PERMISSION_RESULTS = Object.freeze({
  UNAVAILABLE: 'unavailable', // This feature is not available (on this device / in this context)
  BLOCKED: 'blocked', // The permission has not been requested / is denied but requestable
  DENIED: 'denied', // The permission is limited: some actions are possible
  GRANTED: 'granted', // The permission is granted
  LIMITED: 'limited', // The permission is denied and not requestable anymore
} as const);

export type PermissionResultMap = typeof PERMISSION_RESULTS;

export type PermissionResultValues = PermissionResultMap[keyof PermissionResultMap];
