import type { Subscription } from '@novasamatech/host-api'; import type { ResultAsync } from 'neverthrow'; export declare function unwrapVersionedResult(version: V, result: ResultAsync<{ tag: V; value: OK; }, { tag: V; value: KO; }>): ResultAsync; export declare function resultToPromise(result: ResultAsync): Promise; /** Strips the version envelope from a subscription's interrupt payload. */ export declare function unwrapVersionedSubscription(subscriber: Subscription<{ tag: string; value: Interrupt; }>): Subscription;