@documedis-components/prescription-sign
Version:
React component for signing electronic prescriptions with HIN authentication
21 lines (20 loc) • 792 B
TypeScript
import { ActorRef, AnyMachineSnapshot } from 'xstate';
import { HINClient } from '../integration/hin';
import { PrescriptionSignEvents } from '../types';
export declare const validateCHMEDActor: import('xstate').PromiseActorLogic<void, {
encodedCHMED?: string;
parent: ActorRef<AnyMachineSnapshot, PrescriptionSignEvents>;
hinClient: HINClient;
sessionToken?: string;
}, import('xstate').EventObject>;
export declare const signCHMEDRxActor: import('xstate').PromiseActorLogic<{
signedPrescription: string;
generatedPdf?: string;
}, {
encodedCHMED?: string;
shouldGeneratePdf: boolean;
parent: ActorRef<AnyMachineSnapshot, PrescriptionSignEvents>;
hinClient: HINClient;
sessionToken?: string;
recover: boolean;
}, import('xstate').EventObject>;