import { v2, v3 } from "@trustvc/trustvc"; import { SignedVerifiableCredential, OpenAttestationDocument, WrappedDocument } from "@trustvc/trustvc"; import { FunctionComponent } from "react"; import { Attachment, TemplateRegistry, TemplateWithTypes } from "./types"; export declare const repeat: (times: number) => (callback: (index: number) => any) => any[]; export declare const noop: () => void; export declare const inIframe: () => boolean; export declare const isV2Document: (document: any) => document is v2.OpenAttestationDocument; export declare const isV3Document: (document: any) => document is v3.OpenAttestationDocument; export declare const isV2Attachment: (attachment: any) => attachment is v2.Attachment; export declare const getAttachmentMimeType: (attachment: Attachment) => string; export declare function documentTemplates(document: D, templateRegistry: TemplateRegistry, attachmentToComponent: (attachment: Attachment, document: D) => FunctionComponent | null, setForceDefault?: boolean): TemplateWithTypes[]; export type WrappedOrSignedOpenAttestationDocument = WrappedDocument; export declare const getTemplateUrl: (document: WrappedOrSignedOpenAttestationDocument) => string | undefined;