@types/keygrip
Version:
TypeScript definitions for keygrip
15 lines (11 loc) • 397 B
TypeScript
interface Keygrip {
sign(data: any): string;
verify(data: any, digest: string): boolean;
index(data: any, digest: string): number;
}
interface KeygripFunction {
new(keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
(keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
}
declare const Keygrip: KeygripFunction;
export = Keygrip;