import type * as http from 'node:http'; import type { JwsVerifier } from './server.classes.jws.verifier.js'; import type { IServerOrderStore, IServerAccountStore } from './server.interfaces.js'; import type { ChallengeVerifier } from './server.classes.challenge.verifier.js'; /** * POST /challenge/:id — Trigger or poll an ACME challenge. * - POST with `{}` payload: trigger challenge validation * - POST-as-GET (null payload): return current challenge state */ export declare function createChallengeHandler(baseUrl: string, jwsVerifier: JwsVerifier, orderStore: IServerOrderStore, accountStore: IServerAccountStore, challengeVerifier: ChallengeVerifier): (req: http.IncomingMessage, res: http.ServerResponse, params: Record, body: any) => Promise;