Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
20 lines
890 B
Plaintext
20 lines
890 B
Plaintext
//#region src/utils/buffer.d.ts
|
|
/**
|
|
* @module
|
|
* Buffer utility.
|
|
*/
|
|
export declare const equal: (a: ArrayBuffer, b: ArrayBuffer) => boolean;
|
|
type StringHashFunction = (input: string) => string | null | Promise<string | null>;
|
|
type TimingSafeEqual = {
|
|
(a: string, b: string, hashFunction?: StringHashFunction): Promise<boolean>;
|
|
/**
|
|
* @deprecated object and boolean signatures that take boolean as first and second arguments, and functions with signatures that take non-string arguments have been deprecated
|
|
*/
|
|
(a: string | object | boolean, b: string | object | boolean, hashFunction?: Function): Promise<boolean>;
|
|
};
|
|
export declare const timingSafeEqual: TimingSafeEqual;
|
|
export declare const bufferToString: (buffer: ArrayBuffer) => string;
|
|
export declare const bufferToFormData: (arrayBuffer: ArrayBuffer, contentType: string) => Promise<FormData>;
|
|
//#endregion
|
|
export {};
|