import { ID } from "../../types/index.mjs"; import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { RegistryContext } from "../../composables/createRegistry/index.mjs"; import { SelectionContext, SelectionTicket, SelectionTicketInput } from "../../composables/createSelection/index.mjs"; import { Ref } from "vue"; //#region src/components/Splitter/SplitterRoot.vue.d.ts type SplitterOrientation = 'horizontal' | 'vertical'; type SplitterIntentMode = 'collapse' | 'expand'; interface SplitterPendingIntent { id: ID; mode: SplitterIntentMode; } interface SplitterPanelInput extends SelectionTicketInput { size: number; minSize: number; maxSize: number; collapsible: boolean; collapsedSize: number; defaultSize: number; } type SplitterPanelTicket = SelectionTicket; interface SplitterContext { orientation: Readonly>; disabled: Readonly>; panels: SelectionContext; handles: RegistryContext; dragging: Readonly>; draggingHandle: Readonly>; pending: Readonly>; rootEl: Readonly>; panel: (index: number) => SplitterPanelTicket | undefined; resize: (index: number, delta: number, options?: { emit?: boolean; }) => void; onStartDrag: (index: number) => void; onEndDrag: () => void; onAbortDrag: () => void; collapse: (index: number, neighborIndex?: number) => boolean; expand: (index: number, neighborIndex?: number) => boolean; distribute: (sizes: number[]) => void; } interface SplitterRootExpose { distribute: (sizes: number[]) => void; dragging: Readonly>; } interface SplitterRootProps extends AtomProps { orientation?: SplitterOrientation; disabled?: boolean; } interface SplitterRootSlotProps { orientation: SplitterOrientation; isDisabled: boolean; sizes: number[]; isDragging: boolean; distribute: (sizes: number[]) => void; attrs: { 'style'?: Record; 'data-orientation': SplitterOrientation; 'data-dragging': true | undefined; }; } declare const useSplitterRoot: () => SplitterContext, provideSplitterRoot: (context: SplitterContext, app?: import("vue").App) => SplitterContext; declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots any; }, string, import("vue").PublicProps, Readonly & Readonly<{ onLayout?: ((sizes: number[]) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: SplitterRootSlotProps) => any; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { SplitterContext, SplitterIntentMode, SplitterOrientation, SplitterPanelInput, SplitterPanelTicket, SplitterPendingIntent, SplitterRootExpose, SplitterRootProps, SplitterRootSlotProps, _default as default, provideSplitterRoot, useSplitterRoot };