import { RawRule } from '@casl/ability'; export declare function objectIdToPosUserId({ objectId, type, }: { objectId?: string; type: string; }): string; /** ** derived from permissionUser.permissions ** null: manage all restaurant ** []: unable to manage restaurant ** [id]: manage certain restaurant only */ export declare function getPermissionRestaurantIds(permissions: RawRule[]): string[] | null; /** ** derived from permissionUser.permissions ** null: create/update/assign all role ** []: unable to assign role ** [id]: assign certain role only */ export declare function getPermissionRoleIds(permissions: RawRule[]): string[] | null;