runtime-dom.d.ts 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  1. import { RendererOptions, BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, VNodeRef, App, ComponentCustomElementInterface, ConcreteComponent, CreateAppFunction, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, RootHydrateFunction, RootRenderFunction } from '@vue/runtime-core';
  2. export * from '@vue/runtime-core';
  3. import * as CSS from 'csstype';
  4. export declare const nodeOps: Omit<RendererOptions<Node, Element>, 'patchProp'>;
  5. type DOMRendererOptions = RendererOptions<Node, Element>;
  6. export declare const patchProp: DOMRendererOptions['patchProp'];
  7. declare const TRANSITION = "transition";
  8. declare const ANIMATION = "animation";
  9. type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
  10. export interface TransitionProps extends BaseTransitionProps<Element> {
  11. name?: string;
  12. type?: AnimationTypes;
  13. css?: boolean;
  14. duration?: number | {
  15. enter: number;
  16. leave: number;
  17. };
  18. enterFromClass?: string;
  19. enterActiveClass?: string;
  20. enterToClass?: string;
  21. appearFromClass?: string;
  22. appearActiveClass?: string;
  23. appearToClass?: string;
  24. leaveFromClass?: string;
  25. leaveActiveClass?: string;
  26. leaveToClass?: string;
  27. }
  28. /**
  29. * DOM Transition is a higher-order-component based on the platform-agnostic
  30. * base Transition component, with DOM-specific logic.
  31. */
  32. export declare const Transition: FunctionalComponent<TransitionProps>;
  33. export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
  34. tag?: string;
  35. moveClass?: string;
  36. };
  37. export declare const TransitionGroup: {
  38. new (): {
  39. $props: TransitionGroupProps;
  40. };
  41. };
  42. declare const vShowOriginalDisplay: unique symbol;
  43. declare const vShowHidden: unique symbol;
  44. interface VShowElement extends HTMLElement {
  45. [vShowOriginalDisplay]: string;
  46. [vShowHidden]: boolean;
  47. }
  48. export declare const vShow: ObjectDirective<VShowElement> & {
  49. name: 'show';
  50. };
  51. declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
  52. type SystemModifiers = (typeof systemModifiers)[number];
  53. type CompatModifiers = keyof typeof keyNames;
  54. type VOnModifiers = SystemModifiers | ModifierGuards | CompatModifiers;
  55. type ModifierGuards = 'shift' | 'ctrl' | 'alt' | 'meta' | 'left' | 'right' | 'stop' | 'prevent' | 'self' | 'middle' | 'exact';
  56. /**
  57. * @private
  58. */
  59. export declare const withModifiers: <T extends (event: Event, ...args: unknown[]) => any>(fn: T & {
  60. _withMods?: {
  61. [key: string]: T;
  62. };
  63. }, modifiers: VOnModifiers[]) => T;
  64. declare const keyNames: Record<'esc' | 'space' | 'up' | 'left' | 'right' | 'down' | 'delete', string>;
  65. /**
  66. * @private
  67. */
  68. export declare const withKeys: <T extends (event: KeyboardEvent) => any>(fn: T & {
  69. _withKeys?: {
  70. [k: string]: T;
  71. };
  72. }, modifiers: string[]) => T;
  73. type VOnDirective = Directive<any, any, VOnModifiers>;
  74. type AssignerFn = (value: any) => void;
  75. declare const assignKey: unique symbol;
  76. declare const initialValueKey: unique symbol;
  77. type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
  78. [assignKey]: AssignerFn;
  79. [initialValueKey]?: string;
  80. _pendingValue?: [multiple: boolean, value: any];
  81. }, any, Modifiers>;
  82. export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, 'trim' | 'number' | 'lazy'>;
  83. export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
  84. export declare const vModelRadio: ModelDirective<HTMLInputElement>;
  85. export declare const vModelSelect: ModelDirective<HTMLSelectElement, 'number'>;
  86. export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
  87. type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
  88. export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
  89. /**
  90. * The index signature was removed to enable closed typing for style
  91. * using CSSType. You're able to use type assertion or module augmentation
  92. * to add properties or an index signature of your own.
  93. *
  94. * For examples and more information, visit:
  95. * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
  96. */
  97. [v: `--${string}`]: string | number | undefined;
  98. }
  99. type Booleanish = boolean | 'true' | 'false';
  100. type Numberish = number | string;
  101. export interface AriaAttributes {
  102. /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
  103. 'aria-activedescendant'?: string | undefined;
  104. /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
  105. 'aria-atomic'?: Booleanish | undefined;
  106. /**
  107. * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
  108. * presented if they are made.
  109. */
  110. 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
  111. /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
  112. 'aria-busy'?: Booleanish | undefined;
  113. /**
  114. * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
  115. * @see aria-pressed @see aria-selected.
  116. */
  117. 'aria-checked'?: Booleanish | 'mixed' | undefined;
  118. /**
  119. * Defines the total number of columns in a table, grid, or treegrid.
  120. * @see aria-colindex.
  121. */
  122. 'aria-colcount'?: Numberish | undefined;
  123. /**
  124. * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
  125. * @see aria-colcount @see aria-colspan.
  126. */
  127. 'aria-colindex'?: Numberish | undefined;
  128. /**
  129. * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
  130. * @see aria-colindex @see aria-rowspan.
  131. */
  132. 'aria-colspan'?: Numberish | undefined;
  133. /**
  134. * Identifies the element (or elements) whose contents or presence are controlled by the current element.
  135. * @see aria-owns.
  136. */
  137. 'aria-controls'?: string | undefined;
  138. /** Indicates the element that represents the current item within a container or set of related elements. */
  139. 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined;
  140. /**
  141. * Identifies the element (or elements) that describes the object.
  142. * @see aria-labelledby
  143. */
  144. 'aria-describedby'?: string | undefined;
  145. /**
  146. * Identifies the element that provides a detailed, extended description for the object.
  147. * @see aria-describedby.
  148. */
  149. 'aria-details'?: string | undefined;
  150. /**
  151. * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
  152. * @see aria-hidden @see aria-readonly.
  153. */
  154. 'aria-disabled'?: Booleanish | undefined;
  155. /**
  156. * Indicates what functions can be performed when a dragged object is released on the drop target.
  157. * @deprecated in ARIA 1.1
  158. */
  159. 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined;
  160. /**
  161. * Identifies the element that provides an error message for the object.
  162. * @see aria-invalid @see aria-describedby.
  163. */
  164. 'aria-errormessage'?: string | undefined;
  165. /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
  166. 'aria-expanded'?: Booleanish | undefined;
  167. /**
  168. * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
  169. * allows assistive technology to override the general default of reading in document source order.
  170. */
  171. 'aria-flowto'?: string | undefined;
  172. /**
  173. * Indicates an element's "grabbed" state in a drag-and-drop operation.
  174. * @deprecated in ARIA 1.1
  175. */
  176. 'aria-grabbed'?: Booleanish | undefined;
  177. /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
  178. 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
  179. /**
  180. * Indicates whether the element is exposed to an accessibility API.
  181. * @see aria-disabled.
  182. */
  183. 'aria-hidden'?: Booleanish | undefined;
  184. /**
  185. * Indicates the entered value does not conform to the format expected by the application.
  186. * @see aria-errormessage.
  187. */
  188. 'aria-invalid'?: Booleanish | 'grammar' | 'spelling' | undefined;
  189. /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
  190. 'aria-keyshortcuts'?: string | undefined;
  191. /**
  192. * Defines a string value that labels the current element.
  193. * @see aria-labelledby.
  194. */
  195. 'aria-label'?: string | undefined;
  196. /**
  197. * Identifies the element (or elements) that labels the current element.
  198. * @see aria-describedby.
  199. */
  200. 'aria-labelledby'?: string | undefined;
  201. /** Defines the hierarchical level of an element within a structure. */
  202. 'aria-level'?: Numberish | undefined;
  203. /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
  204. 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
  205. /** Indicates whether an element is modal when displayed. */
  206. 'aria-modal'?: Booleanish | undefined;
  207. /** Indicates whether a text box accepts multiple lines of input or only a single line. */
  208. 'aria-multiline'?: Booleanish | undefined;
  209. /** Indicates that the user may select more than one item from the current selectable descendants. */
  210. 'aria-multiselectable'?: Booleanish | undefined;
  211. /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
  212. 'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
  213. /**
  214. * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
  215. * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
  216. * @see aria-controls.
  217. */
  218. 'aria-owns'?: string | undefined;
  219. /**
  220. * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
  221. * A hint could be a sample value or a brief description of the expected format.
  222. */
  223. 'aria-placeholder'?: string | undefined;
  224. /**
  225. * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  226. * @see aria-setsize.
  227. */
  228. 'aria-posinset'?: Numberish | undefined;
  229. /**
  230. * Indicates the current "pressed" state of toggle buttons.
  231. * @see aria-checked @see aria-selected.
  232. */
  233. 'aria-pressed'?: Booleanish | 'mixed' | undefined;
  234. /**
  235. * Indicates that the element is not editable, but is otherwise operable.
  236. * @see aria-disabled.
  237. */
  238. 'aria-readonly'?: Booleanish | undefined;
  239. /**
  240. * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
  241. * @see aria-atomic.
  242. */
  243. 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined;
  244. /** Indicates that user input is required on the element before a form may be submitted. */
  245. 'aria-required'?: Booleanish | undefined;
  246. /** Defines a human-readable, author-localized description for the role of an element. */
  247. 'aria-roledescription'?: string | undefined;
  248. /**
  249. * Defines the total number of rows in a table, grid, or treegrid.
  250. * @see aria-rowindex.
  251. */
  252. 'aria-rowcount'?: Numberish | undefined;
  253. /**
  254. * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
  255. * @see aria-rowcount @see aria-rowspan.
  256. */
  257. 'aria-rowindex'?: Numberish | undefined;
  258. /**
  259. * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
  260. * @see aria-rowindex @see aria-colspan.
  261. */
  262. 'aria-rowspan'?: Numberish | undefined;
  263. /**
  264. * Indicates the current "selected" state of various widgets.
  265. * @see aria-checked @see aria-pressed.
  266. */
  267. 'aria-selected'?: Booleanish | undefined;
  268. /**
  269. * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  270. * @see aria-posinset.
  271. */
  272. 'aria-setsize'?: Numberish | undefined;
  273. /** Indicates if items in a table or grid are sorted in ascending or descending order. */
  274. 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined;
  275. /** Defines the maximum allowed value for a range widget. */
  276. 'aria-valuemax'?: Numberish | undefined;
  277. /** Defines the minimum allowed value for a range widget. */
  278. 'aria-valuemin'?: Numberish | undefined;
  279. /**
  280. * Defines the current value for a range widget.
  281. * @see aria-valuetext.
  282. */
  283. 'aria-valuenow'?: Numberish | undefined;
  284. /** Defines the human readable text alternative of aria-valuenow for a range widget. */
  285. 'aria-valuetext'?: string | undefined;
  286. }
  287. export type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
  288. export type ClassValue = false | null | undefined | string | Record<string, any> | Array<ClassValue>;
  289. export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
  290. innerHTML?: string | undefined;
  291. class?: ClassValue | undefined;
  292. style?: StyleValue | undefined;
  293. accesskey?: string | undefined;
  294. contenteditable?: Booleanish | 'inherit' | 'plaintext-only' | undefined;
  295. contextmenu?: string | undefined;
  296. dir?: string | undefined;
  297. draggable?: Booleanish | undefined;
  298. enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
  299. /**
  300. * @deprecated Use `enterkeyhint` instead.
  301. */
  302. enterKeyHint?: HTMLAttributes['enterkeyhint'];
  303. hidden?: Booleanish | '' | 'hidden' | 'until-found' | undefined;
  304. id?: string | undefined;
  305. inert?: Booleanish | undefined;
  306. lang?: string | undefined;
  307. placeholder?: string | undefined;
  308. spellcheck?: Booleanish | undefined;
  309. tabindex?: Numberish | undefined;
  310. title?: string | undefined;
  311. translate?: 'yes' | 'no' | undefined;
  312. radiogroup?: string | undefined;
  313. role?: string | undefined;
  314. about?: string | undefined;
  315. datatype?: string | undefined;
  316. inlist?: any;
  317. prefix?: string | undefined;
  318. property?: string | undefined;
  319. resource?: string | undefined;
  320. typeof?: string | undefined;
  321. vocab?: string | undefined;
  322. autocapitalize?: string | undefined;
  323. autocorrect?: string | undefined;
  324. autosave?: string | undefined;
  325. color?: string | undefined;
  326. itemprop?: string | undefined;
  327. itemscope?: Booleanish | undefined;
  328. itemtype?: string | undefined;
  329. itemid?: string | undefined;
  330. itemref?: string | undefined;
  331. results?: Numberish | undefined;
  332. security?: string | undefined;
  333. unselectable?: 'on' | 'off' | undefined;
  334. /**
  335. * Hints at the type of data that might be entered by the user while editing the element or its contents
  336. * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
  337. */
  338. inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | undefined;
  339. /**
  340. * Specify that a standard HTML element should behave like a defined custom built-in element
  341. * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
  342. */
  343. is?: string | undefined;
  344. /**
  345. * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
  346. */
  347. exportparts?: string;
  348. /**
  349. * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
  350. */
  351. part?: string;
  352. }
  353. type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
  354. export interface AnchorHTMLAttributes extends HTMLAttributes {
  355. download?: any;
  356. href?: string | undefined;
  357. hreflang?: string | undefined;
  358. media?: string | undefined;
  359. ping?: string | undefined;
  360. rel?: string | undefined;
  361. target?: string | undefined;
  362. type?: string | undefined;
  363. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  364. }
  365. export interface AreaHTMLAttributes extends HTMLAttributes {
  366. alt?: string | undefined;
  367. coords?: string | undefined;
  368. download?: any;
  369. href?: string | undefined;
  370. hreflang?: string | undefined;
  371. media?: string | undefined;
  372. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  373. rel?: string | undefined;
  374. shape?: string | undefined;
  375. target?: string | undefined;
  376. }
  377. export interface AudioHTMLAttributes extends MediaHTMLAttributes {
  378. }
  379. export interface BaseHTMLAttributes extends HTMLAttributes {
  380. href?: string | undefined;
  381. target?: string | undefined;
  382. }
  383. export interface BlockquoteHTMLAttributes extends HTMLAttributes {
  384. cite?: string | undefined;
  385. }
  386. export interface ButtonHTMLAttributes extends HTMLAttributes {
  387. autofocus?: Booleanish | undefined;
  388. disabled?: Booleanish | undefined;
  389. form?: string | undefined;
  390. formaction?: string | undefined;
  391. formenctype?: string | undefined;
  392. formmethod?: string | undefined;
  393. formnovalidate?: Booleanish | undefined;
  394. formtarget?: string | undefined;
  395. name?: string | undefined;
  396. type?: 'submit' | 'reset' | 'button' | undefined;
  397. value?: string | ReadonlyArray<string> | number | undefined;
  398. }
  399. export interface CanvasHTMLAttributes extends HTMLAttributes {
  400. height?: Numberish | undefined;
  401. width?: Numberish | undefined;
  402. }
  403. export interface ColHTMLAttributes extends HTMLAttributes {
  404. span?: Numberish | undefined;
  405. width?: Numberish | undefined;
  406. }
  407. export interface ColgroupHTMLAttributes extends HTMLAttributes {
  408. span?: Numberish | undefined;
  409. }
  410. export interface DataHTMLAttributes extends HTMLAttributes {
  411. value?: string | ReadonlyArray<string> | number | undefined;
  412. }
  413. export interface DetailsHTMLAttributes extends HTMLAttributes {
  414. name?: string | undefined;
  415. open?: Booleanish | undefined;
  416. }
  417. export interface DelHTMLAttributes extends HTMLAttributes {
  418. cite?: string | undefined;
  419. datetime?: string | undefined;
  420. }
  421. export interface DialogHTMLAttributes extends HTMLAttributes {
  422. open?: Booleanish | undefined;
  423. onClose?: ((payload: Event) => void) | undefined;
  424. onCancel?: ((payload: Event) => void) | undefined;
  425. }
  426. export interface EmbedHTMLAttributes extends HTMLAttributes {
  427. height?: Numberish | undefined;
  428. src?: string | undefined;
  429. type?: string | undefined;
  430. width?: Numberish | undefined;
  431. }
  432. export interface FieldsetHTMLAttributes extends HTMLAttributes {
  433. disabled?: Booleanish | undefined;
  434. form?: string | undefined;
  435. name?: string | undefined;
  436. }
  437. export interface FormHTMLAttributes extends HTMLAttributes {
  438. acceptcharset?: string | undefined;
  439. action?: string | undefined;
  440. autocomplete?: string | undefined;
  441. enctype?: string | undefined;
  442. method?: string | undefined;
  443. name?: string | undefined;
  444. novalidate?: Booleanish | undefined;
  445. target?: string | undefined;
  446. }
  447. export interface HtmlHTMLAttributes extends HTMLAttributes {
  448. manifest?: string | undefined;
  449. }
  450. export interface IframeHTMLAttributes extends HTMLAttributes {
  451. allow?: string | undefined;
  452. allowfullscreen?: Booleanish | undefined;
  453. allowtransparency?: Booleanish | undefined;
  454. /** @deprecated */
  455. frameborder?: Numberish | undefined;
  456. height?: Numberish | undefined;
  457. loading?: 'eager' | 'lazy' | undefined;
  458. /** @deprecated */
  459. marginheight?: Numberish | undefined;
  460. /** @deprecated */
  461. marginwidth?: Numberish | undefined;
  462. name?: string | undefined;
  463. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  464. sandbox?: string | undefined;
  465. /** @deprecated */
  466. scrolling?: string | undefined;
  467. seamless?: Booleanish | undefined;
  468. src?: string | undefined;
  469. srcdoc?: string | undefined;
  470. width?: Numberish | undefined;
  471. }
  472. export interface ImgHTMLAttributes extends HTMLAttributes {
  473. alt?: string | undefined;
  474. crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined;
  475. decoding?: 'async' | 'auto' | 'sync' | undefined;
  476. fetchpriority?: 'high' | 'low' | 'auto' | undefined;
  477. height?: Numberish | undefined;
  478. loading?: 'eager' | 'lazy' | undefined;
  479. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  480. sizes?: string | undefined;
  481. src?: string | undefined;
  482. srcset?: string | undefined;
  483. usemap?: string | undefined;
  484. width?: Numberish | undefined;
  485. }
  486. export interface InsHTMLAttributes extends HTMLAttributes {
  487. cite?: string | undefined;
  488. datetime?: string | undefined;
  489. }
  490. export type InputTypeHTMLAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
  491. type AutoFillAddressKind = 'billing' | 'shipping';
  492. type AutoFillBase = '' | 'off' | 'on';
  493. type AutoFillContactField = 'email' | 'tel' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-local-prefix' | 'tel-local-suffix' | 'tel-national';
  494. type AutoFillContactKind = 'home' | 'mobile' | 'work';
  495. type AutoFillCredentialField = 'webauthn';
  496. type AutoFillNormalField = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday-day' | 'bday-month' | 'bday-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country' | 'country-name' | 'current-password' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'new-password' | 'one-time-code' | 'organization' | 'postal-code' | 'street-address' | 'transaction-amount' | 'transaction-currency' | 'username';
  497. type OptionalPrefixToken<T extends string> = `${T} ` | '';
  498. type OptionalPostfixToken<T extends string> = ` ${T}` | '';
  499. type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
  500. type AutoFillSection = `section-${string}`;
  501. type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
  502. export type InputAutoCompleteAttribute = AutoFill | (string & {});
  503. export interface InputHTMLAttributes extends HTMLAttributes {
  504. accept?: string | undefined;
  505. alt?: string | undefined;
  506. autocomplete?: InputAutoCompleteAttribute | undefined;
  507. autofocus?: Booleanish | undefined;
  508. capture?: boolean | 'user' | 'environment' | undefined;
  509. checked?: Booleanish | any[] | Set<any> | undefined;
  510. crossorigin?: string | undefined;
  511. disabled?: Booleanish | undefined;
  512. form?: string | undefined;
  513. formaction?: string | undefined;
  514. formenctype?: string | undefined;
  515. formmethod?: string | undefined;
  516. formnovalidate?: Booleanish | undefined;
  517. formtarget?: string | undefined;
  518. height?: Numberish | undefined;
  519. indeterminate?: boolean | undefined;
  520. list?: string | undefined;
  521. max?: Numberish | undefined;
  522. maxlength?: Numberish | undefined;
  523. min?: Numberish | undefined;
  524. minlength?: Numberish | undefined;
  525. multiple?: Booleanish | undefined;
  526. name?: string | undefined;
  527. pattern?: string | undefined;
  528. placeholder?: string | undefined;
  529. readonly?: Booleanish | undefined;
  530. required?: Booleanish | undefined;
  531. size?: Numberish | undefined;
  532. src?: string | undefined;
  533. step?: Numberish | undefined;
  534. type?: InputTypeHTMLAttribute | undefined;
  535. value?: any;
  536. width?: Numberish | undefined;
  537. onCancel?: ((payload: Event) => void) | undefined;
  538. }
  539. export interface KeygenHTMLAttributes extends HTMLAttributes {
  540. autofocus?: Booleanish | undefined;
  541. challenge?: string | undefined;
  542. disabled?: Booleanish | undefined;
  543. form?: string | undefined;
  544. keytype?: string | undefined;
  545. keyparams?: string | undefined;
  546. name?: string | undefined;
  547. }
  548. export interface LabelHTMLAttributes extends HTMLAttributes {
  549. for?: string | undefined;
  550. form?: string | undefined;
  551. }
  552. export interface LiHTMLAttributes extends HTMLAttributes {
  553. value?: string | ReadonlyArray<string> | number | undefined;
  554. }
  555. export interface LinkHTMLAttributes extends HTMLAttributes {
  556. as?: string | undefined;
  557. crossorigin?: string | undefined;
  558. href?: string | undefined;
  559. hreflang?: string | undefined;
  560. integrity?: string | undefined;
  561. media?: string | undefined;
  562. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  563. rel?: string | undefined;
  564. sizes?: string | undefined;
  565. type?: string | undefined;
  566. charset?: string | undefined;
  567. }
  568. export interface MapHTMLAttributes extends HTMLAttributes {
  569. name?: string | undefined;
  570. }
  571. export interface MenuHTMLAttributes extends HTMLAttributes {
  572. type?: string | undefined;
  573. }
  574. export interface MediaHTMLAttributes extends HTMLAttributes {
  575. autoplay?: Booleanish | undefined;
  576. controls?: Booleanish | undefined;
  577. controlslist?: string | undefined;
  578. crossorigin?: string | undefined;
  579. loop?: Booleanish | undefined;
  580. mediagroup?: string | undefined;
  581. muted?: Booleanish | undefined;
  582. playsinline?: Booleanish | undefined;
  583. preload?: string | undefined;
  584. src?: string | undefined;
  585. }
  586. export interface MetaHTMLAttributes extends HTMLAttributes {
  587. charset?: string | undefined;
  588. content?: string | undefined;
  589. httpequiv?: string | undefined;
  590. name?: string | undefined;
  591. }
  592. export interface MeterHTMLAttributes extends HTMLAttributes {
  593. form?: string | undefined;
  594. high?: Numberish | undefined;
  595. low?: Numberish | undefined;
  596. max?: Numberish | undefined;
  597. min?: Numberish | undefined;
  598. optimum?: Numberish | undefined;
  599. value?: string | ReadonlyArray<string> | number | undefined;
  600. }
  601. export interface QuoteHTMLAttributes extends HTMLAttributes {
  602. cite?: string | undefined;
  603. }
  604. export interface ObjectHTMLAttributes extends HTMLAttributes {
  605. classid?: string | undefined;
  606. data?: string | undefined;
  607. form?: string | undefined;
  608. height?: Numberish | undefined;
  609. name?: string | undefined;
  610. type?: string | undefined;
  611. usemap?: string | undefined;
  612. width?: Numberish | undefined;
  613. wmode?: string | undefined;
  614. }
  615. export interface OlHTMLAttributes extends HTMLAttributes {
  616. reversed?: Booleanish | undefined;
  617. start?: Numberish | undefined;
  618. type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined;
  619. }
  620. export interface OptgroupHTMLAttributes extends HTMLAttributes {
  621. disabled?: Booleanish | undefined;
  622. label?: string | undefined;
  623. }
  624. export interface OptionHTMLAttributes extends HTMLAttributes {
  625. disabled?: Booleanish | undefined;
  626. label?: string | undefined;
  627. selected?: Booleanish | undefined;
  628. value?: any;
  629. }
  630. export interface OutputHTMLAttributes extends HTMLAttributes {
  631. for?: string | undefined;
  632. form?: string | undefined;
  633. name?: string | undefined;
  634. }
  635. export interface ParamHTMLAttributes extends HTMLAttributes {
  636. name?: string | undefined;
  637. value?: string | ReadonlyArray<string> | number | undefined;
  638. }
  639. export interface ProgressHTMLAttributes extends HTMLAttributes {
  640. max?: Numberish | undefined;
  641. value?: string | ReadonlyArray<string> | number | undefined;
  642. }
  643. export interface ScriptHTMLAttributes extends HTMLAttributes {
  644. async?: Booleanish | undefined;
  645. /** @deprecated */
  646. charset?: string | undefined;
  647. crossorigin?: string | undefined;
  648. defer?: Booleanish | undefined;
  649. integrity?: string | undefined;
  650. nomodule?: Booleanish | undefined;
  651. referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
  652. nonce?: string | undefined;
  653. src?: string | undefined;
  654. type?: string | undefined;
  655. }
  656. export interface SelectHTMLAttributes extends HTMLAttributes {
  657. autocomplete?: string | undefined;
  658. autofocus?: Booleanish | undefined;
  659. disabled?: Booleanish | undefined;
  660. form?: string | undefined;
  661. multiple?: Booleanish | undefined;
  662. name?: string | undefined;
  663. required?: Booleanish | undefined;
  664. size?: Numberish | undefined;
  665. value?: any;
  666. }
  667. export interface SourceHTMLAttributes extends HTMLAttributes {
  668. media?: string | undefined;
  669. sizes?: string | undefined;
  670. src?: string | undefined;
  671. srcset?: string | undefined;
  672. type?: string | undefined;
  673. }
  674. export interface StyleHTMLAttributes extends HTMLAttributes {
  675. media?: string | undefined;
  676. nonce?: string | undefined;
  677. scoped?: Booleanish | undefined;
  678. type?: string | undefined;
  679. }
  680. export interface TableHTMLAttributes extends HTMLAttributes {
  681. cellpadding?: Numberish | undefined;
  682. cellspacing?: Numberish | undefined;
  683. summary?: string | undefined;
  684. width?: Numberish | undefined;
  685. }
  686. export interface TextareaHTMLAttributes extends HTMLAttributes {
  687. autocomplete?: string | undefined;
  688. autofocus?: Booleanish | undefined;
  689. cols?: Numberish | undefined;
  690. dirname?: string | undefined;
  691. disabled?: Booleanish | undefined;
  692. form?: string | undefined;
  693. maxlength?: Numberish | undefined;
  694. minlength?: Numberish | undefined;
  695. name?: string | undefined;
  696. placeholder?: string | undefined;
  697. readonly?: Booleanish | undefined;
  698. required?: Booleanish | undefined;
  699. rows?: Numberish | undefined;
  700. value?: string | ReadonlyArray<string> | number | null | undefined;
  701. wrap?: string | undefined;
  702. }
  703. export interface TdHTMLAttributes extends HTMLAttributes {
  704. align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined;
  705. colspan?: Numberish | undefined;
  706. headers?: string | undefined;
  707. rowspan?: Numberish | undefined;
  708. scope?: string | undefined;
  709. abbr?: string | undefined;
  710. height?: Numberish | undefined;
  711. width?: Numberish | undefined;
  712. valign?: 'top' | 'middle' | 'bottom' | 'baseline' | undefined;
  713. }
  714. export interface ThHTMLAttributes extends HTMLAttributes {
  715. align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined;
  716. colspan?: Numberish | undefined;
  717. headers?: string | undefined;
  718. rowspan?: Numberish | undefined;
  719. scope?: string | undefined;
  720. abbr?: string | undefined;
  721. }
  722. export interface TimeHTMLAttributes extends HTMLAttributes {
  723. datetime?: string | undefined;
  724. }
  725. export interface TrackHTMLAttributes extends HTMLAttributes {
  726. default?: Booleanish | undefined;
  727. kind?: string | undefined;
  728. label?: string | undefined;
  729. src?: string | undefined;
  730. srclang?: string | undefined;
  731. }
  732. export interface VideoHTMLAttributes extends MediaHTMLAttributes {
  733. height?: Numberish | undefined;
  734. playsinline?: Booleanish | undefined;
  735. poster?: string | undefined;
  736. width?: Numberish | undefined;
  737. disablePictureInPicture?: Booleanish | undefined;
  738. disableRemotePlayback?: Booleanish | undefined;
  739. }
  740. export interface WebViewHTMLAttributes extends HTMLAttributes {
  741. allowfullscreen?: Booleanish | undefined;
  742. allowpopups?: Booleanish | undefined;
  743. autoFocus?: Booleanish | undefined;
  744. autosize?: Booleanish | undefined;
  745. blinkfeatures?: string | undefined;
  746. disableblinkfeatures?: string | undefined;
  747. disableguestresize?: Booleanish | undefined;
  748. disablewebsecurity?: Booleanish | undefined;
  749. guestinstance?: string | undefined;
  750. httpreferrer?: string | undefined;
  751. nodeintegration?: Booleanish | undefined;
  752. partition?: string | undefined;
  753. plugins?: Booleanish | undefined;
  754. preload?: string | undefined;
  755. src?: string | undefined;
  756. useragent?: string | undefined;
  757. webpreferences?: string | undefined;
  758. }
  759. export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
  760. innerHTML?: string | undefined;
  761. /**
  762. * SVG Styling Attributes
  763. * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
  764. */
  765. class?: ClassValue | undefined;
  766. style?: StyleValue | undefined;
  767. color?: string | undefined;
  768. height?: Numberish | undefined;
  769. id?: string | undefined;
  770. lang?: string | undefined;
  771. max?: Numberish | undefined;
  772. media?: string | undefined;
  773. method?: string | undefined;
  774. min?: Numberish | undefined;
  775. name?: string | undefined;
  776. target?: string | undefined;
  777. type?: string | undefined;
  778. width?: Numberish | undefined;
  779. role?: string | undefined;
  780. tabindex?: Numberish | undefined;
  781. crossOrigin?: 'anonymous' | 'use-credentials' | '' | undefined;
  782. 'accent-height'?: Numberish | undefined;
  783. accumulate?: 'none' | 'sum' | undefined;
  784. additive?: 'replace' | 'sum' | undefined;
  785. 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit' | undefined;
  786. allowReorder?: 'no' | 'yes' | undefined;
  787. alphabetic?: Numberish | undefined;
  788. amplitude?: Numberish | undefined;
  789. 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated' | undefined;
  790. ascent?: Numberish | undefined;
  791. attributeName?: string | undefined;
  792. attributeType?: string | undefined;
  793. autoReverse?: Numberish | undefined;
  794. azimuth?: Numberish | undefined;
  795. baseFrequency?: Numberish | undefined;
  796. 'baseline-shift'?: Numberish | undefined;
  797. baseProfile?: Numberish | undefined;
  798. bbox?: Numberish | undefined;
  799. begin?: Numberish | undefined;
  800. bias?: Numberish | undefined;
  801. by?: Numberish | undefined;
  802. calcMode?: Numberish | undefined;
  803. 'cap-height'?: Numberish | undefined;
  804. clip?: Numberish | undefined;
  805. 'clip-path'?: string | undefined;
  806. clipPathUnits?: Numberish | undefined;
  807. 'clip-rule'?: Numberish | undefined;
  808. 'color-interpolation'?: Numberish | undefined;
  809. 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined;
  810. 'color-profile'?: Numberish | undefined;
  811. 'color-rendering'?: Numberish | undefined;
  812. contentScriptType?: Numberish | undefined;
  813. contentStyleType?: Numberish | undefined;
  814. cursor?: Numberish | undefined;
  815. cx?: Numberish | undefined;
  816. cy?: Numberish | undefined;
  817. d?: string | undefined;
  818. decelerate?: Numberish | undefined;
  819. descent?: Numberish | undefined;
  820. diffuseConstant?: Numberish | undefined;
  821. direction?: Numberish | undefined;
  822. display?: Numberish | undefined;
  823. divisor?: Numberish | undefined;
  824. 'dominant-baseline'?: Numberish | undefined;
  825. dur?: Numberish | undefined;
  826. dx?: Numberish | undefined;
  827. dy?: Numberish | undefined;
  828. edgeMode?: Numberish | undefined;
  829. elevation?: Numberish | undefined;
  830. 'enable-background'?: Numberish | undefined;
  831. end?: Numberish | undefined;
  832. exponent?: Numberish | undefined;
  833. externalResourcesRequired?: Numberish | undefined;
  834. fill?: string | undefined;
  835. 'fill-opacity'?: Numberish | undefined;
  836. 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit' | undefined;
  837. filter?: string | undefined;
  838. filterRes?: Numberish | undefined;
  839. filterUnits?: Numberish | undefined;
  840. 'flood-color'?: Numberish | undefined;
  841. 'flood-opacity'?: Numberish | undefined;
  842. focusable?: Numberish | undefined;
  843. 'font-family'?: string | undefined;
  844. 'font-size'?: Numberish | undefined;
  845. 'font-size-adjust'?: Numberish | undefined;
  846. 'font-stretch'?: Numberish | undefined;
  847. 'font-style'?: Numberish | undefined;
  848. 'font-variant'?: Numberish | undefined;
  849. 'font-weight'?: Numberish | undefined;
  850. format?: Numberish | undefined;
  851. from?: Numberish | undefined;
  852. fx?: Numberish | undefined;
  853. fy?: Numberish | undefined;
  854. g1?: Numberish | undefined;
  855. g2?: Numberish | undefined;
  856. 'glyph-name'?: Numberish | undefined;
  857. 'glyph-orientation-horizontal'?: Numberish | undefined;
  858. 'glyph-orientation-vertical'?: Numberish | undefined;
  859. glyphRef?: Numberish | undefined;
  860. gradientTransform?: string | undefined;
  861. gradientUnits?: string | undefined;
  862. hanging?: Numberish | undefined;
  863. 'horiz-adv-x'?: Numberish | undefined;
  864. 'horiz-origin-x'?: Numberish | undefined;
  865. href?: string | undefined;
  866. ideographic?: Numberish | undefined;
  867. 'image-rendering'?: Numberish | undefined;
  868. in2?: Numberish | undefined;
  869. in?: string | undefined;
  870. intercept?: Numberish | undefined;
  871. k1?: Numberish | undefined;
  872. k2?: Numberish | undefined;
  873. k3?: Numberish | undefined;
  874. k4?: Numberish | undefined;
  875. k?: Numberish | undefined;
  876. kernelMatrix?: Numberish | undefined;
  877. kernelUnitLength?: Numberish | undefined;
  878. kerning?: Numberish | undefined;
  879. keyPoints?: Numberish | undefined;
  880. keySplines?: Numberish | undefined;
  881. keyTimes?: Numberish | undefined;
  882. lengthAdjust?: Numberish | undefined;
  883. 'letter-spacing'?: Numberish | undefined;
  884. 'lighting-color'?: Numberish | undefined;
  885. limitingConeAngle?: Numberish | undefined;
  886. local?: Numberish | undefined;
  887. 'marker-end'?: string | undefined;
  888. markerHeight?: Numberish | undefined;
  889. 'marker-mid'?: string | undefined;
  890. 'marker-start'?: string | undefined;
  891. markerUnits?: Numberish | undefined;
  892. markerWidth?: Numberish | undefined;
  893. mask?: string | undefined;
  894. maskContentUnits?: Numberish | undefined;
  895. maskUnits?: Numberish | undefined;
  896. mathematical?: Numberish | undefined;
  897. mode?: Numberish | undefined;
  898. numOctaves?: Numberish | undefined;
  899. offset?: Numberish | undefined;
  900. opacity?: Numberish | undefined;
  901. operator?: Numberish | undefined;
  902. order?: Numberish | undefined;
  903. orient?: Numberish | undefined;
  904. orientation?: Numberish | undefined;
  905. origin?: Numberish | undefined;
  906. overflow?: Numberish | undefined;
  907. 'overline-position'?: Numberish | undefined;
  908. 'overline-thickness'?: Numberish | undefined;
  909. 'paint-order'?: Numberish | undefined;
  910. 'panose-1'?: Numberish | undefined;
  911. pathLength?: Numberish | undefined;
  912. patternContentUnits?: string | undefined;
  913. patternTransform?: Numberish | undefined;
  914. patternUnits?: string | undefined;
  915. 'pointer-events'?: Numberish | undefined;
  916. points?: string | undefined;
  917. pointsAtX?: Numberish | undefined;
  918. pointsAtY?: Numberish | undefined;
  919. pointsAtZ?: Numberish | undefined;
  920. preserveAlpha?: Numberish | undefined;
  921. preserveAspectRatio?: string | undefined;
  922. primitiveUnits?: Numberish | undefined;
  923. r?: Numberish | undefined;
  924. radius?: Numberish | undefined;
  925. refX?: Numberish | undefined;
  926. refY?: Numberish | undefined;
  927. renderingIntent?: Numberish | undefined;
  928. repeatCount?: Numberish | undefined;
  929. repeatDur?: Numberish | undefined;
  930. requiredExtensions?: Numberish | undefined;
  931. requiredFeatures?: Numberish | undefined;
  932. restart?: Numberish | undefined;
  933. result?: string | undefined;
  934. rotate?: Numberish | undefined;
  935. rx?: Numberish | undefined;
  936. ry?: Numberish | undefined;
  937. scale?: Numberish | undefined;
  938. seed?: Numberish | undefined;
  939. 'shape-rendering'?: Numberish | undefined;
  940. slope?: Numberish | undefined;
  941. spacing?: Numberish | undefined;
  942. specularConstant?: Numberish | undefined;
  943. specularExponent?: Numberish | undefined;
  944. speed?: Numberish | undefined;
  945. spreadMethod?: string | undefined;
  946. startOffset?: Numberish | undefined;
  947. stdDeviation?: Numberish | undefined;
  948. stemh?: Numberish | undefined;
  949. stemv?: Numberish | undefined;
  950. stitchTiles?: Numberish | undefined;
  951. 'stop-color'?: string | undefined;
  952. 'stop-opacity'?: Numberish | undefined;
  953. 'strikethrough-position'?: Numberish | undefined;
  954. 'strikethrough-thickness'?: Numberish | undefined;
  955. string?: Numberish | undefined;
  956. stroke?: string | undefined;
  957. 'stroke-dasharray'?: Numberish | undefined;
  958. 'stroke-dashoffset'?: Numberish | undefined;
  959. 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
  960. 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit' | undefined;
  961. 'stroke-miterlimit'?: Numberish | undefined;
  962. 'stroke-opacity'?: Numberish | undefined;
  963. 'stroke-width'?: Numberish | undefined;
  964. surfaceScale?: Numberish | undefined;
  965. systemLanguage?: Numberish | undefined;
  966. tableValues?: Numberish | undefined;
  967. targetX?: Numberish | undefined;
  968. targetY?: Numberish | undefined;
  969. 'text-anchor'?: string | undefined;
  970. 'text-decoration'?: Numberish | undefined;
  971. textLength?: Numberish | undefined;
  972. 'text-rendering'?: Numberish | undefined;
  973. to?: Numberish | undefined;
  974. transform?: string | undefined;
  975. u1?: Numberish | undefined;
  976. u2?: Numberish | undefined;
  977. 'underline-position'?: Numberish | undefined;
  978. 'underline-thickness'?: Numberish | undefined;
  979. unicode?: Numberish | undefined;
  980. 'unicode-bidi'?: Numberish | undefined;
  981. 'unicode-range'?: Numberish | undefined;
  982. 'unitsPer-em'?: Numberish | undefined;
  983. 'v-alphabetic'?: Numberish | undefined;
  984. values?: string | undefined;
  985. 'vector-effect'?: Numberish | undefined;
  986. version?: string | undefined;
  987. 'vert-adv-y'?: Numberish | undefined;
  988. 'vert-origin-x'?: Numberish | undefined;
  989. 'vert-origin-y'?: Numberish | undefined;
  990. 'v-hanging'?: Numberish | undefined;
  991. 'v-ideographic'?: Numberish | undefined;
  992. viewBox?: string | undefined;
  993. viewTarget?: Numberish | undefined;
  994. visibility?: Numberish | undefined;
  995. 'v-mathematical'?: Numberish | undefined;
  996. widths?: Numberish | undefined;
  997. 'word-spacing'?: Numberish | undefined;
  998. 'writing-mode'?: Numberish | undefined;
  999. x1?: Numberish | undefined;
  1000. x2?: Numberish | undefined;
  1001. x?: Numberish | undefined;
  1002. xChannelSelector?: string | undefined;
  1003. 'x-height'?: Numberish | undefined;
  1004. xlinkActuate?: string | undefined;
  1005. xlinkArcrole?: string | undefined;
  1006. xlinkHref?: string | undefined;
  1007. xlinkRole?: string | undefined;
  1008. xlinkShow?: string | undefined;
  1009. xlinkTitle?: string | undefined;
  1010. xlinkType?: string | undefined;
  1011. xmlns?: string | undefined;
  1012. xmlnsXlink?: string | undefined;
  1013. y1?: Numberish | undefined;
  1014. y2?: Numberish | undefined;
  1015. y?: Numberish | undefined;
  1016. yChannelSelector?: string | undefined;
  1017. z?: Numberish | undefined;
  1018. zoomAndPan?: string | undefined;
  1019. }
  1020. export interface IntrinsicElementAttributes {
  1021. a: AnchorHTMLAttributes;
  1022. abbr: HTMLAttributes;
  1023. address: HTMLAttributes;
  1024. area: AreaHTMLAttributes;
  1025. article: HTMLAttributes;
  1026. aside: HTMLAttributes;
  1027. audio: AudioHTMLAttributes;
  1028. b: HTMLAttributes;
  1029. base: BaseHTMLAttributes;
  1030. bdi: HTMLAttributes;
  1031. bdo: HTMLAttributes;
  1032. blockquote: BlockquoteHTMLAttributes;
  1033. body: HTMLAttributes;
  1034. br: HTMLAttributes;
  1035. button: ButtonHTMLAttributes;
  1036. canvas: CanvasHTMLAttributes;
  1037. caption: HTMLAttributes;
  1038. cite: HTMLAttributes;
  1039. code: HTMLAttributes;
  1040. col: ColHTMLAttributes;
  1041. colgroup: ColgroupHTMLAttributes;
  1042. data: DataHTMLAttributes;
  1043. datalist: HTMLAttributes;
  1044. dd: HTMLAttributes;
  1045. del: DelHTMLAttributes;
  1046. details: DetailsHTMLAttributes;
  1047. dfn: HTMLAttributes;
  1048. dialog: DialogHTMLAttributes;
  1049. div: HTMLAttributes;
  1050. dl: HTMLAttributes;
  1051. dt: HTMLAttributes;
  1052. em: HTMLAttributes;
  1053. embed: EmbedHTMLAttributes;
  1054. fieldset: FieldsetHTMLAttributes;
  1055. figcaption: HTMLAttributes;
  1056. figure: HTMLAttributes;
  1057. footer: HTMLAttributes;
  1058. form: FormHTMLAttributes;
  1059. h1: HTMLAttributes;
  1060. h2: HTMLAttributes;
  1061. h3: HTMLAttributes;
  1062. h4: HTMLAttributes;
  1063. h5: HTMLAttributes;
  1064. h6: HTMLAttributes;
  1065. head: HTMLAttributes;
  1066. header: HTMLAttributes;
  1067. hgroup: HTMLAttributes;
  1068. hr: HTMLAttributes;
  1069. html: HtmlHTMLAttributes;
  1070. i: HTMLAttributes;
  1071. iframe: IframeHTMLAttributes;
  1072. img: ImgHTMLAttributes;
  1073. input: InputHTMLAttributes;
  1074. ins: InsHTMLAttributes;
  1075. kbd: HTMLAttributes;
  1076. keygen: KeygenHTMLAttributes;
  1077. label: LabelHTMLAttributes;
  1078. legend: HTMLAttributes;
  1079. li: LiHTMLAttributes;
  1080. link: LinkHTMLAttributes;
  1081. main: HTMLAttributes;
  1082. map: MapHTMLAttributes;
  1083. mark: HTMLAttributes;
  1084. menu: MenuHTMLAttributes;
  1085. meta: MetaHTMLAttributes;
  1086. meter: MeterHTMLAttributes;
  1087. nav: HTMLAttributes;
  1088. noindex: HTMLAttributes;
  1089. noscript: HTMLAttributes;
  1090. object: ObjectHTMLAttributes;
  1091. ol: OlHTMLAttributes;
  1092. optgroup: OptgroupHTMLAttributes;
  1093. option: OptionHTMLAttributes;
  1094. output: OutputHTMLAttributes;
  1095. p: HTMLAttributes;
  1096. param: ParamHTMLAttributes;
  1097. picture: HTMLAttributes;
  1098. pre: HTMLAttributes;
  1099. progress: ProgressHTMLAttributes;
  1100. q: QuoteHTMLAttributes;
  1101. rp: HTMLAttributes;
  1102. rt: HTMLAttributes;
  1103. ruby: HTMLAttributes;
  1104. s: HTMLAttributes;
  1105. samp: HTMLAttributes;
  1106. script: ScriptHTMLAttributes;
  1107. section: HTMLAttributes;
  1108. select: SelectHTMLAttributes;
  1109. small: HTMLAttributes;
  1110. source: SourceHTMLAttributes;
  1111. span: HTMLAttributes;
  1112. strong: HTMLAttributes;
  1113. style: StyleHTMLAttributes;
  1114. sub: HTMLAttributes;
  1115. summary: HTMLAttributes;
  1116. sup: HTMLAttributes;
  1117. table: TableHTMLAttributes;
  1118. template: HTMLAttributes;
  1119. tbody: HTMLAttributes;
  1120. td: TdHTMLAttributes;
  1121. textarea: TextareaHTMLAttributes;
  1122. tfoot: HTMLAttributes;
  1123. th: ThHTMLAttributes;
  1124. thead: HTMLAttributes;
  1125. time: TimeHTMLAttributes;
  1126. title: HTMLAttributes;
  1127. tr: HTMLAttributes;
  1128. track: TrackHTMLAttributes;
  1129. u: HTMLAttributes;
  1130. ul: HTMLAttributes;
  1131. var: HTMLAttributes;
  1132. video: VideoHTMLAttributes;
  1133. wbr: HTMLAttributes;
  1134. webview: WebViewHTMLAttributes;
  1135. svg: SVGAttributes;
  1136. animate: SVGAttributes;
  1137. animateMotion: SVGAttributes;
  1138. animateTransform: SVGAttributes;
  1139. circle: SVGAttributes;
  1140. clipPath: SVGAttributes;
  1141. defs: SVGAttributes;
  1142. desc: SVGAttributes;
  1143. ellipse: SVGAttributes;
  1144. feBlend: SVGAttributes;
  1145. feColorMatrix: SVGAttributes;
  1146. feComponentTransfer: SVGAttributes;
  1147. feComposite: SVGAttributes;
  1148. feConvolveMatrix: SVGAttributes;
  1149. feDiffuseLighting: SVGAttributes;
  1150. feDisplacementMap: SVGAttributes;
  1151. feDistantLight: SVGAttributes;
  1152. feDropShadow: SVGAttributes;
  1153. feFlood: SVGAttributes;
  1154. feFuncA: SVGAttributes;
  1155. feFuncB: SVGAttributes;
  1156. feFuncG: SVGAttributes;
  1157. feFuncR: SVGAttributes;
  1158. feGaussianBlur: SVGAttributes;
  1159. feImage: SVGAttributes;
  1160. feMerge: SVGAttributes;
  1161. feMergeNode: SVGAttributes;
  1162. feMorphology: SVGAttributes;
  1163. feOffset: SVGAttributes;
  1164. fePointLight: SVGAttributes;
  1165. feSpecularLighting: SVGAttributes;
  1166. feSpotLight: SVGAttributes;
  1167. feTile: SVGAttributes;
  1168. feTurbulence: SVGAttributes;
  1169. filter: SVGAttributes;
  1170. foreignObject: SVGAttributes;
  1171. g: SVGAttributes;
  1172. image: SVGAttributes;
  1173. line: SVGAttributes;
  1174. linearGradient: SVGAttributes;
  1175. marker: SVGAttributes;
  1176. mask: SVGAttributes;
  1177. metadata: SVGAttributes;
  1178. mpath: SVGAttributes;
  1179. path: SVGAttributes;
  1180. pattern: SVGAttributes;
  1181. polygon: SVGAttributes;
  1182. polyline: SVGAttributes;
  1183. radialGradient: SVGAttributes;
  1184. rect: SVGAttributes;
  1185. set: SVGAttributes;
  1186. stop: SVGAttributes;
  1187. switch: SVGAttributes;
  1188. symbol: SVGAttributes;
  1189. text: SVGAttributes;
  1190. textPath: SVGAttributes;
  1191. tspan: SVGAttributes;
  1192. use: SVGAttributes;
  1193. view: SVGAttributes;
  1194. }
  1195. export interface Events {
  1196. onCopy: ClipboardEvent;
  1197. onCut: ClipboardEvent;
  1198. onPaste: ClipboardEvent;
  1199. onCompositionend: CompositionEvent;
  1200. onCompositionstart: CompositionEvent;
  1201. onCompositionupdate: CompositionEvent;
  1202. onDrag: DragEvent;
  1203. onDragend: DragEvent;
  1204. onDragenter: DragEvent;
  1205. onDragexit: DragEvent;
  1206. onDragleave: DragEvent;
  1207. onDragover: DragEvent;
  1208. onDragstart: DragEvent;
  1209. onDrop: DragEvent;
  1210. onFocus: FocusEvent;
  1211. onFocusin: FocusEvent;
  1212. onFocusout: FocusEvent;
  1213. onBlur: FocusEvent;
  1214. onChange: Event;
  1215. onBeforeinput: InputEvent;
  1216. onFormdata: FormDataEvent;
  1217. onInput: InputEvent;
  1218. onReset: Event;
  1219. onSubmit: SubmitEvent;
  1220. onInvalid: Event;
  1221. onFullscreenchange: Event;
  1222. onFullscreenerror: Event;
  1223. onLoad: Event;
  1224. onError: Event;
  1225. onKeydown: KeyboardEvent;
  1226. onKeypress: KeyboardEvent;
  1227. onKeyup: KeyboardEvent;
  1228. onDblclick: MouseEvent;
  1229. onMousedown: MouseEvent;
  1230. onMouseenter: MouseEvent;
  1231. onMouseleave: MouseEvent;
  1232. onMousemove: MouseEvent;
  1233. onMouseout: MouseEvent;
  1234. onMouseover: MouseEvent;
  1235. onMouseup: MouseEvent;
  1236. onAbort: UIEvent;
  1237. onCanplay: Event;
  1238. onCanplaythrough: Event;
  1239. onDurationchange: Event;
  1240. onEmptied: Event;
  1241. onEncrypted: MediaEncryptedEvent;
  1242. onEnded: Event;
  1243. onLoadeddata: Event;
  1244. onLoadedmetadata: Event;
  1245. onLoadstart: Event;
  1246. onPause: Event;
  1247. onPlay: Event;
  1248. onPlaying: Event;
  1249. onProgress: ProgressEvent;
  1250. onRatechange: Event;
  1251. onSeeked: Event;
  1252. onSeeking: Event;
  1253. onStalled: Event;
  1254. onSuspend: Event;
  1255. onTimeupdate: Event;
  1256. onVolumechange: Event;
  1257. onWaiting: Event;
  1258. onSelect: Event;
  1259. onScroll: Event;
  1260. onScrollend: Event;
  1261. onTouchcancel: TouchEvent;
  1262. onTouchend: TouchEvent;
  1263. onTouchmove: TouchEvent;
  1264. onTouchstart: TouchEvent;
  1265. onAuxclick: PointerEvent;
  1266. onClick: PointerEvent;
  1267. onContextmenu: PointerEvent;
  1268. onGotpointercapture: PointerEvent;
  1269. onLostpointercapture: PointerEvent;
  1270. onPointerdown: PointerEvent;
  1271. onPointermove: PointerEvent;
  1272. onPointerup: PointerEvent;
  1273. onPointercancel: PointerEvent;
  1274. onPointerenter: PointerEvent;
  1275. onPointerleave: PointerEvent;
  1276. onPointerover: PointerEvent;
  1277. onPointerout: PointerEvent;
  1278. onBeforetoggle: ToggleEvent;
  1279. onToggle: ToggleEvent;
  1280. onWheel: WheelEvent;
  1281. onAnimationcancel: AnimationEvent;
  1282. onAnimationstart: AnimationEvent;
  1283. onAnimationend: AnimationEvent;
  1284. onAnimationiteration: AnimationEvent;
  1285. onSecuritypolicyviolation: SecurityPolicyViolationEvent;
  1286. onTransitioncancel: TransitionEvent;
  1287. onTransitionend: TransitionEvent;
  1288. onTransitionrun: TransitionEvent;
  1289. onTransitionstart: TransitionEvent;
  1290. }
  1291. type EventHandlers<E> = {
  1292. [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
  1293. };
  1294. export interface ReservedProps {
  1295. key?: PropertyKey | undefined;
  1296. ref?: VNodeRef | undefined;
  1297. ref_for?: boolean | undefined;
  1298. ref_key?: string | undefined;
  1299. }
  1300. export type NativeElements = {
  1301. [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps;
  1302. };
  1303. export type VueElementConstructor<P = {}> = {
  1304. new (initialProps?: Record<string, any>): VueElement & P;
  1305. };
  1306. export interface CustomElementOptions {
  1307. styles?: string[];
  1308. shadowRoot?: boolean;
  1309. shadowRootOptions?: Omit<ShadowRootInit, 'mode'>;
  1310. nonce?: string;
  1311. configureApp?: (app: App) => void;
  1312. }
  1313. export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
  1314. props?: (keyof Props)[];
  1315. }): VueElementConstructor<Props>;
  1316. export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
  1317. props?: ComponentObjectPropsOptions<Props>;
  1318. }): VueElementConstructor<Props>;
  1319. export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
  1320. [key in PropsKeys]?: any;
  1321. }, ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & {
  1322. props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
  1323. } & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
  1324. InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
  1325. export declare function defineCustomElement<T extends {
  1326. new (...args: any[]): ComponentPublicInstance<any>;
  1327. }>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
  1328. export declare const defineSSRCustomElement: typeof defineCustomElement;
  1329. declare const BaseClass: typeof HTMLElement;
  1330. type InnerComponentDef = ConcreteComponent & CustomElementOptions;
  1331. export declare class VueElement extends BaseClass implements ComponentCustomElementInterface {
  1332. /**
  1333. * Component def - note this may be an AsyncWrapper, and this._def will
  1334. * be overwritten by the inner component when resolved.
  1335. */
  1336. private _def;
  1337. private _props;
  1338. private _createApp;
  1339. _isVueCE: boolean;
  1340. private _connected;
  1341. private _resolved;
  1342. private _patching;
  1343. private _dirty;
  1344. private _numberProps;
  1345. private _styleChildren;
  1346. private _pendingResolve;
  1347. private _parent;
  1348. private _styleAnchors;
  1349. /**
  1350. * dev only
  1351. */
  1352. private _styles?;
  1353. /**
  1354. * dev only
  1355. */
  1356. private _childStyles?;
  1357. private _ob?;
  1358. private _slots?;
  1359. constructor(
  1360. /**
  1361. * Component def - note this may be an AsyncWrapper, and this._def will
  1362. * be overwritten by the inner component when resolved.
  1363. */
  1364. _def: InnerComponentDef, _props?: Record<string, any>, _createApp?: CreateAppFunction<Element>);
  1365. connectedCallback(): void;
  1366. private _setParent;
  1367. private _inheritParentContext;
  1368. disconnectedCallback(): void;
  1369. private _processMutations;
  1370. /**
  1371. * resolve inner component definition (handle possible async component)
  1372. */
  1373. private _resolveDef;
  1374. private _mount;
  1375. private _resolveProps;
  1376. protected _setAttr(key: string): void;
  1377. private _update;
  1378. private _createVNode;
  1379. private _applyStyles;
  1380. private _getStyleAnchor;
  1381. private _getRootStyleInsertionAnchor;
  1382. /**
  1383. * Only called when shadowRoot is false
  1384. */
  1385. private _parseSlots;
  1386. /**
  1387. * Only called when shadowRoot is false
  1388. */
  1389. private _renderSlots;
  1390. }
  1391. export declare function useHost(caller?: string): VueElement | null;
  1392. /**
  1393. * Retrieve the shadowRoot of the current custom element. Only usable in setup()
  1394. * of a `defineCustomElement` component.
  1395. */
  1396. export declare function useShadowRoot(): ShadowRoot | null;
  1397. export declare function useCssModule(name?: string): Record<string, string>;
  1398. /**
  1399. * Runtime helper for SFC's CSS variable injection feature.
  1400. * @private
  1401. */
  1402. export declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
  1403. /**
  1404. * This is a stub implementation to prevent the need to use dom types.
  1405. *
  1406. * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
  1407. */
  1408. type DomType<T> = typeof globalThis extends {
  1409. window: unknown;
  1410. } ? T : never;
  1411. declare module '@vue/reactivity' {
  1412. interface RefUnwrapBailTypes {
  1413. runtimeDOMBailTypes: DomType<Node | Window>;
  1414. }
  1415. }
  1416. declare module '@vue/runtime-core' {
  1417. interface AllowedAttrs {
  1418. class?: ClassValue;
  1419. style?: StyleValue;
  1420. }
  1421. interface GlobalComponents {
  1422. Transition: DefineComponent<TransitionProps>;
  1423. TransitionGroup: DefineComponent<TransitionGroupProps>;
  1424. }
  1425. interface GlobalDirectives {
  1426. vShow: typeof vShow;
  1427. vOn: VOnDirective;
  1428. vBind: VModelDirective;
  1429. vIf: Directive<any, boolean>;
  1430. vOnce: Directive;
  1431. vSlot: Directive;
  1432. }
  1433. }
  1434. export declare const render: RootRenderFunction<Element | ShadowRoot>;
  1435. export declare const hydrate: RootHydrateFunction;
  1436. export declare const createApp: CreateAppFunction<Element>;
  1437. export declare const createSSRApp: CreateAppFunction<Element>;