UNPKG

armpit

Version:

Another resource manager programming interface toolkit.

28 lines 961 B
import { CallableClassBase } from "./tsUtils.js"; type EncodingKind = "alphanumeric" | "hex" | "numeric" | "alpha"; interface NameHashOptions { type?: EncodingKind; defaultLength?: number; } export interface NameHash { (length?: number): string; } export declare class NameHash extends CallableClassBase { #private; private static getDefaultLength; private static calculateSha256Hash; private static calculateSha256Hmac; private static packBufferIntoInt; private static toTextHex; private static radix26ToAlpha; private static toTextBaseN; constructor(value: string); constructor(value: string, options: NameHashOptions); constructor(...values: string[]); constructor(...args: [...values: string[], options: NameHashOptions]); concat(value: string): NameHash; toString(length?: number): string; protected fnImpl(length?: number): string; } export {}; //# sourceMappingURL=nameHash.d.ts.map