/** * @description A middleware that executes before a route handler. Verifies the request header "x-oc-hash" matches the configured hash key. * @param {Function} routeHandler A function to handle the request and response. * @param {string} hashKey Optional. If not provided, defaults to process.env.OC_WEBHOOK_HASH_KEY. * @returns {Function} A function to handle the request and response. */ export declare function withOCWebhookAuth(routeHandler: (req: any, res: any, next: any) => void | Promise, hashKey?: string | undefined): (req: any, res: any, next: any) => void | Promise; /** * @description Does the request header "x-oc-hash" match the configured hash key? * @param {Function} req The request object, including body and headers. * @param {string} hashKey Optional. If not provided, defaults to process.env.OC_WEBHOOK_HASH_KEY. */ export declare function isOCHashValid(req: any, hashKey?: string | undefined): Promise;