import { EntityManager } from 'typeorm'; import { Domain } from '../service/domain/domain.js'; /** The domain's id followed by its ancestors' ids. An optional manager keeps reads in the caller's transaction. */ export declare function getDomainIdsWithAncestors(domain: Domain, tx?: EntityManager): Promise; /** * Keeps one item per key - the one declared by the closest domain - in the order the keys first * appear. `domainIds` is the closest-first list from getDomainIdsWithAncestors. */ export declare function dedupByClosestDomain(items: T[], domainIds: string[], keyFn: (item: T) => string | undefined): T[]; /** The active EnvVar of that name declared by the closest domain, or undefined. */ export declare function lookupDomainEnvVar(domain: Domain, name: string): Promise; /** Like lookupDomainEnvVar, and also says which domain the value came from. */ export declare function resolveDomainEnvVar(domain: Domain, name: string): Promise<{ value: string; domainId: string; updatedAt?: Date; } | undefined>; /** * Every active EnvVar visible from the domain, merged closest-wins into one record. With a prefix, * only the names that start with it. */ export declare function loadDomainAttributes(domain: Domain, prefix?: string): Promise>;