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