import { EvershopRequest } from '../../types/request.js'; /** * Retrieves the delegate manager for the given request. * @param request The request object containing the delegate manager. * @template T The type of the delegate. * @returns The delegate manager. */ export declare function getDelegateManager(request: EvershopRequest): { setOnce: (key: string, value: any) => void; get: (key: string) => any; has: (key: string) => boolean; keys: () => string[]; getAll: () => Record; }; /** * Checks if a delegate exists for the given ID in the request. * @param id The delegate ID to check. * @template T The type of the delegate. * @param request The request object. * @returns True if the delegate exists, false otherwise. */ export declare function hasDelegate(id: string, request: EvershopRequest): boolean; /** * Retrieves a delegate value for the given ID. * @param id The delegate ID to retrieve. * @template T The type of the delegate. * @param request The request object. * @returns The delegate value or undefined if not found. */ export declare function getDelegate(id: string, request: EvershopRequest): T | undefined; export declare function getDelegates(request: EvershopRequest): Record; /** * Sets a delegate for the given request object. * @param id The delegate ID. * @param value The delegate value. * @param request The request object. */ export declare function setDelegate(id: string, value: T, request: EvershopRequest): void;