AFFiNE/packages/backend/storage/index.d.ts
2024-01-31 06:54:33 +00:00

14 lines
447 B
TypeScript

/* auto-generated by NAPI-RS */
/* eslint-disable */
/**
* Merge updates in form like `Y.applyUpdate(doc, update)` way and return the
* result binary.
*/
export function mergeUpdatesInApplyWay(updates: Array<Buffer>): Buffer
export function mintChallengeResponse(resource: string, bits?: number | undefined | null): Promise<string>
export function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>