// Public types for the package. Hand-written because declarations inferred from the JS // sources mark every destructured prop as required. Components written in TS re-export // their real types; JS exports stay `any` until converted. Export names must match // src/index.js (checked at build time). import type { ComponentType, ReactNode } from 'react' import type { FieldVariant } from './styles/borderedField' // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyComponent = any // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyFn = (...args: any[]) => any // eslint-disable-next-line @typescript-eslint/no-explicit-any type AnyValue = any /* TYPED (TS sources) */ export { Input, InputWrapper, InputLabel, InputWrap } from './components/Input/Input' export type { InputProps } from './components/Input/Input' export { StokrLoader, StokrLoaderBox, LoaderRing, LoaderLogo, LoadingDots, loaderGif, AnimatedSpan, } from './components/StokrLoader/StokrLoader' export type { FieldVariant } from './styles/borderedField' export { FAQ, FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './components/FAQ/FAQ' export type { FAQProps, FAQEntry } from './components/FAQ/FAQ' export { StepSidebar } from './components/StepSidebar/StepSidebar' export type { StepSidebarProps, StepSidebarIntro, StepSidebarSupport } from './components/StepSidebar/StepSidebar' export { StepProgress } from './components/StepSidebar/StepProgress' export type { StepProgressProps, StepProgressItem, StepStatus } from './components/StepSidebar/StepProgress' export { MobileStepProgress } from './components/StepSidebar/MobileStepProgress' export type { MobileStepProgressProps, StepCaptionInfo } from './components/StepSidebar/MobileStepProgress' export { Select, SelectControl, SelectMenu, SelectMenuList, SelectOption, SelectContainer, SelectValueContainer, SelectIcon, SelectWrapper, } from './components/Input/Select' export type { SelectProps, SelectOptionItem, SelectChange, SelectValue } from './components/Input/Select' export type { StokrLoaderProps, StokrLoaderVariant, LoadingDotsProps } from './components/StokrLoader/StokrLoader' export { Text } from './components/Text/Text.styles' export type { TextProps, TextCaptionProps, TextColor } from './components/Text/Text.styles' export { Modal, ModalBox, ModalBack, ModalLink, ModalRoot, ModalInner, ModalClose, ModalScroll, ModalDimmer, ModalLinkWrap, ModalInnerWithBorder, ModalInnerSmartContractAddress, } from './components/Modal/Modal' export type { ModalProps } from './components/Modal/Modal' export type { ModalInnerProps, ModalBoxProps, ModalDimmerProps, ModalInnerWithBorderProps, ModalLinkProps, } from './components/Modal/Modal.styles' export { Button } from './components/Button/Button.styles' export type { ButtonProps, ButtonSize, ButtonVariant } from './components/Button/Button.styles' export { SideModal, SIDE_MODAL_BACKDROP } from './components/Modal/SideModal' export { SideModalHeader, SideModalBody, SideModalFooter } from './components/Modal/SideModalParts' export type { SideModalHeaderProps } from './components/Modal/SideModalParts' export type { SideModalProps } from './components/Modal/SideModal' export { SuccessModal, SuccessModalComponent, showSuccess, showProgress, } from './components/Modal/SuccessModal/SuccessModal' export type { SuccessModalProps, SuccessModalVariant, ShowSuccessOptions, } from './components/Modal/SuccessModal/SuccessModal' export { LottieAnimation, LOTTIE_ANIMATIONS } from './components/Lottie/LottieAnimation' export type { LottieAnimationProps, LottieVariant, LottieSegment } from './components/Lottie/LottieAnimation' export { Skeleton, SkeletonLines, SkeletonStatus } from './components/Skeleton/Skeleton' export type { SkeletonProps, SkeletonLinesProps, SkeletonStatusProps } from './components/Skeleton/Skeleton' export { Collapsible } from './components/Collapsible/Collapsible' export { MaterialIcon, SvgIcon, ICON_SIZES, ICON_WEIGHTS } from './components/MaterialIcon/MaterialIcon' export type { MaterialIconProps, SvgIconProps, IconSize, IconWeight } from './components/MaterialIcon/MaterialIcon' export { PanelCard, PanelCardHeader, PanelCardSection, PanelCardFooter } from './components/PanelCard/PanelCard' export type { PanelCardProps, PanelCardHeaderProps, PanelCardSectionProps, PanelCardFooterProps, } from './components/PanelCard/PanelCard' export { AddressItem } from './components/AddressItem/AddressItem' export type { AddressItemProps } from './components/AddressItem/AddressItem' export { registerMaterialIcons } from './components/MaterialIcon/iconConfig' export { requiredMaterialIcons } from './components/MaterialIcon/requiredIcons' export type { MaterialIconName, MaterialIconRegistry } from './components/MaterialIcon/iconConfig' export type { CollapsibleProps } from './components/Collapsible/Collapsible' export { Section } from './components/Section/Section' export type { SectionProps } from './components/Section/Section' export { CardTabs, TabPanel } from './components/CardTabs/CardTabs' export type { CardTab, CardTabsProps, TabPanelProps } from './components/CardTabs/CardTabs' export { TabCard, TabCardBody, TabHighlightBase, tabColorTransition } from './components/CardTabs/CardTabs.styles' export { useMediaQuery } from './hooks/useMediaQuery' export { breakpoint, text, theme, semantic, textNames, colors, ACTIVE_FONT, activeFontPreloadFile, breakpoints, fontWeights, colorVar, ACTIVE_SCALE, fontFamilies, typeScaleCss, fontCss, } from './design-system' export { grid, layoutGrid } from './styles/grid' export { Tooltip } from './components/Tooltip/Tooltip' export type { InfoIconProps } from './components/InfoIcon/InfoIcon' export { Bubble as TooltipBubble } from './components/Tooltip/Tooltip.styles' export { ComponentWrapper } from './components/ComponentWrapper/ComponentWrapper.styles' export { DisplayOnBreakpoint } from './components/DisplayOnBreakpoint/DisplayOnBreakpoint' export { InfoIcon, InfoIconWrapper, InfoIconContainer } from './components/InfoIcon/InfoIcon' export type { AppTheme, Breakpoint, ColorName, FontFamilyName, ScaleName, SemanticName, TextName, } from './design-system' export type { ComponentWrapperProps } from './components/ComponentWrapper/ComponentWrapper.styles' export type { DisplayOnBreakpointProps } from './components/DisplayOnBreakpoint/DisplayOnBreakpoint' export type { TooltipProps, TooltipPlacement, VirtualReference } from './components/Tooltip/Tooltip' export { CopyToClipboardTooltip } from './components/CopyToClipboardTooltip/CopyToClipboardTooltip' export type { CopyToClipboardTooltipProps } from './components/CopyToClipboardTooltip/CopyToClipboardTooltip' export { copyTextToClipboard } from './utils/copy-text-to-clipboard' export { CopyToClipboard, withCopyToClipboard, useCopyToClipboard, CopyToClipBoardTooltip, } from './utils/copyToClipboard' export type { WithCopyToClipboardOptions, CopyToClipboardProps } from './utils/copyToClipboard' export { useMobileView, useContainerSize, usePrevious, useCooldown, cooldownHOC, useComponentVisible, } from './utils/customHooks' export type { Cooldown, MobileBreakpoint } from './utils/customHooks' export { fixDecimals, formatDisplayNumber } from './utils/fix-decimals' export type { FormatDisplayNumberOptions } from './utils/fix-decimals' export { isUSInvestor, usCountries } from './utils/isUSInvestor' export { km_ify } from './utils/km_ify' export { PASSWORD_MIN_LENGTH, PASSWORD_REQUIREMENTS_MESSAGE, getPasswordCriteria, isPasswordValid, getPasswordEntropy, ENTROPY_WEAK, ENTROPY_MEDIUM, } from './utils/password-validation' export type { PasswordCriteria } from './utils/password-validation' export { saveAs, openFile } from './utils/saveAs' export { downloadCsv, toCsv } from './utils/csv' export type { CsvCell, CsvOptions } from './utils/csv' export { formatDate, formatDateRange } from './utils/formatDate' export type { DateInput, FormatDateOptions } from './utils/formatDate' export { shortenAddress } from './utils/get-short-address' export type { ShortenAddressOptions } from './utils/get-short-address' export { capitalize } from './utils/capitalize' export { scrollToElement, useScrollActions, ScrollToTop } from './utils/scrollUtils' export type { ScrollToElementOptions } from './utils/scrollUtils' export { CURRENCY_CONFIG, getCurrencyConfig, formatCurrencyValue, formatAmountForDisplay, getCurrencySymbol, getProjectCurrencySign, getCurrencyIcon, } from './utils/formatCurrencyValue' export type { PaymentCurrencyId, CurrencyConfig, FormatCurrencyValueOptions } from './utils/formatCurrencyValue' export { formatAmount, formatAmountParts, toFixedAmount, formatNumber, formatPercent, roundTo, parseAmount, getUnitInfo, projectUnit, paymentUnit, tokenUnit, projectTokenUnit, sanitizeAmountInput, formatAmountInput, isProjectCurrency, isPaymentCurrency, } from './utils/formatAmount' export type { AmountUnit, ProjectCurrency, TokenUnit, Rounding, FormatNumberOptions, FormatAmountOptions, UnitInfo, AmountParts, CodeCase, } from './utils/formatAmount' export { BasicTable } from './components/BasicTable/BasicTable' export type { BasicTableRow, BasicTableProps } from './components/BasicTable/BasicTable' export { MemoCryptoAddress, CryptoAddress } from './components/CryptoAddress/CryptoAddress' export type { CryptoAddressData, CryptoAddressProps } from './components/CryptoAddress/CryptoAddress' export { Card, CardTitle, CardTitleContainer, CardRightText, CardLeftText, CardHeader, CardHeaderRegular, } from './components/Card/Card.styles' export { Wrapper, Row, Column, PageWrapper, FlexContainer, FlexGrid } from './components/Grid/Grid.styles' export { DatePickerInput } from './components/Input/DatePickerInput' export type { DatePickerInputProps } from './components/Input/DatePickerInput' export { RangeInput } from './components/Input/RangeInput' export type { RangeInputProps } from './components/Input/RangeInput' export { MultiSelect, CheckboxWrapperDiv, CheckboxDiv, OptionLabel } from './components/Input/MultiSelect' export type { MultiSelectOption, MultiSelectProps } from './components/Input/MultiSelect' export { OtpInput } from './components/Input/OtpInput' export type { OtpInputProps } from './components/Input/OtpInput' export { TableFilterDropdown } from './components/Input/TableFilterDropdown' export type { TableFilterOption, TableFilterDropdownProps } from './components/Input/TableFilterDropdown' export { MenuNav } from './components/MenuNav/MenuNav.styles' export { GlareButton } from './components/Button/GlareButton' export type { GlareButtonProps } from './components/Button/GlareButton' export { PaymentModal } from './components/Modal/PaymentModal' export type { PaymentModalData, PaymentModalProps } from './components/Modal/PaymentModal' export { NotificationCounter } from './components/NotificationCounter/NotificationCounter.styles' export { Process } from './components/Process/Process.styles' export { ProfileBadge } from './components/ProfileBadge/ProfileBadge' export type { ProfileBadgeProps } from './components/ProfileBadge/ProfileBadge' export { TextLink, TextButton } from './components/TextLink/TextLink.styles' export type { TextLinkProps } from './components/TextLink/TextLink.styles' export { Chip } from './components/Chips/Chip' export type { ChipProps } from './components/Chips/Chip' export { ChecklistCard } from './components/Checklist/ChecklistCard' export type { ChecklistIconState, ChecklistCardProps } from './components/Checklist/ChecklistCard' export { PaymentDisplay, CodeWrapper } from './components/Payment/PaymentDisplay' export type { PaymentDisplayProps } from './components/Payment/PaymentDisplay' export { PaymentPendingCard } from './components/Payment/PaymentPendingCard' export type { PaymentPendingCardProps } from './components/Payment/PaymentPendingCard' export { PaymentSuccessCard } from './components/Payment/PaymentSuccessCard' export type { PaymentSuccessCardProps } from './components/Payment/PaymentSuccessCard' export { DetailsToggle } from './components/Payment/DetailsToggle' export type { DetailsToggleProps } from './components/Payment/DetailsToggle' export { DetailRows } from './components/Payment/DetailRows' export type { DetailRowsProps } from './components/Payment/DetailRows' export { TimerComponent } from './components/Payment/TimerComponent' export type { TimerComponentProps } from './components/Payment/TimerComponent' export { CurrencyLogo, DetailsSection, PaymentDetailsCard, DetailItem } from './components/Payment/PaymentDetailsCard' export type { PaymentDetailRow, DetailItemProps, PaymentAmountConfig, PaymentDetailGroup, PaymentDetailsCardProps, } from './components/Payment/PaymentDetailsCard' export { StatusTag } from './components/StatusTag/StatusTag' export type { StatusTagVariant, StatusTagProps } from './components/StatusTag/StatusTag' export { StatusDot } from './components/StatusDot/StatusDot' export type { StatusDotVariant, StatusDotProps } from './components/StatusDot/StatusDot' export { InfoBox } from './components/InfoBox/InfoBox' export type { InfoBoxVariant, InfoBoxProps } from './components/InfoBox/InfoBox' export { TrackH, ThumbH, TrackV, ThumbV, Outer, Inner } from './components/ComponentScroll/ComponentScroll.styles' /* COPY */ export declare const Copy: ComponentType<{ id: CopyKey; fallback?: string; values?: CopyValues }> /** * Apps narrow copy ids to their own keys by augmenting this interface: * declare module '@stokr/components-library' { interface CopyKeyRegistry { key: CopyKey } } */ // eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface CopyKeyRegistry {} export type CopyKey = CopyKeyRegistry extends { key: infer K extends string } ? K : string export type CopyValues = Record export declare function setCopySource(copy: unknown): void export declare function resolveCopy(id: CopyKey): string | undefined export declare function getCopySource(): Record export declare function t(id: CopyKey, values?: CopyValues): string export declare function interpolate(str: string, values?: CopyValues): string export declare function flatten(obj: unknown, prefix?: string, out?: Record): Record export declare function isCopyKey(key: unknown): key is CopyKey /* COMPONENTS */ export declare const ReactTable: AnyComponent, StyledReactTable: AnyComponent, Styles: AnyComponent export declare const TableWrap: AnyComponent, ReactTableWrapper: AnyComponent export declare const AgreementItem: AnyComponent export declare const BackButton: AnyComponent, StyledBackButton: AnyComponent, StyledBackButtonExternal: AnyComponent export declare const StyledWindowBackButton: AnyComponent, BackButtonIcon: AnyComponent export declare const Background: AnyComponent export declare const HeroVideoBlock: AnyComponent export declare const ChartLegend: AnyComponent export { Checkbox, CheckBoxCaption } from './components/Checkbox/Checkbox' export type { CheckboxProps } from './components/Checkbox/Checkbox' export declare const ComponentScroll: AnyComponent export declare const CryptoAddressWrapper: AnyComponent export declare const Form: AnyComponent, FormContainer: AnyComponent, FormField: AnyComponent export declare const FormInfo: AnyComponent, FormError: AnyComponent export declare const SearchInput: AnyComponent export declare const InputPassword: AnyComponent export declare const Select: AnyComponent, SelectControl: AnyComponent, SelectMenu: AnyComponent export declare const SelectMenuList: AnyComponent, SelectOption: AnyComponent, SelectContainer: AnyComponent export declare const SelectValueContainer: AnyComponent, SelectIcon: AnyComponent, SelectWrapper: AnyComponent export declare const RangeInput: AnyComponent export declare const MultiSelect: AnyComponent, CheckboxWrapperDiv: AnyComponent export declare const CheckboxDiv: AnyComponent, OptionLabel: AnyComponent export declare const CountrySelect: AnyComponent export { FlagFor } from './components/Country/FlagFor' export { preloadFlags } from './components/Country/flagStore' export type { FlagForProps } from './components/Country/FlagFor' export declare const OtpInput: AnyComponent export declare const InputWithButton: AnyComponent export declare const Textarea: AnyComponent export declare const SpanButton: AnyComponent export declare const ConfirmModal: AnyComponent export declare const confirm: AnyFn export declare const Number: AnyComponent, NumberWithContainer: AnyComponent export declare const ProfileBox: AnyComponent export declare const Radio: AnyComponent export declare const RefreshButton: AnyComponent export interface TaxResidenceCardValue { country?: string tin?: string noTinIssued?: boolean } export interface TaxResidenceCardProps { id: string name?: string countries: { key?: string; value: string | number; label: string }[] value?: TaxResidenceCardValue onChange?: (next: Required) => void onDelete?: () => void open?: boolean defaultOpen?: boolean onToggle?: (next: boolean) => void emptyTitle?: string countryLabel?: string tinLabel?: string noTinLabel?: ReactNode countryPlaceholder?: string disabled?: boolean hideNoTin?: boolean /** `bordered`: white card with boxed fields (sign-up redesign). Default keeps the list look. */ variant?: FieldVariant error?: { country?: boolean; tin?: boolean } touched?: { country?: boolean; tin?: boolean } dataCy?: string } export declare const TaxResidenceCard: ComponentType export declare const RequestDataBox: AnyComponent export declare const SectionTitle: AnyComponent export declare const StepController: AnyComponent export declare const StepControllerProgress: AnyComponent export declare const StepControllerProvider: AnyComponent, StepControllerContext: AnyValue export declare const StepControllerConsumer: AnyComponent export declare const SmartLink: AnyComponent export declare const isExternalUrl: (url: unknown) => boolean export { safeUrl } from './utils/safeUrl' export declare const Switch: AnyComponent export declare const Tabs: AnyComponent, Tab: AnyComponent export declare const Breakdown: AnyComponent export declare const QRCode: AnyComponent, QRCodeWrapper: AnyComponent export declare const Pagination: AnyComponent export declare const PaginationControls: AnyComponent export declare const BlogPost: AnyComponent export declare const TabsNav: AnyComponent, TabNav: AnyComponent, Scroll: AnyComponent, TabsWrapper: AnyComponent export declare const StyledTabs: AnyComponent, StyledTab: AnyComponent, LinkText: AnyComponent export declare const ChipsWrapper: AnyComponent export declare const Timeline: AnyComponent export declare const TimelineStep: AnyComponent export declare const Snackbar: AnyComponent, SnackbarProvider: AnyComponent export declare const SnackbarContext: AnyValue export declare const useSnackbar: AnyFn export declare const IdentitySectionHeader: AnyComponent, IdentityCountryRow: AnyComponent export declare const IdentityResidencyItem: AnyComponent, IdentityFieldLabel: AnyComponent export declare const IdentityFieldValue: AnyComponent /* SVG ICONS */ export declare const Logo: AnyComponent export declare const LogoSvg: AnyComponent, VerifiedBadge: AnyComponent /** @deprecated Use `` instead. */ export declare const CapsLockSvg: AnyComponent /** @deprecated Use `` instead. */ export declare const RefreshSvg: AnyComponent /** @deprecated Use `` instead. */ export declare const AdminBadgeSvg: AnyComponent export declare const SocialFacebook: AnyComponent, SocialLinkedIn: AnyComponent export declare const SocialTelegram: AnyComponent, SocialTwitter: AnyComponent /** @deprecated Use `` (or `chevron_right` / `chevron_left`) instead. */ export declare const ArrowSimple: AnyComponent /* UTILS */ export declare const useTimer: AnyFn export declare const useTransactionPolling: AnyFn /* STYLES */ /* CONSTANTS & VARIABLES */ export { chainLogos } from './constants/chainLogos' export type { ChainLogoId } from './constants/chainLogos' export declare const ProjectTypes: AnyValue export declare const emailRegex: RegExp export declare const transactionTypeDisplayNames: AnyValue