mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 09:51:28 +00:00
20 lines
421 B
TypeScript
20 lines
421 B
TypeScript
declare module "bidi-js" {
|
|
interface BidiParagraph {
|
|
start: number;
|
|
end: number;
|
|
level: number;
|
|
}
|
|
|
|
interface BidiEmbeddingLevels {
|
|
levels: Uint8Array;
|
|
paragraphs: BidiParagraph[];
|
|
}
|
|
|
|
interface Bidi {
|
|
getBidiCharTypeName(char: string): string;
|
|
getEmbeddingLevels(text: string, baseDirection?: "ltr" | "rtl"): BidiEmbeddingLevels;
|
|
}
|
|
|
|
export default function bidiFactory(): Bidi;
|
|
}
|