import type { AuthPresenter, ChainProvider, CoreStorage, ExtrinsicVersionHost, Permissions, ProductStorage, RequiredHostCallbacks, UserConfirmation } from "../generated/host-callbacks.js"; /** What a headless pairing host must provide itself. */ export interface HeadlessHostOptions { /** Persists the core's own state: the paired session, keys, allowances. */ coreStorage: CoreStorage; /** Opens a JSON-RPC connection to the chain with a given genesis hash. */ chain: ChainProvider; /** Receives auth state changes, including the pairing deeplink to show. */ auth: Required; /** Backs the product's `localStorage`. */ productStorage: ProductStorage; /** Genesis hashes of the chains `chain.connect` can reach. */ servedChains: string[]; /** * The user's answer to reviews: `getAccount` asks to disclose the product * subtree, `signRaw` to sign. A CLI asks at its prompt. */ userConfirmation: Required; /** The user's answer to permissions, such as `ChainSubmit` before signing. */ permissions: Permissions; /** * The chains the host builds V5 transactions for. Without it every chain * builds V4. */ extrinsicVersion?: Required; } /** Fill in every capability a headless pairing host does not own. */ export declare function createHeadlessHostCallbacks(host: HeadlessHostOptions): RequiredHostCallbacks;