// generated by diplomat-tool import type { CodePointSetData } from "./CodePointSetData" import type { ScriptExtensionsSet } from "./ScriptExtensionsSet" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * A slightly faster ScriptWithExtensions object * * See the [Rust documentation for `ScriptWithExtensionsBorrowed`](https://docs.rs/icu/2.1.1/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html) for more information. */ export class ScriptWithExtensionsBorrowed { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Get the Script property value for a code point * Get the Script property value for a code point * * See the [Rust documentation for `get_script_val`](https://docs.rs/icu/2.1.1/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_val) for more information. */ getScriptVal(ch: codepoint): number; /** * Get the Script property value for a code point * * See the [Rust documentation for `get_script_extensions_val`](https://docs.rs/icu/2.1.1/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_val) for more information. */ getScriptExtensionsVal(ch: codepoint): ScriptExtensionsSet; /** * Check if the Script_Extensions property of the given code point covers the given script * * See the [Rust documentation for `has_script`](https://docs.rs/icu/2.1.1/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.has_script) for more information. */ hasScript(ch: codepoint, script: number): boolean; /** * Build the CodePointSetData corresponding to a codepoints matching a particular script * in their Script_Extensions * * See the [Rust documentation for `get_script_extensions_set`](https://docs.rs/icu/2.1.1/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_set) for more information. */ getScriptExtensionsSet(script: number): CodePointSetData; }