UNPKG

@idscan/idvc2

Version:

component for the capturing documents

25 lines (24 loc) 1.12 kB
import { DefaultConfigName, DocumentType } from '../../defaultConfig'; import { DocumentTypeName } from '../../environment/documentTypes'; import { StepType } from '../../environment/stepsDescription'; import { IDocumentTypeConfig, IValidator } from '../validator'; export interface IValidateDocumentTypes { types: any[]; steps: any[]; commonStepTypes: Set<StepType>; documentTypes: IDocumentTypeConfig; tooltipTextMap: Partial<Record<DocumentTypeName, string>>; } declare class ValidateDocumentTypes implements IValidator<DocumentType[]> { types: any[]; steps: any[]; commonStepTypes: Set<StepType>; documentTypes: IDocumentTypeConfig; tooltipTextMap: Partial<Record<DocumentTypeName, string>>; static checkIsDocumentTypes(obj: unknown): obj is IValidateDocumentTypes; validate(val: DocumentType[], fallback: DocumentType[], configName: DefaultConfigName): IValidateDocumentTypes; validateTypes(types: string[]): DocumentTypeName[]; transformDocType({ type, steps }: DocumentType): void; setCommonStepTypes(): void; } export default ValidateDocumentTypes;