import * as _$vue from "vue"; import { VNodeChild } from "vue"; //#region src/types.d.ts type ClampBoundary = "grapheme" | "word"; type ClampLength = number | string; type LineClampLocation = "start" | "middle" | "end" | number; interface ClampProps { as?: string; maxLines?: number; maxHeight?: ClampLength; expanded?: boolean; ellipsis?: string; boundary?: ClampBoundary; location?: LineClampLocation; } type ClampSlotRender = (props: Props) => VNodeChild; type ClampControls = { expand: () => void; collapse: () => void; toggle: () => void; }; type ClampState = { clamped: boolean; expanded: boolean; }; type ClampSlotProps = ClampControls & ClampState; type ClampExposed = ClampControls & { readonly clamped: boolean; readonly expanded: boolean; }; interface ClampSlots { before?: ClampSlotRender; after?: ClampSlotRender; } //#endregion //#region src/inline/types.d.ts interface InlineClampParts { start?: string; body: string; end?: string; } type InlineClampSplit = (text: string) => InlineClampParts; interface InlineClampProps extends Pick { text: string; split?: InlineClampSplit; } //#endregion //#region src/inline/InlineClamp.vue.d.ts declare const __VLS_export$3: _$vue.DefineComponent & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>; declare const _default: typeof __VLS_export$3; //#endregion //#region src/line/types.d.ts type LineClampSlotProps = ClampSlotProps; type LineClampExposed = ClampExposed; type LineClampSlots = ClampSlots; interface LineClampProps extends Pick { text?: string; } //#endregion //#region src/line/LineClamp.vue.d.ts type __VLS_Props$1 = Omit; type __VLS_Slots$1 = LineClampSlots; type __VLS_ModelProps$1 = { "expanded"?: NonNullable; }; type __VLS_PublicProps$1 = __VLS_Props$1 & __VLS_ModelProps$1; declare const __VLS_base$1: _$vue.DefineComponent<__VLS_PublicProps$1, { expand: () => void; collapse: () => void; toggle: () => void; readonly clamped: boolean; readonly expanded: NonNullable; }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, { "update:expanded": (value: NonNullable) => any; clampchange: (value: boolean) => any; }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{ "onUpdate:expanded"?: (value: NonNullable) => any; onClampchange?: (value: boolean) => any; }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>; declare const __VLS_export$2: __VLS_WithSlots$1; declare const _default$1: typeof __VLS_export$2; type __VLS_WithSlots$1 = T & { new (): { $slots: S; }; }; //#endregion //#region src/rich-line/types.d.ts interface RichLineClampProps extends Pick { html: string; } type RichLineClampSlotProps = ClampSlotProps; type RichLineClampExposed = ClampExposed; type RichLineClampSlots = ClampSlots; //#endregion //#region src/rich-line/RichLineClamp.vue.d.ts type __VLS_Props = Omit; type __VLS_Slots = RichLineClampSlots; type __VLS_ModelProps = { "expanded"?: NonNullable; }; type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps; declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, { expand: () => void; collapse: () => void; toggle: () => void; readonly clamped: boolean; readonly expanded: NonNullable; }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, { "update:expanded": (value: NonNullable) => any; clampchange: (value: boolean) => any; }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ "onUpdate:expanded"?: (value: NonNullable) => any; onClampchange?: (value: boolean) => any; }>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>; declare const __VLS_export$1: __VLS_WithSlots; declare const _default$2: typeof __VLS_export$1; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion //#region src/wrap/types.d.ts type WrapClampItemKey = string | ((item: T, index: number) => string | number); interface WrapClampItemSlotProps { item: T; index: number; } interface WrapClampSlotProps extends ClampSlotProps { hiddenItems: readonly T[]; } interface WrapClampSlots extends ClampSlots> { item: ClampSlotRender>; } type WrapClampExposed = ClampExposed; interface WrapClampProps extends Pick { items?: readonly T[]; itemKey?: WrapClampItemKey; } //#endregion //#region src/wrap/WrapClamp.vue.d.ts declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: _$vue.PublicProps & __VLS_PrettifyLocal<(Omit, "expanded"> & { expanded?: NonNullable["expanded"]>; }) & { "onUpdate:expanded"?: (value: NonNullable) => any; onClampchange?: (value: boolean) => any; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: _$vue.ShallowUnwrapRef<{ expand: () => void; collapse: () => void; toggle: () => void; readonly clamped: boolean; readonly expanded: NonNullable; }>) => void; attrs: any; slots: WrapClampSlots; emit: ((evt: "clampchange", value: boolean) => void) & ((event: "update:expanded", value: NonNullable) => void); }>) => _$vue.VNode & { __ctx?: Awaited; }; declare const _default$3: typeof __VLS_export; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //#endregion export { type ClampBoundary, type ClampLength, _default as InlineClamp, type InlineClampParts, type InlineClampProps, type InlineClampSplit, _default$1 as LineClamp, type LineClampExposed, type LineClampLocation, type LineClampProps, type LineClampSlotProps, type LineClampSlots, _default$2 as RichLineClamp, type RichLineClampExposed, type RichLineClampProps, type RichLineClampSlotProps, type RichLineClampSlots, _default$3 as WrapClamp, type WrapClampExposed, type WrapClampItemKey, type WrapClampItemSlotProps, type WrapClampProps, type WrapClampSlotProps, type WrapClampSlots };