import { UnionOfConst } from '../../typeUtils.js'; export declare const PermissionLevel: { /** * Allows to view items and create app Data in apps */ readonly Read: "read"; /** * Allows to create new items and edit existing items */ readonly Write: "write"; /** * Allows to admin item properties, sharing and destructive actions */ readonly Admin: "admin"; }; export type PermissionLevelOptions = UnionOfConst; export declare class PermissionLevelCompare { /** * `a` is a better permission level when compared to `b` */ static readonly gt: (a: PermissionLevelOptions, b: PermissionLevelOptions) => boolean; /** * `a` is a better, or the same, permission level when compared to `b`. */ static readonly gte: (a: PermissionLevelOptions, b: PermissionLevelOptions) => boolean; /** * `a` is a worse permission level when compared to `b`. */ static readonly lt: (a: PermissionLevelOptions, b: PermissionLevelOptions) => boolean; /** * `a` is a worse, or the same, permission level when compared to `b`. */ static readonly lte: (a: PermissionLevelOptions, b: PermissionLevelOptions) => boolean; static readonly getHighest: (permissions?: PermissionLevelOptions[]) => PermissionLevelOptions | null; }