import type { GetIdSdk } from '..'; export declare const eventStepValues: readonly ["welcome", "error", "upload", "verify", "change-device", "consent", "form", "document-type", "document-source-choice", "document-from-gallery", "document-rules", "front-side-from-gallery", "back-side-from-gallery", "front-or-single-guide", "front-or-single", "front-guide", "front-rules", "front", "front-preview", "back-guide", "back-rules", "back", "back-preview", "single-guide", "single", "nfc", "video", "video-preview", "video-thanks", "selfie-guide", "selfie-rules", "selfie-preview", "selfie", "liveness", "liveness-preparations", "loading", "thank-you", "waiting-complete", "front-retake", "back-retake", "selfie-retake", "jumping", "jump-env-open", "prediction-stopped", "init-sdk", "proof-of-address-document-type", "proof-of-address-form", "proof-of-address-add-document", "proof-of-address-preview", "passive-liveness"]; export type EventStep = (typeof eventStepValues)[number]; export declare const eventStepPhaseValues: readonly ["started", "completed", "go-back", "check-prediction", "DocumentDetectionStopped"]; export type EventStepPhase = (typeof eventStepPhaseValues)[number]; export type ClientTimestamp = string; export type PostEventRequestBody = { event: { step: EventStep; stepPhase?: EventStepPhase; clientTimestamp: ClientTimestamp; /** * All the messages from the liveness server should be resent as is. */ livenessServerMessage?: Record; additional?: { retakeCode?: string; }; }; }; type PostEventResult = Promise; type PostEventProps = { requestBody: PostEventRequestBody; sdk: GetIdSdk; }; export type TrySendEvent = (step: EventStep, stepPhase?: EventStepPhase, additional?: Record, livenessServerMessage?: Record, screenEvent?: unknown) => Promise; export declare const postEvent: ({ sdk, requestBody, }: PostEventProps) => PostEventResult; export default postEvent; //# sourceMappingURL=postEvent.d.ts.map