/** The package token — created once here; `contract.ts` re-exports it and * `host-contract.ts` widens it. */ import { createCapabilityToken } from '@embedpdf/core'; import type { SearchCapability } from './contract'; export const SearchToken = createCapabilityToken('search', { hint: "add searchPlugin() from '@embedpdf/plugin-search' to your plugins list", // Without a document, an adapter's stand-in rejects these with `not-ready`, as the // capability would; the type asks for every member that returns a promise. promises: { search: true, refresh: true, findAll: true, }, });