import { RequestHandler } from 'express';
import { Environment } from 'nunjucks';
import { Services } from '../types/Services.d.js';
import { DprConfig } from '../types/DprConfig.js';

/**
 * Middleware helper to populate all locals configuration
 * to enable DPR lib to operate correctly within a service.
 *
 * @param {Services} services
 * @param {string} layoutPath
 * @param {Environment} env
 * @param {DprConfig} [config]
 * @return {*}  {RequestHandler}
 */
declare const setupResources: (services: Services, layoutPath: string, env: Environment, config?: DprConfig) => RequestHandler;

export { setupResources as default, setupResources };
