import { SigningStargateClient } from "@cosmjs/stargate"; import { DeliverTxResponse } from "@cosmjs/stargate/build/stargateclient"; import { CertificateFilter, QueryCertificatesResponse } from "@akashnetwork/akash-api/akash/cert/v1beta3"; import type { pems } from "./generate509"; import type { CertificatePem } from "./certificate-manager/CertificateManager"; export type { pems }; /** * Deprecated type for CertificatePem with an additional `csr` field. * @deprecated Use `CertificatePem` with `cert` instead of `csr`. */ export type CertificatePemDeprecated = CertificatePem & { csr: string; }; /** * Broadcasts a certificate to the blockchain. * @param {Pick | pems} pem - The certificate PEM object. * @param {string} owner - The owner of the certificate. * @param {SigningStargateClient} client - The Stargate client used for signing and broadcasting. * @returns {Promise} A promise that resolves to the transaction response. */ export declare function broadcastCertificate(pem: Pick | pems, owner: string, client: SigningStargateClient): Promise; /** * Creates a new certificate for a given Bech32 address. * @param {string} bech32Address - The Bech32 address for which to create the certificate. * @returns {Promise} A promise that resolves to the deprecated certificate PEM object. */ export declare function createCertificate(bech32Address: string): Promise; /** * Revokes a certificate on the blockchain. * @param {string} owner - The owner of the certificate. * @param {string} serial - The serial number of the certificate to revoke. * @param {SigningStargateClient} client - The Stargate client used for signing and broadcasting. * @returns {Promise} A promise that resolves to the transaction response. */ export declare function revokeCertificate(owner: string, serial: string, client: SigningStargateClient): Promise; /** * Queries certificates based on a filter. * @param {CertificateFilter} filter - The filter criteria for querying certificates. * @returns {Promise} A promise that resolves to the query response. */ export declare function queryCertificates(filter: CertificateFilter): Promise;