import { type CSR, type CSRResponse } from '../../api/cloud/EnvCSRsApi'; import { State } from '../../shared/State'; export type EnvCSR = { /** * Read CSR by id * @param {string} csrId ID of the CSR * @returns {Promise} a promise that resolves to a CSRResponse object */ readCSR(csrId: string): Promise; /** * Read all CSRs * @returns {Promise} a promise that resolves to an array of CSRResponse objects */ readCSRs(): Promise; /** * Create CSR * @param {CSR} csr CSR object * @returns {Promise} a promise that resolves to a CSRResponse object */ createCSR(csr: CSR): Promise; /** * Create CSR * @param {'rsa' | 'ecdsa'} algorithm The algorithm for the private key. The encryption algorithm will either be RSA-2048 or ECDSA P-256 depending on the algorithm choice. The default is RSA-2048. * @param {string} businessCategory Category of business, such as "Private Organization", “Government Entity”, “Business Entity”, or “Non-Commercial Entity”. Relevant for EV certificates. * @param {string} city City * @param {string} commonName Domain name that the SSL certificate is securing * @param {string} country Two-letter ISO-3166 country code: string[A-Z]{2} * @param {string} email Email: string^\S+@\S+$ * @param {string} jurisdictionCity This field contains only information relevant to the Jurisdiction of Incorporation or Registration. Relevant for EV certificates. * @param {string} jurisdictionCountry This field contains only information relevant to the Jurisdiction of Incorporation or Registration. Relevant for EV certificates. * @param {string} jurisdictionState This field contains only information relevant to the Jurisdiction of Incorporation or Registration. Relevant for EV certificates. * @param {string} organization Full name of company * @param {string} organizationalUnit Company section or department * @param {string} postalCode Zip code * @param {string} serialNumber The Registration (or similar) Number assigned to the Subject by the Incorporating or Registration Agency in its Jurisdiction of Incorporation or Registration. Relevant for EV certificates. * @param {string} state State * @param {string} streetAddress Address * @param {string[]} subjectAlternativeNames Additional domain or domains that the SSL certificate is securing * @returns {Promise} a promise that resolves to a CSRResponse object */ createCSR2(algorithm: 'rsa' | 'ecdsa', businessCategory: string, city: string, commonName: string, country: string, email: string, jurisdictionCity: string, jurisdictionCountry: string, jurisdictionState: string, organization: string, organizationalUnit: string, postalCode: string, serialNumber: string, state: string, streetAddress: string, subjectAlternativeNames: string[]): Promise; /** * Update CSR * @param {string} csrId ID of the CSR * @param {string} certificate The matching signed certificate for the request. This should only be set on update requests to upload the certificate. * @returns {Promise} a promise that resolves to a CSRResponse object */ updateCSR(csrId: string, certificate: string): Promise; /** * Delete CSR * @param {string} csrId ID of the CSR * @returns {Promise} a promise that resolves to a CSRResponse object */ deleteCSR(csrId: string): Promise; /** * Delete all CSRs * @returns {Promise} a promise that resolves to an array of CSRResponse objects */ deleteCSRs(): Promise; }; declare const _default: (frodoState: State) => EnvCSR; export default _default; export declare function readCSR({ csrId, state, }: { csrId: string; state: State; }): Promise; export declare function readCSRs({ state, }: { state: State; }): Promise; export declare function createCSR({ csr, state, }: { csr: CSR; state: State; }): Promise; export declare function updateCSR({ csrId, certificate, state, }: { csrId: string; certificate: string; state: State; }): Promise; export declare function deleteCSR({ csrId, state, }: { csrId: string; state: State; }): Promise; export declare function deleteCSRs({ state, }: { state: State; }): Promise; //# sourceMappingURL=EnvCSRsOps.d.ts.map