import type { BlokkliAdapter } from '#blokkli/editor/adapter'; import type { BlokkliUser } from '../types/user.js'; export type UserProvider = { /** * The user currently editing. */ current: BlokkliUser; /** * Whether the given user id matches the current user. */ isCurrent: (id: string) => boolean; /** * Load the list of users available in the editor (e.g. for @-mentions). * The first call invokes the adapter; subsequent calls return the cached * result. Adapters that don't implement getBlokkliUsers yield an empty * list. The cache is a plain (non-reactive) variable. */ loadUsers: () => Promise; }; export default function (adapter: BlokkliAdapter): Promise;