UNPKG

@zsviczian/excalidraw

Version:
30 lines (29 loc) 1.12 kB
export declare const BASE_62_DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; /** * @param {string} key * @param {string} digits * @return {void} */ export declare function validateOrderKey(key: string, digits?: string): void; /** * @param {string | null | undefined} a * @param {string | null | undefined} b * @param {string=} digits * @return {string} */ export declare function generateKeyBetween(a: string | null | undefined, b: string | null | undefined, digits?: string): string; /** * same preconditions as generateKeysBetween. * n >= 0. * Returns an array of n distinct keys in sorted order. * If a and b are both null, returns [a0, a1, ...] * If one or the other is null, returns consecutive "integer" * keys. Otherwise, returns relatively short keys between * a and b. * @param {string | null | undefined} a * @param {string | null | undefined} b * @param {number} n * @param {string} digits * @return {string[]} */ export declare function generateNKeysBetween(a: string | null | undefined, b: string | null | undefined, n: number, digits?: string): string[];