2023-10-17 09:15:55 +03:00
|
|
|
/* auto-generated by NAPI-RS */
|
2023-12-06 11:03:05 +03:00
|
|
|
/* eslint-disable */
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare class Tokenizer {
|
2024-05-16 10:55:10 +03:00
|
|
|
count(content: string, allowedSpecial?: Array<string> | undefined | null): number
|
|
|
|
}
|
|
|
|
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare function fromModelName(modelName: string): Tokenizer | null
|
2023-10-17 09:15:55 +03:00
|
|
|
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare function getMime(input: Uint8Array): string
|
2024-04-29 07:46:26 +03:00
|
|
|
|
2024-09-10 07:03:58 +03:00
|
|
|
export declare function htmlSanitize(input: string): string
|
|
|
|
|
2023-12-06 11:03:05 +03:00
|
|
|
/**
|
|
|
|
* Merge updates in form like `Y.applyUpdate(doc, update)` way and return the
|
|
|
|
* result binary.
|
|
|
|
*/
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare function mergeUpdatesInApplyWay(updates: Array<Buffer>): Buffer
|
2023-12-06 11:03:05 +03:00
|
|
|
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
|
2023-12-06 11:03:05 +03:00
|
|
|
|
2024-07-08 10:04:37 +03:00
|
|
|
export declare function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
|
2023-12-06 11:03:05 +03:00
|
|
|
|