import type { InvokePayload, ServerActionOpts } from '@atlaskit/linking-common/types'; import { type CardInnerAppearance } from '../view/Card/types'; export type InvokeType = 'server' | 'client'; export type InvokeOpts = { source?: CardInnerAppearance; type: InvokeType; } & InvokePayload; export type InvokeClientOpts = InvokeOpts & { type: 'client'; }; export type InvokeServerOpts = InvokeOpts & { type: 'server'; }; export interface ClientActionOpts { promise: () => Promise; type: string; }