import { CryptoProvider } from "cojson"; import type { AuthenticateAccountFunction, RegisterAccountFunction } from "../types.js"; import { AuthSecretStorage } from "./AuthSecretStorage.js"; /** * `PassphraseAuth` provides a `JazzAuth` object for passphrase authentication. * * ```ts * import { PassphraseAuth } from "jazz-tools"; * * const auth = new PassphraseAuth(crypto, jazzContext.authenticate, new AuthSecretStorage(), wordlist); * ``` * * @category Auth Providers */ export declare class PassphraseAuth { private crypto; private authenticate; private register; private authSecretStorage; wordlist: string[]; passphrase: string; constructor(crypto: CryptoProvider, authenticate: AuthenticateAccountFunction, register: RegisterAccountFunction, authSecretStorage: AuthSecretStorage, wordlist: string[]); logIn: (passphrase: string) => Promise; signUp: (name?: string) => Promise; registerNewAccount: (passphrase: string, name: string) => Promise; getCurrentAccountPassphrase: () => Promise; generateRandomPassphrase: () => string; loadCurrentAccountPassphrase: () => Promise; listeners: Set<() => void>; subscribe: (callback: () => void) => () => void; notify(): void; } //# sourceMappingURL=PassphraseAuth.d.ts.map