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