1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM;
7
8/**
9 * XPathResult
10 *
11 * @see https://dom.spec.whatwg.org/#interface-xpathresult
12 *
13 * @property int $resultType
14 * @property float $numberValue
15 * @property string $stringValue
16 * @property bool $booleanValue
17 * @property Node|null $singleNodeValue
18 * @property bool $invalidIteratorState
19 * @property int $snapshotLength
20 * @phan-forbid-undeclared-magic-properties
21 */
22interface XPathResult {
23	/** @var int */
24	public const ANY_TYPE = 0;
25
26	/** @var int */
27	public const NUMBER_TYPE = 1;
28
29	/** @var int */
30	public const STRING_TYPE = 2;
31
32	/** @var int */
33	public const BOOLEAN_TYPE = 3;
34
35	/** @var int */
36	public const UNORDERED_NODE_ITERATOR_TYPE = 4;
37
38	/** @var int */
39	public const ORDERED_NODE_ITERATOR_TYPE = 5;
40
41	/** @var int */
42	public const UNORDERED_NODE_SNAPSHOT_TYPE = 6;
43
44	/** @var int */
45	public const ORDERED_NODE_SNAPSHOT_TYPE = 7;
46
47	/** @var int */
48	public const ANY_UNORDERED_NODE_TYPE = 8;
49
50	/** @var int */
51	public const FIRST_ORDERED_NODE_TYPE = 9;
52
53	/**
54	 * @return int
55	 */
56	public function getResultType(): int;
57
58	/**
59	 * @return float
60	 */
61	public function getNumberValue(): float;
62
63	/**
64	 * @return string
65	 */
66	public function getStringValue(): string;
67
68	/**
69	 * @return bool
70	 */
71	public function getBooleanValue(): bool;
72
73	/**
74	 * @return Node|null
75	 */
76	public function getSingleNodeValue();
77
78	/**
79	 * @return bool
80	 */
81	public function getInvalidIteratorState(): bool;
82
83	/**
84	 * @return int
85	 */
86	public function getSnapshotLength(): int;
87
88	/**
89	 * @return Node|null
90	 */
91	public function iterateNext();
92
93	/**
94	 * @param int $index
95	 * @return Node|null
96	 */
97	public function snapshotItem( int $index );
98
99}
100