import { SvelteComponent } from 'svelte' import type { Simplify, ValueChangeEvent } from '../utils.js' export type ListOptionsArray = T[] export type ListOptionsObjectArray = Array<{ value: T text: string }> export type ListOptionsRecord = Record export type ListOptions = Simplify< ListOptionsArray | ListOptionsObjectArray | ListOptionsRecord > export type ListChangeEvent = ValueChangeEvent import type { ListBladeApi, ListBladeParams } from 'tweakpane' declare class __sveltets_Render { props(): Omit< { /** * A collection of options to select from. * * The arbitrary array list type is a convenience addition to to the vanilla * JS Tweakpane API. */ options: ListBladeParams /** * Prevent interactivity and gray out the control. * * @default `false` */ disabled?: boolean /** * Custom color scheme. * * If undefined, inherits default Tweakpane theme equivalent to * `ThemeUtils.presets.standard`, or the theme set with * `setGlobalDefaultTheme()`. * * @default `undefined` */ theme?: import('..').Theme | undefined /** * Reference to internal Tweakpane * [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) * for this blade. * * This property is exposed for advanced use cases only, such as when * implementing convenience components wrapping ``'s functionality. * * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane * UI_ abstractions. * * @bindable * @readonly */ ref?: ListBladeApi | undefined /** * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to * automatically register in the ``'s containing ``. * * This property is exposed for advanced use cases only, such as when * implementing convenience components wrapping ``'s functionality in * combination with a Tweakpane plugin. * * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane * UI_ abstractions. * * @default `undefined` */ plugin?: import('../utils.js').Plugin | undefined }, 'ref' | 'options' | 'plugin' > & { /** * Value of the selected `options` item. * * @bindable */ value: T /** * Text displayed next to list. * * @default `undefined` */ label?: string /** * A collection of options to select from. * * The arbitrary array list type is a convenience addition to to the vanilla * JS Tweakpane API. */ options: ListOptions } events(): { /** * Fires when `value` changes. * * _This event is provided for advanced use cases. It's usually preferred to * bind to the `value` prop instead._ * * The `event.details` payload includes a copy of the value and an `origin` * field to distinguish between user-interactive changes (`internal`) and * changes resulting from programmatic manipulation of the `value` * (`external`). * * @extends ValueChangeEvent * @event */ change: ListChangeEvent } slots(): {} } export type ListProps = ReturnType<__sveltets_Render['props']> export type ListEvents = ReturnType<__sveltets_Render['events']> export type ListSlots = ReturnType<__sveltets_Render['slots']> /** * An option list picker, similar to an HTML `