import { RefObject } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ToolbarProps } from 'react-aria-components'; import { B as BreakpointsMap } from './ui-DnZZhozX.mjs'; import { KeyCombo } from '@readium/navigator-html-injectables'; declare enum ThActionsTriggerVariant { button = "iconButton", menu = "menuItem" } interface ThActionEntry { key: T; associatedKey?: string; Trigger: React.ComponentType; Target?: React.ComponentType; } interface ThActionsBarProps extends ToolbarProps { ref?: React.ForwardedRef; } declare const ThActionsBar: ({ ref, children, ...props }: ThActionsBarProps) => react_jsx_runtime.JSX.Element; type ThCollapsibility = boolean | Record; declare enum ThCollapsibilityVisibility { always = "always", partially = "partially", overflow = "overflow" } interface CollapsiblePref { displayOrder: string[]; collapse: ThCollapsibility; keys: { [key: string]: { [key: string]: any; visibility: ThCollapsibilityVisibility; }; }; } declare const useCollapsibility: (items: ThActionEntry[], prefs: CollapsiblePref, breakpoint?: string, containerRef?: RefObject) => { ActionIcons: ThActionEntry[]; MenuItems: ThActionEntry[]; getItemRef: (key: string) => (el: HTMLElement | null) => void; getGhostRef: (el: HTMLDivElement | null) => void; }; type I18nValue = T | string | { key: string; fallback?: string; }; interface ThShortcutConfig { keyCombos: KeyCombo[]; label?: I18nValue; } declare const TEXT_INPUT_SELECTORS: string[]; type ThBottomSheetDetent = "content-height" | "full-height"; interface ThActionsTokens { visibility: ThCollapsibilityVisibility; shortcut: ThShortcutConfig | null; sheet?: { defaultSheet: Exclude; breakpoints: BreakpointsMap>; }; docked?: ThActionsDockedPref; snapped?: ThActionsSnappedPref; } interface ThAudioActionsTokens { visibility: ThCollapsibilityVisibility; shortcut: ThShortcutConfig | null; sheet?: { defaultSheet: Exclude; breakpoints: BreakpointsMap>; }; docked?: ThActionsDockedPref; snapped?: ThActionsSnappedPref; } interface ThActionsDockedPref { dockable: ThDockingTypes; dragIndicator?: boolean; width?: number; minWidth?: number; maxWidth?: number; } interface ThActionsSnappedPref { scrim?: boolean | string; maxWidth?: number | null; maxHeight?: number | ThBottomSheetDetent; peekHeight?: number | ThBottomSheetDetent; minHeight?: number | ThBottomSheetDetent; } interface ThDockingPref { displayOrder: T[]; collapse: ThCollapsibility; dock: BreakpointsMap | boolean; keys: { [key in T]: Pick; }; } declare enum ThActionsKeys { fullscreen = "fullscreen", jumpToPosition = "jumpToPosition", settings = "settings", toc = "toc" } declare enum ThDockingKeys { start = "dockingStart", end = "dockingEnd", transient = "dockingTransient" } declare enum ThDockingTypes { none = "none", both = "both", start = "start", end = "end" } declare enum ThSheetTypes { popover = "popover", compactPopover = "compactPopover", modal = "modal", fullscreen = "fullscreen", dockedStart = "docked start", dockedEnd = "docked end", bottomSheet = "bottomSheet" } declare enum ThSheetHeaderVariant { close = "close", previous = "previous" } declare const defaultActionKeysObject: ThActionsTokens; declare const defaultSettingsAction: ThActionsTokens; declare const defaultFullscreenAction: ThActionsTokens; declare const defaultTocAction: ThActionsTokens; declare const defaultJumpToPositionAction: ThActionsTokens; export { type CollapsiblePref as C, type I18nValue as I, ThDockingKeys as T, ThSheetHeaderVariant as a, type ThAudioActionsTokens as b, type ThActionsTokens as c, type ThCollapsibility as d, ThSheetTypes as e, type ThDockingPref as f, ThActionsKeys as g, type ThActionEntry as h, type ThActionsBarProps as i, type ThShortcutConfig as j, TEXT_INPUT_SELECTORS as k, type ThBottomSheetDetent as l, type ThActionsDockedPref as m, type ThActionsSnappedPref as n, ThDockingTypes as o, defaultActionKeysObject as p, defaultSettingsAction as q, defaultFullscreenAction as r, defaultTocAction as s, defaultJumpToPositionAction as t, ThCollapsibilityVisibility as u, useCollapsibility as v, ThActionsTriggerVariant as w, ThActionsBar as x };