/** * @file versioning.ts * Describes the helper methods for checking client version against form version */ import { App } from '@globalid/attestations-types'; import { SandboxFormDefinition } from '../interfaces'; declare type VersionAppModel = App.Model; declare type VersionSandboxModel = SandboxFormDefinition; declare type VersionForm = Partial; /** * getClientVersion * returns the version defined by the client VERSION environment variable passed from web-client */ export declare const getClientVersion: () => string; /** * getFormVersion * returns a string of the attestation form version * @param form The form definition to check (Either an agency form definition or a sandbox form definition) */ export declare const getFormVersion: (form: VersionForm) => string; /** * doesVersionSatisfy * @param clientVersion The version of the client * @param formVersion The version of the form */ export declare const doesVersionSatisfy: (clientVersion: string, formVersion: string) => boolean; export {};