import type { CardAppearance } from '@atlaskit/linking-common'; export interface CardProvider { resolve: (url: string, appearance: CardAppearance, shouldForceAppearance?: boolean, isEmbedFriendlyLocation?: boolean) => Promise; } export type ORSCheckResponse = { isSupported: boolean; }; type DisplayViews = 'inline' | 'block' | 'embed'; export type ProviderPattern = { defaultView?: DisplayViews; source: string; supportedViews?: DisplayViews[]; }; type Provider = { key: string; patterns: ProviderPattern[]; }; export type LinkAppearance = CardAppearance | 'url'; export interface UserPreferences { appearances: { appearance: LinkAppearance; urlSegment: string; }[]; defaultAppearance: LinkAppearance; } export type ORSProvidersResponse = { providers: Provider[]; userPreferences?: UserPreferences; }; export interface ProvidersData { patterns: ProviderPattern[]; userPreferences?: UserPreferences; } export {};