export type List = ListItem[];
export type ListItem = {
title: string;
actions: Action[];
};
export type Action = CopyAction | OpenAction | PushAction | RunAction;
export type PushAction = {
title: string;
type: "push";
page: string;
};
export type CopyAction = {
title: string;
type: "copy";
text: string;
};
export type OpenAction = {
title: string;
type: "open";
url: string | List;
};
export type RunAction = {
title: string;
type: "run";
command: string;
params: {};
};