import { UserSession, ProductAccountRef, ProductSubtreeOptions } from '@parity/product-sdk-terminal'; export { INCOMPLETE_SESSION_MESSAGE, ProductAccountRef, sessionRootPublicKey } from '@parity/product-sdk-terminal'; import { PolkadotSigner } from 'polkadot-api'; /** * Session-backed `PolkadotSigner` for a product account, built on * product-sdk-terminal's `createSessionSignerForAccount`. * * RFC-0022 puts the product account at `//product//{productId}/{index}`. The * first two junctions are hard, so the key cannot be derived from the session's * root public key: the SDK asks the phone for the `//product//{productId}` * subtree key once and caches it in `{appId}_ProductSubtrees.json`. */ declare const SESSION_EXPIRED_MESSAGE: string; /** A healthy phone answers in 3-30s; host-papp's own deadline is 240s. */ declare const SUBTREE_TIMEOUT_MS = 60000; /** * The product account public key for `ref`. Reaches the phone only when the * subtree key is not cached yet, which is normally once, right after pairing. */ declare function deriveProductPublicKey(session: UserSession, ref: ProductAccountRef, options?: ProductSubtreeOptions): Promise; declare function createSessionSigner(session: UserSession, ref: ProductAccountRef, options?: ProductSubtreeOptions): Promise; export { SESSION_EXPIRED_MESSAGE, SUBTREE_TIMEOUT_MS, createSessionSigner, deriveProductPublicKey };