///
import React, { MouseEventHandler, FC } from 'react';
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
interface ButtonProps {
type: 'primary' | 'secondary' | 'error';
text: string;
onClick: MouseEventHandler;
content: ButtonContent | null;
}
interface ButtonContent {
text: string;
type: string;
}
declare const Button: FC;
interface LoginModalSchema {
content: any;
closeLogin: () => void;
metadata: any;
onSuccess: () => void;
isProdEnv?: boolean;
}
declare const LoginModal: FC;
type FalconButtonTypes = 'Primary-V1' | 'Secondary-V1' | 'Secondary-V4' | 'Secondary-Dark' | 'Secondary-V5';
interface Link {
id: number;
slug: string;
name: string;
is_folder: boolean;
parent_id: number;
published: boolean;
path?: string;
position: number;
uuid: string;
is_startpage: boolean;
real_path: string;
alternates: LinkAlternate[];
}
interface LinkAlternate {
path: string;
name?: string;
lang: string;
}
type Links = {
[key: string]: Link;
};
type Alignment = "left" | "center" | "right";
interface Asset {
id: number;
alt?: string;
name: string;
focus?: string;
title?: string;
filename: string;
copyright?: string;
fieldtype: "asset";
}
interface GenericSBProps {
_uid: string;
component: string;
}
interface ComponentMetadata {
lang: string;
title: string;
activePath: string;
links: Links;
locale: string;
storyId: string;
appId?: string;
integrationId?: string;
}
type FalconGradientTypes = 'rubyglow-diagonal' | 'rubyglow-vertical' | 'pinksky-diagonal' | 'pinksky-vertical' | 'bluehaze-diagonal' | 'bluehaze-vertical' | 'greencloud-diagonal' | 'greencloud-vertical' | 'peachfog-diagonal' | 'peachfog-vertical' | 'darkblue-haze' | 'none';
interface ComponentWithContentProps {
content: T;
metadata?: ComponentMetadata | undefined;
}
interface FalconButtonSchema extends GenericSBProps {
buttonLabel?: string;
buttonIcon?: Asset;
buttonHoverIcon?: Asset;
buttonClickedIcon?: Asset;
buttonDisabledIcon?: Asset;
buttonLink: MultiLink;
linkTarget: LinkTarget;
buttonType: FalconButtonTypes;
iconPosition: string;
buttonAlignment: Alignment;
asset?: Asset;
id?: string;
bloks?: any;
minWidth: number;
enableScroll: boolean;
targetElement: componentsInStory;
blackFridayThemeIcon: Asset;
fromTallhero?: boolean;
}
interface MultiLink {
id: string;
url: string;
linktype: 'url' | 'story';
fieldtype: 'multilink';
cached_url: string;
}
type LinkTarget = '_self' | '_blank' | null;
interface componentsInStory {
_uid: string;
plugin: string;
blockIdentifier: string;
}
interface CardSchema {
content: any;
updatedContent: any;
indexKey: number;
listLength: number;
addToCart?: (e: any) => void;
metadata?: ComponentMetadata | undefined;
modalTriggered?: () => void;
showPrice?: any;
}
declare const Card: FC;
interface CardEntitlementSchema {
content: any;
product: any;
indexKey: number;
showEntitleValue: boolean;
metadata: ComponentMetadata | undefined;
modalTriggered?: () => void;
}
declare const CardEntitlement: FC;
declare const CarouselComp: FC;
interface RichTextWithTooltip extends GenericSBProps {
icon: Asset;
mobIcon: Asset;
text: Array