The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type { CustomType, HybridObject } from "react-native-nitro-modules"; |
| 2 | |
| 3 | // Converted by cpp/SourceText.hpp, which reads the string without Hermes' slow UTF-16 to UTF-8 path. |
| 4 | type SourceText = CustomType<string, "SourceText", { include: "SourceText.hpp" }>; |
| 5 | |
| 6 | export interface T3Highlights extends HybridObject<{ ios: "c++"; android: "c++" }> { |
| 7 | /** |
| 8 | * Lexes `source` with @pierre/highlights language `language`. Returns |
| 9 | * `(endUtf16, tokenId)` uint32 pairs, where token ID 0xffffffff ends a line, |
| 10 | * or undefined when the lexer could not run. |
| 11 | */ |
| 12 | tokenize(source: SourceText, language: number): ArrayBuffer | undefined; |
| 13 | } |