import { PermissionResponse, PermissionType } from './Permissions.types'; /** * Get or ask permission for protected functionality within the app. * It returns the permission response after fetching or asking it. * The hook fetches the permissions when rendered, by default. * To ask the user permission, use the `askPermission` callback or `ask` option. * * @see https://docs.expo.io/versions/latest/sdk/permissions/ * @example * ```tsx * const [permission, askPermission, getPermission] = usePermissions(Permissions.CAMERA); * * return permission?.granted * ? * :