////////////////////////////////////////////////////// // BEWARE: DO NOT EDIT MANUALLY! Changes will be lost! ////////////////////////////////////////////////////// import { Events } from "./events"; import { Manifest } from "./manifest"; /** * Namespace: browser.permissions */ export namespace Permissions { interface Permissions { /** * Optional. */ permissions?: Array; /** * Optional. */ origins?: Manifest.MatchPattern[]; /** * Optional. */ data_collection?: Manifest.OptionalDataCollectionPermission[]; } interface AnyPermissions { /** * Optional. */ permissions?: Array; /** * Optional. */ origins?: Manifest.MatchPattern[]; /** * Optional. */ data_collection?: Manifest.OptionalDataCollectionPermission[]; } interface Static { /** * Get a list of all the extension's permissions. */ getAll(): Promise; /** * Check if the extension has the given permissions. */ contains(permissions: AnyPermissions): Promise; /** * Request the given permissions. */ request(permissions: Permissions): Promise; /** * Relinquish the given permissions. */ remove(permissions: Permissions): Promise; /** * Fired when the extension acquires new permissions. */ onAdded: Events.Event<(permissions: Permissions) => void>; /** * Fired when permissions are removed from the extension. */ onRemoved: Events.Event<(permissions: Permissions) => void>; } }