import { type SvelteComponent, type ComponentType } from 'svelte'; import type { FlyParams, ScaleParams, FadeParams } from 'svelte/transition'; export type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'default'; type FiveLengthArray = [T, T, T, T, T]; export declare const spacings: { readonly '0': "0px"; readonly '1': "0.25rem"; readonly '2': "0.5rem"; readonly '3': "0.75rem"; readonly '4': "1rem"; readonly '5': "1.25rem"; readonly '6': "1.5rem"; readonly '7': "1.75rem"; readonly '8': "2rem"; readonly '9': "2.25rem"; readonly '10': "2.5rem"; readonly '11': "2.75rem"; readonly '12': "3rem"; readonly '14': "3.5rem"; readonly '16': "4rem"; readonly '20': "5rem"; readonly '24': "6rem"; readonly '28': "7rem"; readonly '32': "8rem"; readonly '36': "9rem"; readonly '40': "10rem"; readonly '44': "11rem"; readonly '48': "12rem"; readonly '52': "13rem"; readonly '56': "14rem"; readonly '60': "15rem"; readonly '64': "16rem"; readonly '72': "18rem"; readonly '80': "20rem"; readonly '96': "24rem"; readonly '0.5': "0.125rem"; readonly '1.5': "0.375rem"; readonly '2.5': "0.625rem"; readonly '3.5': "0.875rem"; }; export type Spacings = keyof typeof spacings; type RecordWithDefault = Record<'default' | (string & {}), T>; export type ButtonTheme = { colors: RecordWithDefault>; sizes: RecordWithDefault; }; export type AccordionTheme = { types: RecordWithDefault<{ container: string; accordion: string; actionsRow: string; button: string; content: string; }>; icons: RecordWithDefault<{ open: ComponentType; close: ComponentType; }>; }; export declare const getSizedProp: (obj: Partial>) => T; export type ResponsiveProperty = Partial>; export type CarouselTheme = { types: RecordWithDefault<{ oneAtTime?: boolean; dragFree?: boolean; axis?: 'x' | 'y'; autoPlay?: number; withGrabCursor?: boolean; showPagination?: boolean; autoHeight?: boolean; showProgress?: boolean; arrows?: 'always' | 'never' | 'dynamic'; pauseOnHover?: boolean; layout?: { [S in Sizes]?: number; }; gap?: { [S in Sizes]?: number; }; disableNativeScroll?: { [S in Sizes]?: boolean; }; partialDelta?: { [S in Sizes]?: number; }; classes: { container?: string; paginationContainer?: string; paginationBullet?: string; arrowClass?: string; progressContainer?: string; progressClass?: string; arrowLeftClass?: string; arrowRightClass?: string; sliderClass?: string; slideClass?: string; }; }>; icons: { arrowLeft: ComponentType; arrowRight: ComponentType; }; }; type TabsTheme = RecordWithDefault<{ container: string; buttonsContainer: string; button: string; tabsContainer: string; tab: string; }>; type DialogTheme = RecordWithDefault<{ backdrop?: string; header?: string; container?: string; transition?: 'slide-right' | 'slide-left' | 'slide-up' | 'slide-down' | 'scale'; content?: string; footer?: string; isBottomSheet?: boolean; thumb?: string; closeIcon?: ComponentType>; closeIconSize?: number; closeIconContainer?: string; threshold?: number; }>; export type Theme = { spinner: ComponentType>; spinnerOverlay: string; buttons: ButtonTheme; accordions: AccordionTheme; carousels: CarouselTheme; headings: { class: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9', string>; styles: RecordWithDefault; fontSize?: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9', Array>; letterSpacing?: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9', Array>; lineHeight?: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9', Array>; }; tabs: TabsTheme; popovers: RecordWithDefault<{ button: string; container: string; }>; nprogress: string; tags: { base: string; colors: RecordWithDefault; sizes: RecordWithDefault; }; dialogs: DialogTheme; toasts: { duration?: number; container?: string; position?: `${'top' | 'bottom'}-${'left' | 'right' | 'center'}`; types: RecordWithDefault<{ container: string; content: string; icon?: ComponentType>; transitionIn?: 'fly' | 'scale' | 'fade'; transitionParamsIn?: FlyParams | ScaleParams | FadeParams; transitionOut?: 'fly' | 'scale' | 'fade'; transitionParamsOut?: FlyParams | ScaleParams | FadeParams; }>; }; containers: RecordWithDefault<{ width: FiveLengthArray; gutter: FiveLengthArray; spacing?: FiveLengthArray; }>; grids: RecordWithDefault<{ gap: FiveLengthArray; columns: FiveLengthArray; }>; forms: RecordWithDefault<{ formContainer?: string; container?: string; inputContainer?: string; label?: string; input?: string; error?: string; description?: string; checkboxContainer?: string; checkbox?: string; radioContainer?: string; radio?: string; iconContainer?: string; iconSize?: number; checkIcon: ComponentType>; checkIconSize: number; textareaRows?: number; errorIcon?: ComponentType>; errorIconSize?: number; }>; breadcrumbs: { container?: string; separator?: string; list?: string; item?: string; link?: string; separatorIcon?: ComponentType>; separatorIconSize?: number; homeIcon?: ComponentType>; homeLabel?: string; }; banners: RecordWithDefault<{ containerType?: string; containerClass?: string; filter?: string; banner?: string; title?: string; subtitle?: string; image?: string; buttons?: string; }>; disclosures: RecordWithDefault; pagination: RecordWithDefault<{ container: string; button: string; iconPrev: ComponentType>; iconPrevSize?: number; iconNext: ComponentType>; iconNextSize?: number; }>; maps: RecordWithDefault<{ marker: string; markerIcon: ComponentType>; markerSize?: number; cluster: string; style: 'positron' | 'darkMatter' | 'voyager'; popoverType: string; popoverClass: string; }>; }; export declare const useThemeProvider: (theme: Theme) => Theme; export declare const useTheme: () => Theme; export {};