import type { HandlerContext } from './derived-core.js'; /** A person a vendor's pages know: their email, and whatever the vendor's sign-up keeps beside it. */ export type Person = Record & { email: string; }; /** A password as a World keeps it: its hash, salted by whose it is. */ export declare const passwordHash: (email: string, password: string) => string; /** A person, their password's hash and the fields the vendor's sign-up keeps, recorded. */ export declare function recordPerson(ctx: HandlerContext, email: string, password: string, fields?: Record): Promise; /** The person with this email, or undefined. */ export declare const personOf: (ctx: HandlerContext, email: string) => Person | undefined; /** A person's fields as a reader shows them (the CLI's log and diff, a diff's field changes): the password's hash as * `(set)`, never its value. A changeset keeps the hash, which its replay writes (ADR 0025). */ export declare function shownPersonFields(fields: Record): Record; /** The person whose email and password these are, or undefined. */ export declare function personWith(ctx: HandlerContext, email: string, password: string): Person | undefined;