/** * IR-to-descriptor conversion — builds ServiceDescriptors from Manifest IRs. * * Extracts exposed entities and commands from a compiled IR so services * can advertise their federation surface to peers. * * @module federation/descriptor */ import type { IR } from '../ir'; import type { ServiceDescriptor } from './types'; /** * Build a ServiceDescriptor from a compiled IR and a service identity. * Only entities and commands explicitly listed in `expose` are advertised; * if `expose` is omitted, all entities with commands are exposed. */ export declare function buildDescriptor(serviceId: string, ir: IR, options: { endpoint: string; displayName?: string; auth?: ServiceDescriptor['auth']; /** Explicit list of entity names to expose. Omit to expose all with commands. */ exposeEntities?: string[]; /** Per-command policy requirements. Defaults to the command's own policy list. */ commandPolicies?: Record; }): ServiceDescriptor; //# sourceMappingURL=descriptor.d.ts.map