import { BeaconMessage, Storage, PermissionInfo } from '@tezos-x/octez.connect-types'; /** * @internalapi * * The PermissionManager provides CRUD functionality for permission entities and persists them to the provided storage. */ export declare class PermissionManager { private readonly storageManager; constructor(storage: Storage); getPermissions(): Promise; getPermission(accountIdentifier: string): Promise; addPermission(permissionInfo: PermissionInfo): Promise; /** * Persist several permissions in one read-modify-write cycle. Required for * the v4 multi-network fanout (N permissions from one response): N * concurrent `addPermission` calls race on the shared permission list and * the last write clobbers the others. */ addPermissions(permissionInfos: PermissionInfo[]): Promise; removePermission(accountIdentifier: string, senderId: string): Promise; removePermissions(accountIdentifiers: string[]): Promise; removeAllPermissions(): Promise; hasPermission(message: BeaconMessage): Promise; }