UNPKG

938 BTypeScriptView Raw
1import { ClientApplication } from '@shopify/app-bridge';
2import { Button, ButtonGroup } from '@shopify/app-bridge/actions';
3import { Target, ActionProps, ActionGroupProps } from '../types';
4export declare function generateRedirect(appBridge: ClientApplication<{}>, url?: string, target?: Target, external?: boolean): (() => void) | undefined;
5export declare function transformActions(appBridge: ClientApplication<{}>, { primaryAction, secondaryActions, }: {
6 primaryAction?: ActionProps;
7 secondaryActions?: ActionProps[];
8}): {
9 primary?: Button.Button;
10 secondary?: Button.Button[];
11};
12export declare function transformActions(appBridge: ClientApplication<{}>, { primaryAction, secondaryActions, actionGroups, }: {
13 primaryAction?: ActionProps;
14 secondaryActions?: ActionProps[];
15 actionGroups?: ActionGroupProps[];
16}): {
17 primary?: Button.Button;
18 secondary?: (Button.Button | ButtonGroup.ButtonGroup)[];
19};