import type { AcmeHttpClient } from './acme.classes.http-client.js'; import type { IAcmeAuthorization, IAcmeIdentifier, IAcmeOrder } from './acme.interfaces.js'; /** * ACME order lifecycle management. * Handles order creation, authorization retrieval, finalization, and certificate download. */ export declare class AcmeOrderManager { private httpClient; constructor(httpClient: AcmeHttpClient); /** * Create a new ACME order for the given identifiers */ create(opts: { identifiers: IAcmeIdentifier[]; }): Promise; /** * Retrieve all authorizations for an order (POST-as-GET each authorization URL) */ getAuthorizations(order: IAcmeOrder): Promise; /** * Finalize an order by submitting the CSR. * Waits for the order to reach 'valid' status. * Mutates the order object with updated status and certificate URL. */ finalize(order: IAcmeOrder, csrPem: string): Promise; /** * Download the certificate chain (PEM) from the order's certificate URL */ getCertificate(order: IAcmeOrder): Promise; /** * Poll an ACME resource (order or challenge) until it reaches 'valid' or 'ready' status. * Uses exponential backoff with Retry-After header support. */ waitForValidStatus(item: { url: string; }, opts?: { maxAttempts?: number; initialDelayMs?: number; }): Promise; }