Skip to content
Clone
2f11d69
42 lines 1.0 KB
// Public API of the shared/lib segment — generic infrastructure without
// business logic. Consumers import from '@/shared/lib', never from deeper files.
export {
type Palette,
type PaletteCore,
type PaletteMode,
type PaletteSnapshot,
PALETTES,
DEFAULT_PALETTE_ID,
findPalette,
paletteCss,
paletteVariants,
previewColors,
resolveVariant,
encodeCss,
decodeCss,
sanitizeCss,
initPalette,
getPalette,
getPaletteId,
setPalette,
resetPalette,
usePalette,
} from './palettes'
export {
initTheme,
getTheme,
onThemeChange,
setTheme,
toggleTheme,
useTheme,
type Theme,
} from './theme'
export { solvePow } from './pow'
export { getRegion, getMinAge } from './config'
export { useAsync, type AsyncCacheOptions, type AsyncState } from './use-async'
export { prefetch, runShared, PREFETCH_FRESH_MS, type PrefetchOptions } from './prefetch'
export { useSpaLinkClick } from './spa-links'
export * from './cache-keys'
export { formatBytes, shortSha, fmtDay, fmtTime, fmtRelative } from './format'
export * from './api-envelope'