1<?php
2
3/** @generate-class-entries */
4
5class Transliterator
6{
7    public string $id;
8
9    final private function __construct() {}
10
11    /**
12     * @tentative-return-type
13     * @alias transliterator_create
14     */
15    public static function create(string $id, int $direction = Transliterator::FORWARD): ?Transliterator {}
16
17    /**
18     * @tentative-return-type
19     * @alias transliterator_create_from_rules
20     */
21    public static function createFromRules(string $rules, int $direction = Transliterator::FORWARD): ?Transliterator {}
22
23    /**
24     * @tentative-return-type
25     * @alias transliterator_create_inverse
26     */
27    public function createInverse(): ?Transliterator {}
28
29    /**
30     * @return array<int, string>|false
31     * @tentative-return-type
32     * @alias transliterator_list_ids
33     */
34    public static function listIDs(): array|false {}
35
36    /**
37     * @tentative-return-type
38     * @alias transliterator_transliterate
39     */
40    public function transliterate(string $string, int $start = 0, int $end = -1): string|false {}
41
42    /**
43     * @tentative-return-type
44     * @alias transliterator_get_error_code
45     */
46    public function getErrorCode(): int|false {}
47
48    /**
49     * @tentative-return-type
50     * @alias transliterator_get_error_message
51     */
52    public function getErrorMessage(): string|false {}
53}
54