import { GetPublicKeyRequest, GetPublicKeyResponse, CSGetLearnerCerificateRequest, CsVerifyCertificateRequest, CsLearnerCertificateResponse } from '@project-sunbird/client-services/services/certificate'; import { Observable } from 'rxjs'; import { DownloadCertificateRequest } from '../../course/def/download-certificate-request'; import { DownloadCertificateResponse } from '../../course/def/download-certificate-response'; import { GetCertificateRequest } from '../../course/def/get-certificate-request'; export { GetPublicKeyRequest, GetPublicKeyResponse, FetchCertificateRequest, FetchCertificateResponse, CSGetLearnerCerificateRequest, CsVerifyCertificateResponse } from '@project-sunbird/client-services/services/certificate'; export { CsLearnerCertificate } from '@project-sunbird/client-services/models'; export interface CertificateService { getCertificates(req: CSGetLearnerCerificateRequest): Observable; getPublicKey(request: GetPublicKeyRequest): Observable; getCertificate(downloadCertificateRequest: GetCertificateRequest): Observable; downloadCertificate(downloadCertificateRequest: DownloadCertificateRequest): Observable; downloadLegacyeCertificate(downloadCertificateRequest: GetCertificateRequest): Observable; isCertificateCached(request: GetCertificateRequest): Observable; getEncodedData(req: string): Promise; verifyCertificate(req: CsVerifyCertificateRequest): Observable; }