import { isly } from "isly"; import { Hash as PasswordHash } from "./Hash"; export type Password = string | Password.Hash; export declare namespace Password { export import Hash = PasswordHash; const type: isly.Type; const is: (value: any | Password) => value is Password; const flaw: (value: Password | any) => isly.Flaw; function hash(algorithm: { sign: (data: string) => Promise; }, password: string, salt?: string): Promise; function verify(algorithm: { sign: (data: string) => Promise; }, password: string, hash: Hash): Promise; }