import { DOMElement } from "../../types/index.mjs";
import { VirtualAnchor, VirtualDirection } from "../../composables/createVirtual/index.mjs";
import "../../index.mjs";
import _default, { VirtualizerRootContext, VirtualizerRootEmits, VirtualizerRootExpose, VirtualizerRootProps, VirtualizerRootSlotProps, provideVirtualizerRoot, useVirtualizerRoot } from "./VirtualizerRoot.vue.mjs";
import _default$1, { VirtualizerSpacerProps, VirtualizerSpacerSlotProps } from "./VirtualizerSpacer.vue.mjs";
import _default$2, { VirtualizerItemProps } from "./VirtualizerItem.vue.mjs";
//#region src/components/Virtualizer/index.d.ts
/**
* Virtualizer component with sub-components for rendering large lists
* efficiently.
*
* Provides a headless virtualized scroll container that renders only
* the items within (and slightly beyond) the visible viewport. Uses
* `createVirtual` internally for offset/size math, scroll anchoring,
* bidirectional scrolling, and edge detection.
*
* @see https://0.vuetifyjs.com/components/data/virtualizer
*
* @example
* ```vue
*
*
*
*
*
*
* {{ item.raw.name }}
*
*
*
*
* ```
*/
declare const Virtualizer: {
/**
* Root component for virtualized lists.
*
* Creates virtual-scrolling context via `createVirtual`, provides it
* to `Virtualizer.Item` and `Virtualizer.Spacer`, and renders the
* scroll container. Place a `Virtualizer.Spacer` before the items and
* one with `edge="end"` after them; those reserve the off-screen range.
* The default slot receives only the currently visible (plus overscan)
* items — iterate over them with `Virtualizer.Item`.
*
* @see https://0.vuetifyjs.com/components/data/virtualizer
*
* @example
* ```vue
*
*
*
*
*
*
* {{ item.raw.name }}
*
*
*
*
* ```
*/
Root: (__VLS_props: NonNullable>["props"], __VLS_ctx?: {
emit: ((evt: "top", distance: number) => void) & ((evt: "bottom", distance: number) => void);
attrs: any;
slots: {
default: (props: VirtualizerRootSlotProps) => any;
};
}, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{
props: import("vue").PublicProps & {
items?: readonly T[] | undefined;
itemHeight?: number | `${number}` | null | undefined;
height?: number | string | undefined;
overscan?: number | undefined;
direction?: VirtualDirection | undefined;
anchor?: VirtualAnchor | undefined;
anchorSmooth?: boolean | undefined;
topThreshold?: number | undefined;
bottomThreshold?: number | undefined;
momentum?: boolean | undefined;
elastic?: boolean | undefined;
namespace?: string | undefined;
as?: (DOMElement | null) | undefined;
renderless?: boolean | undefined;
onTop?: ((distance: number) => any) | undefined;
onBottom?: ((distance: number) => any) | undefined;
} & (typeof globalThis extends {
__VLS_PROPS_FALLBACK: infer P;
} ? P : {});
expose: (exposed: import("vue").ShallowUnwrapRef) => void;
attrs: any;
slots: {
default: (props: VirtualizerRootSlotProps) => any;
};
emit: ((evt: "top", distance: number) => void) & ((evt: "bottom", distance: number) => void);
}>) => import("vue").VNode & {
__ctx?: NonNullable>;
};
/**
* Reserves the scroll range for rows that are not mounted.
*
* `edge` defaults to `start` (rows above the window). The matching
* spacer after the items uses `edge="end"`. Height comes from the
* virtualizer. Set `as` when the scroll container is a `ul` or
* another element that cannot contain a `div`.
*
* @see https://0.vuetifyjs.com/components/data/virtualizer#anatomy
*
* @example
* ```vue
*
*
*
*
*
* Row
*
*
*
* ```
*/
Spacer: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly & Readonly<{}>, {}, {}, {}, {}, {}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
$slots: {
default: (props: VirtualizerSpacerSlotProps) => any;
};
});
/**
* Wrapper for a single rendered item within a virtualized list.
*
* Measures its own rendered height via `ResizeObserver` and reports
* it back to `Virtualizer.Root` (`resize(index, height)`) so
* subsequent layout accounts for variable item heights, rather than
* requiring the consumer to call `resize()` by hand.
*
* @see https://0.vuetifyjs.com/components/data/virtualizer#anatomy
*
* @example
* ```vue
*
*
*
*
* Row content, any height
*
*
* ```
*/
Item: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly & Readonly<{}>, {}, {}, {}, {}, {}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
$slots: {
default: () => any;
};
});
};
//#endregion
export { Virtualizer, _default$2 as VirtualizerItem, type VirtualizerItemProps, _default as VirtualizerRoot, type VirtualizerRootContext, type VirtualizerRootEmits, type VirtualizerRootExpose, type VirtualizerRootProps, type VirtualizerRootSlotProps, _default$1 as VirtualizerSpacer, type VirtualizerSpacerProps, type VirtualizerSpacerSlotProps, provideVirtualizerRoot, useVirtualizerRoot };