import { AgentSecret } from "cojson"; import type { Account } from "../coValues/account.js"; import type { ID } from "../internal.js"; import { AuthCredentials } from "../types.js"; export type AuthSetPayload = { accountID: ID; secretSeed?: Uint8Array; accountSecret: AgentSecret; provider: "anonymous" | "clerk" | "betterauth" | "demo" | "passkey" | "passphrase" | string; }; export declare class AuthSecretStorage { private storageKey; private listeners; isAuthenticated: boolean; constructor(storageKey?: string); getStorageKey(): string; migrate(): Promise; get(): Promise; setWithoutNotify(payload: AuthSetPayload): Promise; set(payload: AuthSetPayload): Promise; getIsAuthenticated(data: AuthCredentials | null): boolean; onUpdate(handler: (isAuthenticated: boolean) => void): () => void; emitUpdate(data: AuthCredentials | null): void; clearWithoutNotify(): Promise; clear(): Promise; } //# sourceMappingURL=AuthSecretStorage.d.ts.map