xref: /PHP-8.2/ext/tidy/tidy.stub.php (revision d7383ed8)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue TidyNode_Root
8 */
9const TIDY_NODETYPE_ROOT = UNKNOWN;
10/**
11 * @var int
12 * @cvalue TidyNode_DocType
13 */
14const TIDY_NODETYPE_DOCTYPE = UNKNOWN;
15/**
16 * @var int
17 * @cvalue TidyNode_Comment
18 */
19const TIDY_NODETYPE_COMMENT = UNKNOWN;
20/**
21 * @var int
22 * @cvalue TidyNode_ProcIns
23 */
24const TIDY_NODETYPE_PROCINS = UNKNOWN;
25/**
26 * @var int
27 * @cvalue TidyNode_Text
28 */
29const TIDY_NODETYPE_TEXT = UNKNOWN;
30/**
31 * @var int
32 * @cvalue TidyNode_Start
33 */
34const TIDY_NODETYPE_START = UNKNOWN;
35/**
36 * @var int
37 * @cvalue TidyNode_End
38 */
39const TIDY_NODETYPE_END = UNKNOWN;
40/**
41 * @var int
42 * @cvalue TidyNode_StartEnd
43 */
44const TIDY_NODETYPE_STARTEND = UNKNOWN;
45/**
46 * @var int
47 * @cvalue TidyNode_CDATA
48 */
49const TIDY_NODETYPE_CDATA = UNKNOWN;
50/**
51 * @var int
52 * @cvalue TidyNode_Section
53 */
54const TIDY_NODETYPE_SECTION = UNKNOWN;
55/**
56 * @var int
57 * @cvalue TidyNode_Asp
58 */
59const TIDY_NODETYPE_ASP = UNKNOWN;
60/**
61 * @var int
62 * @cvalue TidyNode_Jste
63 */
64const TIDY_NODETYPE_JSTE = UNKNOWN;
65/**
66 * @var int
67 * @cvalue TidyNode_Php
68 */
69const TIDY_NODETYPE_PHP = UNKNOWN;
70/**
71 * @var int
72 * @cvalue TidyNode_XmlDecl
73 */
74const TIDY_NODETYPE_XMLDECL = UNKNOWN;
75
76/**
77 * @var int
78 * @cvalue TidyTag_UNKNOWN
79 */
80const TIDY_TAG_UNKNOWN = UNKNOWN;
81/**
82 * @var int
83 * @cvalue TidyTag_A
84 */
85const TIDY_TAG_A = UNKNOWN;
86/**
87 * @var int
88 * @cvalue TidyTag_ABBR
89 */
90const TIDY_TAG_ABBR = UNKNOWN;
91/**
92 * @var int
93 * @cvalue TidyTag_ACRONYM
94 */
95const TIDY_TAG_ACRONYM = UNKNOWN;
96/**
97 * @var int
98 * @cvalue TidyTag_ADDRESS
99 */
100const TIDY_TAG_ADDRESS = UNKNOWN;
101/**
102 * @var int
103 * @cvalue TidyTag_ALIGN
104 */
105const TIDY_TAG_ALIGN = UNKNOWN;
106/**
107 * @var int
108 * @cvalue TidyTag_APPLET
109 */
110const TIDY_TAG_APPLET = UNKNOWN;
111/**
112 * @var int
113 * @cvalue TidyTag_AREA
114 */
115const TIDY_TAG_AREA = UNKNOWN;
116/**
117 * @var int
118 * @cvalue TidyTag_B
119 */
120const TIDY_TAG_B = UNKNOWN;
121/**
122 * @var int
123 * @cvalue TidyTag_BASE
124 */
125const TIDY_TAG_BASE = UNKNOWN;
126/**
127 * @var int
128 * @cvalue TidyTag_BASEFONT
129 */
130const TIDY_TAG_BASEFONT = UNKNOWN;
131/**
132 * @var int
133 * @cvalue TidyTag_BDO
134 */
135const TIDY_TAG_BDO = UNKNOWN;
136/**
137 * @var int
138 * @cvalue TidyTag_BGSOUND
139 */
140const TIDY_TAG_BGSOUND = UNKNOWN;
141/**
142 * @var int
143 * @cvalue TidyTag_BIG
144 */
145const TIDY_TAG_BIG = UNKNOWN;
146/**
147 * @var int
148 * @cvalue TidyTag_BLINK
149 */
150const TIDY_TAG_BLINK = UNKNOWN;
151/**
152 * @var int
153 * @cvalue TidyTag_BLOCKQUOTE
154 */
155const TIDY_TAG_BLOCKQUOTE = UNKNOWN;
156/**
157 * @var int
158 * @cvalue TidyTag_BODY
159 */
160const TIDY_TAG_BODY = UNKNOWN;
161/**
162 * @var int
163 * @cvalue TidyTag_BR
164 */
165const TIDY_TAG_BR = UNKNOWN;
166/**
167 * @var int
168 * @cvalue TidyTag_BUTTON
169 */
170const TIDY_TAG_BUTTON = UNKNOWN;
171/**
172 * @var int
173 * @cvalue TidyTag_CAPTION
174 */
175const TIDY_TAG_CAPTION = UNKNOWN;
176/**
177 * @var int
178 * @cvalue TidyTag_CENTER
179 */
180const TIDY_TAG_CENTER = UNKNOWN;
181/**
182 * @var int
183 * @cvalue TidyTag_CITE
184 */
185const TIDY_TAG_CITE = UNKNOWN;
186/**
187 * @var int
188 * @cvalue TidyTag_CODE
189 */
190const TIDY_TAG_CODE = UNKNOWN;
191/**
192 * @var int
193 * @cvalue TidyTag_COL
194 */
195const TIDY_TAG_COL = UNKNOWN;
196/**
197 * @var int
198 * @cvalue TidyTag_COLGROUP
199 */
200const TIDY_TAG_COLGROUP = UNKNOWN;
201/**
202 * @var int
203 * @cvalue TidyTag_COMMENT
204 */
205const TIDY_TAG_COMMENT = UNKNOWN;
206/**
207 * @var int
208 * @cvalue TidyTag_DD
209 */
210const TIDY_TAG_DD = UNKNOWN;
211/**
212 * @var int
213 * @cvalue TidyTag_DEL
214 */
215const TIDY_TAG_DEL = UNKNOWN;
216/**
217 * @var int
218 * @cvalue TidyTag_DFN
219 */
220const TIDY_TAG_DFN = UNKNOWN;
221/**
222 * @var int
223 * @cvalue TidyTag_DIR
224 */
225const TIDY_TAG_DIR = UNKNOWN;
226/**
227 * @var int
228 * @cvalue TidyTag_DIV
229 */
230const TIDY_TAG_DIV = UNKNOWN;
231/**
232 * @var int
233 * @cvalue TidyTag_DL
234 */
235const TIDY_TAG_DL = UNKNOWN;
236/**
237 * @var int
238 * @cvalue TidyTag_DT
239 */
240const TIDY_TAG_DT = UNKNOWN;
241/**
242 * @var int
243 * @cvalue TidyTag_EM
244 */
245const TIDY_TAG_EM = UNKNOWN;
246/**
247 * @var int
248 * @cvalue TidyTag_EMBED
249 */
250const TIDY_TAG_EMBED = UNKNOWN;
251/**
252 * @var int
253 * @cvalue TidyTag_FIELDSET
254 */
255const TIDY_TAG_FIELDSET = UNKNOWN;
256/**
257 * @var int
258 * @cvalue TidyTag_FONT
259 */
260const TIDY_TAG_FONT = UNKNOWN;
261/**
262 * @var int
263 * @cvalue TidyTag_FORM
264 */
265const TIDY_TAG_FORM = UNKNOWN;
266/**
267 * @var int
268 * @cvalue TidyTag_FRAME
269 */
270const TIDY_TAG_FRAME = UNKNOWN;
271/**
272 * @var int
273 * @cvalue TidyTag_FRAMESET
274 */
275const TIDY_TAG_FRAMESET = UNKNOWN;
276/**
277 * @var int
278 * @cvalue TidyTag_H1
279 */
280const TIDY_TAG_H1 = UNKNOWN;
281/**
282 * @var int
283 * @cvalue TidyTag_H2
284 */
285const TIDY_TAG_H2 = UNKNOWN;
286/**
287 * @var int
288 * @cvalue TidyTag_H3
289 */
290const TIDY_TAG_H3 = UNKNOWN;
291/**
292 * @var int
293 * @cvalue TidyTag_H4
294 */
295const TIDY_TAG_H4 = UNKNOWN;
296/**
297 * @var int
298 * @cvalue TidyTag_H5
299 */
300const TIDY_TAG_H5 = UNKNOWN;
301/**
302 * @var int
303 * @cvalue TidyTag_H6
304 */
305const TIDY_TAG_H6 = UNKNOWN;
306/**
307 * @var int
308 * @cvalue TidyTag_HEAD
309 */
310const TIDY_TAG_HEAD = UNKNOWN;
311/**
312 * @var int
313 * @cvalue TidyTag_HR
314 */
315const TIDY_TAG_HR = UNKNOWN;
316/**
317 * @var int
318 * @cvalue TidyTag_HTML
319 */
320const TIDY_TAG_HTML = UNKNOWN;
321/**
322 * @var int
323 * @cvalue TidyTag_I
324 */
325const TIDY_TAG_I = UNKNOWN;
326/**
327 * @var int
328 * @cvalue TidyTag_IFRAME
329 */
330const TIDY_TAG_IFRAME = UNKNOWN;
331/**
332 * @var int
333 * @cvalue TidyTag_ILAYER
334 */
335const TIDY_TAG_ILAYER = UNKNOWN;
336/**
337 * @var int
338 * @cvalue TidyTag_IMG
339 */
340const TIDY_TAG_IMG = UNKNOWN;
341/**
342 * @var int
343 * @cvalue TidyTag_INPUT
344 */
345const TIDY_TAG_INPUT = UNKNOWN;
346/**
347 * @var int
348 * @cvalue TidyTag_INS
349 */
350const TIDY_TAG_INS = UNKNOWN;
351/**
352 * @var int
353 * @cvalue TidyTag_ISINDEX
354 */
355const TIDY_TAG_ISINDEX = UNKNOWN;
356/**
357 * @var int
358 * @cvalue TidyTag_KBD
359 */
360const TIDY_TAG_KBD = UNKNOWN;
361/**
362 * @var int
363 * @cvalue TidyTag_KEYGEN
364 */
365const TIDY_TAG_KEYGEN = UNKNOWN;
366/**
367 * @var int
368 * @cvalue TidyTag_LABEL
369 */
370const TIDY_TAG_LABEL = UNKNOWN;
371/**
372 * @var int
373 * @cvalue TidyTag_LAYER
374 */
375const TIDY_TAG_LAYER = UNKNOWN;
376/**
377 * @var int
378 * @cvalue TidyTag_LEGEND
379 */
380const TIDY_TAG_LEGEND = UNKNOWN;
381/**
382 * @var int
383 * @cvalue TidyTag_LI
384 */
385const TIDY_TAG_LI = UNKNOWN;
386/**
387 * @var int
388 * @cvalue TidyTag_LINK
389 */
390const TIDY_TAG_LINK = UNKNOWN;
391/**
392 * @var int
393 * @cvalue TidyTag_LISTING
394 */
395const TIDY_TAG_LISTING = UNKNOWN;
396/**
397 * @var int
398 * @cvalue TidyTag_MAP
399 */
400const TIDY_TAG_MAP = UNKNOWN;
401/**
402 * @var int
403 * @cvalue TidyTag_MARQUEE
404 */
405const TIDY_TAG_MARQUEE = UNKNOWN;
406/**
407 * @var int
408 * @cvalue TidyTag_MENU
409 */
410const TIDY_TAG_MENU = UNKNOWN;
411/**
412 * @var int
413 * @cvalue TidyTag_META
414 */
415const TIDY_TAG_META = UNKNOWN;
416/**
417 * @var int
418 * @cvalue TidyTag_MULTICOL
419 */
420const TIDY_TAG_MULTICOL = UNKNOWN;
421/**
422 * @var int
423 * @cvalue TidyTag_NOBR
424 */
425const TIDY_TAG_NOBR = UNKNOWN;
426/**
427 * @var int
428 * @cvalue TidyTag_NOEMBED
429 */
430const TIDY_TAG_NOEMBED = UNKNOWN;
431/**
432 * @var int
433 * @cvalue TidyTag_NOFRAMES
434 */
435const TIDY_TAG_NOFRAMES = UNKNOWN;
436/**
437 * @var int
438 * @cvalue TidyTag_NOLAYER
439 */
440const TIDY_TAG_NOLAYER = UNKNOWN;
441/**
442 * @var int
443 * @cvalue TidyTag_NOSAVE
444 */
445const TIDY_TAG_NOSAVE = UNKNOWN;
446/**
447 * @var int
448 * @cvalue TidyTag_NOSCRIPT
449 */
450const TIDY_TAG_NOSCRIPT = UNKNOWN;
451/**
452 * @var int
453 * @cvalue TidyTag_OBJECT
454 */
455const TIDY_TAG_OBJECT = UNKNOWN;
456/**
457 * @var int
458 * @cvalue TidyTag_OL
459 */
460const TIDY_TAG_OL = UNKNOWN;
461/**
462 * @var int
463 * @cvalue TidyTag_OPTGROUP
464 */
465const TIDY_TAG_OPTGROUP = UNKNOWN;
466/**
467 * @var int
468 * @cvalue TidyTag_OPTION
469 */
470const TIDY_TAG_OPTION = UNKNOWN;
471/**
472 * @var int
473 * @cvalue TidyTag_P
474 */
475const TIDY_TAG_P = UNKNOWN;
476/**
477 * @var int
478 * @cvalue TidyTag_PARAM
479 */
480const TIDY_TAG_PARAM = UNKNOWN;
481/**
482 * @var int
483 * @cvalue TidyTag_PLAINTEXT
484 */
485const TIDY_TAG_PLAINTEXT = UNKNOWN;
486/**
487 * @var int
488 * @cvalue TidyTag_PRE
489 */
490const TIDY_TAG_PRE = UNKNOWN;
491/**
492 * @var int
493 * @cvalue TidyTag_Q
494 */
495const TIDY_TAG_Q = UNKNOWN;
496/**
497 * @var int
498 * @cvalue TidyTag_RB
499 */
500const TIDY_TAG_RB = UNKNOWN;
501/**
502 * @var int
503 * @cvalue TidyTag_RBC
504 */
505const TIDY_TAG_RBC = UNKNOWN;
506/**
507 * @var int
508 * @cvalue TidyTag_RP
509 */
510const TIDY_TAG_RP = UNKNOWN;
511/**
512 * @var int
513 * @cvalue TidyTag_RT
514 */
515const TIDY_TAG_RT = UNKNOWN;
516/**
517 * @var int
518 * @cvalue TidyTag_RTC
519 */
520const TIDY_TAG_RTC = UNKNOWN;
521/**
522 * @var int
523 * @cvalue TidyTag_RUBY
524 */
525const TIDY_TAG_RUBY = UNKNOWN;
526/**
527 * @var int
528 * @cvalue TidyTag_S
529 */
530const TIDY_TAG_S = UNKNOWN;
531/**
532 * @var int
533 * @cvalue TidyTag_SAMP
534 */
535const TIDY_TAG_SAMP = UNKNOWN;
536/**
537 * @var int
538 * @cvalue TidyTag_SCRIPT
539 */
540const TIDY_TAG_SCRIPT = UNKNOWN;
541/**
542 * @var int
543 * @cvalue TidyTag_SELECT
544 */
545const TIDY_TAG_SELECT = UNKNOWN;
546/**
547 * @var int
548 * @cvalue TidyTag_SERVER
549 */
550const TIDY_TAG_SERVER = UNKNOWN;
551/**
552 * @var int
553 * @cvalue TidyTag_SERVLET
554 */
555const TIDY_TAG_SERVLET = UNKNOWN;
556/**
557 * @var int
558 * @cvalue TidyTag_SMALL
559 */
560const TIDY_TAG_SMALL = UNKNOWN;
561/**
562 * @var int
563 * @cvalue TidyTag_SPACER
564 */
565const TIDY_TAG_SPACER = UNKNOWN;
566/**
567 * @var int
568 * @cvalue TidyTag_SPAN
569 */
570const TIDY_TAG_SPAN = UNKNOWN;
571/**
572 * @var int
573 * @cvalue TidyTag_STRIKE
574 */
575const TIDY_TAG_STRIKE = UNKNOWN;
576/**
577 * @var int
578 * @cvalue TidyTag_STRONG
579 */
580const TIDY_TAG_STRONG = UNKNOWN;
581/**
582 * @var int
583 * @cvalue TidyTag_STYLE
584 */
585const TIDY_TAG_STYLE = UNKNOWN;
586/**
587 * @var int
588 * @cvalue TidyTag_SUB
589 */
590const TIDY_TAG_SUB = UNKNOWN;
591/**
592 * @var int
593 * @cvalue TidyTag_SUP
594 */
595const TIDY_TAG_SUP = UNKNOWN;
596/**
597 * @var int
598 * @cvalue TidyTag_TABLE
599 */
600const TIDY_TAG_TABLE = UNKNOWN;
601/**
602 * @var int
603 * @cvalue TidyTag_TBODY
604 */
605const TIDY_TAG_TBODY = UNKNOWN;
606/**
607 * @var int
608 * @cvalue TidyTag_TD
609 */
610const TIDY_TAG_TD = UNKNOWN;
611/**
612 * @var int
613 * @cvalue TidyTag_TEXTAREA
614 */
615const TIDY_TAG_TEXTAREA = UNKNOWN;
616/**
617 * @var int
618 * @cvalue TidyTag_TFOOT
619 */
620const TIDY_TAG_TFOOT = UNKNOWN;
621/**
622 * @var int
623 * @cvalue TidyTag_TH
624 */
625const TIDY_TAG_TH = UNKNOWN;
626/**
627 * @var int
628 * @cvalue TidyTag_THEAD
629 */
630const TIDY_TAG_THEAD = UNKNOWN;
631/**
632 * @var int
633 * @cvalue TidyTag_TITLE
634 */
635const TIDY_TAG_TITLE = UNKNOWN;
636/**
637 * @var int
638 * @cvalue TidyTag_TR
639 */
640const TIDY_TAG_TR = UNKNOWN;
641/**
642 * @var int
643 * @cvalue TidyTag_TT
644 */
645const TIDY_TAG_TT = UNKNOWN;
646/**
647 * @var int
648 * @cvalue TidyTag_U
649 */
650const TIDY_TAG_U = UNKNOWN;
651/**
652 * @var int
653 * @cvalue TidyTag_UL
654 */
655const TIDY_TAG_UL = UNKNOWN;
656/**
657 * @var int
658 * @cvalue TidyTag_VAR
659 */
660const TIDY_TAG_VAR = UNKNOWN;
661/**
662 * @var int
663 * @cvalue TidyTag_WBR
664 */
665const TIDY_TAG_WBR = UNKNOWN;
666/**
667 * @var int
668 * @cvalue TidyTag_XMP
669 */
670const TIDY_TAG_XMP = UNKNOWN;
671#ifdef HAVE_TIDYBUFFIO_H
672/**
673 * @var int
674 * @cvalue TidyTag_ARTICLE
675 */
676const TIDY_TAG_ARTICLE = UNKNOWN;
677/**
678 * @var int
679 * @cvalue TidyTag_ASIDE
680 */
681const TIDY_TAG_ASIDE = UNKNOWN;
682/**
683 * @var int
684 * @cvalue TidyTag_AUDIO
685 */
686const TIDY_TAG_AUDIO = UNKNOWN;
687/**
688 * @var int
689 * @cvalue TidyTag_BDI
690 */
691const TIDY_TAG_BDI = UNKNOWN;
692/**
693 * @var int
694 * @cvalue TidyTag_CANVAS
695 */
696const TIDY_TAG_CANVAS = UNKNOWN;
697/**
698 * @var int
699 * @cvalue TidyTag_COMMAND
700 */
701const TIDY_TAG_COMMAND = UNKNOWN;
702/**
703 * @var int
704 * @cvalue TidyTag_DATALIST
705 */
706const TIDY_TAG_DATALIST = UNKNOWN;
707/**
708 * @var int
709 * @cvalue TidyTag_DETAILS
710 */
711const TIDY_TAG_DETAILS = UNKNOWN;
712/**
713 * @var int
714 * @cvalue TidyTag_DIALOG
715 */
716const TIDY_TAG_DIALOG = UNKNOWN;
717/**
718 * @var int
719 * @cvalue TidyTag_FIGCAPTION
720 */
721const TIDY_TAG_FIGCAPTION = UNKNOWN;
722/**
723 * @var int
724 * @cvalue TidyTag_FIGURE
725 */
726const TIDY_TAG_FIGURE = UNKNOWN;
727/**
728 * @var int
729 * @cvalue TidyTag_FOOTER
730 */
731const TIDY_TAG_FOOTER = UNKNOWN;
732/**
733 * @var int
734 * @cvalue TidyTag_HEADER
735 */
736const TIDY_TAG_HEADER = UNKNOWN;
737/**
738 * @var int
739 * @cvalue TidyTag_HGROUP
740 */
741const TIDY_TAG_HGROUP = UNKNOWN;
742/**
743 * @var int
744 * @cvalue TidyTag_MAIN
745 */
746const TIDY_TAG_MAIN = UNKNOWN;
747/**
748 * @var int
749 * @cvalue TidyTag_MARK
750 */
751const TIDY_TAG_MARK = UNKNOWN;
752/**
753 * @var int
754 * @cvalue TidyTag_MENUITEM
755 */
756const TIDY_TAG_MENUITEM = UNKNOWN;
757/**
758 * @var int
759 * @cvalue TidyTag_METER
760 */
761const TIDY_TAG_METER = UNKNOWN;
762/**
763 * @var int
764 * @cvalue TidyTag_NAV
765 */
766const TIDY_TAG_NAV = UNKNOWN;
767/**
768 * @var int
769 * @cvalue TidyTag_OUTPUT
770 */
771const TIDY_TAG_OUTPUT = UNKNOWN;
772/**
773 * @var int
774 * @cvalue TidyTag_PROGRESS
775 */
776const TIDY_TAG_PROGRESS = UNKNOWN;
777/**
778 * @var int
779 * @cvalue TidyTag_SECTION
780 */
781const TIDY_TAG_SECTION = UNKNOWN;
782/**
783 * @var int
784 * @cvalue TidyTag_SOURCE
785 */
786const TIDY_TAG_SOURCE = UNKNOWN;
787/**
788 * @var int
789 * @cvalue TidyTag_SUMMARY
790 */
791const TIDY_TAG_SUMMARY = UNKNOWN;
792/**
793 * @var int
794 * @cvalue TidyTag_TEMPLATE
795 */
796const TIDY_TAG_TEMPLATE = UNKNOWN;
797/**
798 * @var int
799 * @cvalue TidyTag_TIME
800 */
801const TIDY_TAG_TIME = UNKNOWN;
802/**
803 * @var int
804 * @cvalue TidyTag_TRACK
805 */
806const TIDY_TAG_TRACK = UNKNOWN;
807/**
808 * @var int
809 * @cvalue TidyTag_VIDEO
810 */
811const TIDY_TAG_VIDEO = UNKNOWN;
812# endif
813
814function tidy_parse_string(string $string, array|string|null $config = null, ?string $encoding = null): tidy|false {}
815
816function tidy_get_error_buffer(tidy $tidy): string|false {}
817
818function tidy_get_output(tidy $tidy): string {}
819
820function tidy_parse_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): tidy|false {}
821
822function tidy_clean_repair(tidy $tidy): bool {}
823
824function tidy_repair_string(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
825
826function tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
827
828function tidy_diagnose(tidy $tidy): bool {}
829
830function tidy_get_release(): string {}
831
832#ifdef HAVE_TIDYOPTGETDOC
833function tidy_get_opt_doc(tidy $tidy, string $option): string|false {}
834#endif
835
836function tidy_get_config(tidy $tidy): array {}
837
838function tidy_get_status(tidy $tidy): int {}
839
840function tidy_get_html_ver(tidy $tidy): int {}
841
842function tidy_is_xhtml(tidy $tidy): bool {}
843
844function tidy_is_xml(tidy $tidy): bool {}
845
846function tidy_error_count(tidy $tidy): int {}
847
848function tidy_warning_count(tidy $tidy): int {}
849
850function tidy_access_count(tidy $tidy): int {}
851
852function tidy_config_count(tidy $tidy): int {}
853
854function tidy_getopt(tidy $tidy, string $option): string|int|bool {}
855
856function tidy_get_root(tidy $tidy): ?tidyNode {}
857
858function tidy_get_html(tidy $tidy): ?tidyNode {}
859
860function tidy_get_head(tidy $tidy): ?tidyNode {}
861
862function tidy_get_body(tidy $tidy): ?tidyNode {}
863
864class tidy
865{
866    public ?string $errorBuffer = null;
867    public ?string $value = null;
868
869    public function __construct(?string $filename = null, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false) {}
870
871    /**
872     * @tentative-return-type
873     * @alias tidy_getopt
874     */
875    public function getOpt(string $option): string|int|bool {}
876
877    /**
878     * @tentative-return-type
879     * @alias tidy_clean_repair
880     */
881    public function cleanRepair(): bool {}
882
883    /** @tentative-return-type */
884    public function parseFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): bool {}
885
886    /** @tentative-return-type */
887    public function parseString(string $string, array|string|null $config = null, ?string $encoding = null): bool {}
888
889    /**
890     * @tentative-return-type
891     * @alias tidy_repair_string
892     */
893    public static function repairString(string $string, array|string|null $config = null, ?string $encoding = null): string|false {}
894
895    /**
896     * @tentative-return-type
897     * @alias tidy_repair_file
898     */
899    public static function repairFile(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): string|false {}
900
901    /**
902     * @tentative-return-type
903     * @alias tidy_diagnose
904     */
905    public function diagnose(): bool {}
906
907    /**
908     * @tentative-return-type
909     * @alias tidy_get_release
910     */
911    public function getRelease(): string {}
912
913    /**
914     * @tentative-return-type
915     * @alias tidy_get_config
916     */
917    public function getConfig(): array {}
918
919    /**
920     * @tentative-return-type
921     * @alias tidy_get_status
922     */
923    public function getStatus(): int {}
924
925    /**
926     * @tentative-return-type
927     * @alias tidy_get_html_ver
928     */
929    public function getHtmlVer(): int {}
930
931#ifdef HAVE_TIDYOPTGETDOC
932    /**
933     * @tentative-return-type
934     * @alias tidy_get_opt_doc
935     */
936    public function getOptDoc(string $option): string|false {}
937#endif
938
939    /**
940     * @tentative-return-type
941     * @alias tidy_is_xhtml
942     */
943    public function isXhtml(): bool {}
944
945    /**
946     * @tentative-return-type
947     * @alias tidy_is_xml
948     */
949    public function isXml(): bool {}
950
951    /**
952     * @tentative-return-type
953     * @alias tidy_get_root
954     */
955    public function root(): ?tidyNode {}
956
957    /**
958     * @tentative-return-type
959     * @alias tidy_get_head
960     */
961    public function head(): ?tidyNode {}
962
963    /**
964     * @tentative-return-type
965     * @alias tidy_get_html
966     */
967    public function html(): ?tidyNode {}
968
969    /**
970     * @tentative-return-type
971     * @alias tidy_get_body
972     */
973    public function body(): ?tidyNode {}
974}
975
976final class tidyNode
977{
978    public readonly string $value;
979    public readonly string $name;
980    public readonly int $type;
981    public readonly int $line;
982    public readonly int $column;
983    public readonly bool $proprietary;
984    public readonly ?int $id;
985    public readonly ?array $attribute;
986    public readonly ?array $child;
987
988    private function __construct() {}
989
990    public function hasChildren(): bool {}
991
992    public function hasSiblings(): bool {}
993
994    public function isComment(): bool {}
995
996    public function isHtml(): bool {}
997
998    public function isText(): bool {}
999
1000    public function isJste(): bool {}
1001
1002    public function isAsp(): bool {}
1003
1004    public function isPhp(): bool {}
1005
1006    public function getParent(): ?tidyNode {}
1007}
1008