UNPKG

917 BTypeScriptView Raw
1import { MetaAction } from './types';
2import { FeaturesAvailable, PermissionType } from '../client/types';
3/**
4 * Predicate to determine if an action is an App Bridge action.
5 * @public
6 */
7export declare function isAppBridgeAction(action: any): action is MetaAction;
8/**
9 * Predicate to determine if an action originated from an application.
10 * @internal
11 */
12export declare function isFromApp(action: any): boolean;
13/**
14 * Returns the action type without the prefix and group
15 * @internal
16 */
17export declare function getPermissionKey(type: string): string;
18/**
19 * Predicate to determine if an action is permitted
20 * @internal
21 */
22export declare function isPermitted(features: FeaturesAvailable, { group, type }: MetaAction, permissionType: PermissionType): boolean;
23/**
24 * Predicate to determine if an event originated from an application.
25 * @internal
26 */
27export declare function isAppMessage(event: any): boolean;