import { Id } from '../shared'; export declare class LayerToken { private readonly _token; private readonly _userId; private readonly _layerId; private readonly _granted; private readonly _mandatory; private readonly _exclusive; private readonly _created; private readonly _expiry; private readonly _admin; private readonly _signature; constructor(token: string, userId: Id, layerId: Id, granted: number, mandatory: number, exclusive: number, created: Date, expiry: number, isAdmin: boolean, signature: string); get token(): string; get userId(): string; get layerId(): string; get granted(): number; get mandatory(): number; get exclusive(): number; get admin(): boolean; get created(): Date; get expiry(): number; get expires(): Date; get expired(): boolean; get signature(): string; } export declare function readLayerToken(tokenStr: string): LayerToken; export declare class AccessGroup { private _name; private _permissions; private _tokens; constructor(name: string, permissions: number); registerLayerToken(layerToken: LayerToken): void; unregisterLayerToken(token: string): void; get layerId(): Id | undefined; get name(): string; get permissions(): number; get tokens(): LayerToken[]; toString(): string; } export declare function readAccessGroup(groupStr: string): AccessGroup; export declare class LayerProfile { private readonly _accessGroups; constructor(); addAccessGroup(name: string, permissions: number): AccessGroup; getAccessGroup(name: string): AccessGroup | undefined; removeAccessGroup(name: string): void; get accessGroups(): AccessGroup[]; toString(): string; } export declare function readLayerProfile(profileStr: string): LayerProfile; //# sourceMappingURL=access.d.ts.map