export declare const DEFAULT_BROWSER_EXTENSION_BASE_URL = "https://home.huniu.fun:8183"; export declare const DEFAULT_PASSWORD_VAULT_ID = "personal"; export declare const DEFAULT_PASSWORD_VAULT_NAME = "Personal"; export type PasswordVaultItemType = "login" | "credit_card" | "identity" | "secure_note" | "passkey"; export interface PasswordVault { id: string; name: string; createdAt: string; updatedAt: string; } export interface PasswordVaultItem { id: string; vaultId: string; type: PasswordVaultItemType; title: string; username?: string; password?: string; urls: string[]; notes?: string; fields: Record; tags: string[]; favorite: boolean; createdAt: string; updatedAt: string; lastUsedAt?: string; passwordUpdatedAt?: string; } export interface PasswordVaultItemInput { vaultId?: string; type?: PasswordVaultItemType; title?: string; username?: string; password?: string; urls?: string[]; notes?: string; fields?: Record; tags?: string[]; favorite?: boolean; } export interface PasswordVaultItemFilter { q?: string; url?: string; type?: PasswordVaultItemType; vaultId?: string; includeArchived?: boolean; limit?: number; } interface PasswordIssue { itemId: string; title: string; kind: "weak_password" | "reused_password" | "missing_url" | "old_password" | "passkey_available"; severity: "low" | "medium" | "high"; message: string; } export interface PasswordSecurityReport { totalItems: number; loginItems: number; weakPasswords: number; reusedPasswords: number; missingUrls: number; oldPasswords: number; passkeyItems: number; issues: PasswordIssue[]; } export declare function nowIso(): string; export declare function normalizePasswordItemType(value: unknown): PasswordVaultItemType; export declare function normalizeVaultName(value: unknown): string; export declare function normalizePasswordItemInput(input: PasswordVaultItemInput): Required> & PasswordVaultItemInput; export declare function itemMatchesFilter(item: PasswordVaultItem, filter: PasswordVaultItemFilter): boolean; export declare function scorePasswordStrength(password: string | undefined): number; export declare function buildPasswordSecurityReport(items: PasswordVaultItem[], now?: number): PasswordSecurityReport; export interface PasswordGeneratorOptions { length?: number; digits?: boolean; symbols?: boolean; } /** AES-256-GCM at-rest wrapper. Legacy plaintext values pass through on read. */ export declare function encryptVaultSecret(plaintext: string, secret: string): string; export declare function decryptVaultSecret(value: string | undefined, secret: string | null): string | undefined; export declare function isEncryptedVaultSecret(value: string | undefined): boolean; export declare function generatePassword(options?: PasswordGeneratorOptions): string; export declare function generateTotpCode(secret: string, timeMs?: number, digits?: number, period?: number): string; export {};