import { EEntity, EPermission } from './constants'; export declare class Permission { readonly user: Set; readonly group: Set; readonly others: Set; readonly buddies: Set; /** * by default only the creator has all permissions * @type {number} */ static ALL_READ_READ: number; static ALL_NONE_NONE: number; static ALL_READ_NONE: number; static DEFAULT_PERMISSION: number; /** * buddy variants: buddy, creator, group, others * buddies first for backward compatibility */ static ALL_ALL_READ_READ: number; static ALL_ALL_NONE_NONE: number; static ALL_ALL_READ_NONE: number; constructor(user: Set, group: Set, others: Set, buddies?: Set); encode(): number; toString(): string; clone(): Permission; getPermissions(entity: EEntity): Set; hasPermission(entity: EEntity, permission: EPermission): boolean; static toNumber(p: Set): number; static toString(p: Set): string; static fromNumber(p: number): Set; static encode(user: Set, group: Set, others: Set, buddies?: Set): number; static decode(permission?: number): Permission; } //# sourceMappingURL=Permission.d.ts.map