import type { VNode } from 'vue'; import type { ContentNavigationItem } from '@nuxt/content'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/content/content-surround'; import type { IconProps } from '../../types'; import type { ComponentConfig } from '../../types/tv'; type ContentSurround = ComponentConfig; export interface ContentSurroundLink extends ContentNavigationItem { description?: string; /** * @IconifyIcon */ icon?: IconProps['name']; class?: any; ui?: Pick; } export interface ContentSurroundProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** * The icon displayed in the prev link. * @defaultValue appConfig.ui.icons.arrowLeft * @IconifyIcon */ prevIcon?: IconProps['name']; /** * The icon displayed in the next link. * @defaultValue appConfig.ui.icons.arrowRight * @IconifyIcon */ nextIcon?: IconProps['name']; surround?: T[]; class?: any; ui?: ContentSurround['slots']; } type SlotProps = (props: { link: T; ui: ContentSurround['ui']; }) => VNode[]; export interface ContentSurroundSlots { 'link'?: SlotProps; 'link-leading'?: SlotProps; 'link-title'?: SlotProps; 'link-description'?: SlotProps; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: {}) => void; attrs: any; slots: ContentSurroundSlots; emit: {}; }>) => import("vue").VNode & { __ctx?: Awaited; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};