import { URL } from 'url'; import { Domain } from '../service/domain/domain'; /** * Creates a URL based on the given context and path. * * @param context {Object} An object containing the current request context information. * @param path {string} The path to be added to the created URL (optional). * @returns {URL} The generated URL object. */ export declare function getUrlFromContext(context: any, path?: string): URL; /** * Asynchronously searches for a domain object based on the URL context. * * @param context {Object} An object containing the current request context information. * @returns {Promise} A promise that resolves to the domain object. */ export declare function getDomainFromURL(context: any): Promise; /** * Generates a context path based on the subdomain. * * @param subdomain {string} The subdomain. * @returns {string} The generated context path. */ export declare function getContextPath(domain: Domain): string; /** * Generates a redirection path considering the subdomain. * * @param context {Object} An object containing the current request context information. * @param subdomain {Domain} The target domain. * @param redirectTo {string} The path to redirect to (optional). * @returns {string} The generated redirection path. */ export declare function getRedirectSubdomainPath(context: any, domain: Partial, redirectTo?: string): string; /** * Finds a subdomain from the given path. * * @param context {Object} An object containing the current request context information. * @param path {string} The path to search in. * @returns {string} The found subdomain. */ export declare function findSubdomainFromPath(context: any, path: any): any; /** * Retrieves the route prefix for a specific domain type. * * @returns {string} The route prefix associated with the domain type. */ export declare function getRoutePrefixForDomainType(): string; /** * Generates a site root path based on the current environment. * * @param context {Object} An object containing the current request context information. * @returns {string} The generated site root path. */ export declare function getSiteRootPath(context: any): string;