# ExportsMap (@salmonui/mcp)

> The ExportsMap class of @salmonui/mcp: Lookups over the index used by the checker and the tools.

Canonical: https://salmonui.dev/docs/reference/mcp/ExportsMap

```ts
import { ExportsMap } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: class

```ts
class ExportsMap {
    readonly entries: Map<string, IndexEntry>;
    readonly packages: Map<string, IndexPackage>;
    readonly families: Map<string, {
        pkg: IndexPackage;
        family: IndexFamily;
    }>;
    readonly familyOf: Map<string, {
        pkg: IndexPackage;
        family: IndexFamily;
    }>;
    readonly whereExported: Map<string, string[]>;
    constructor(index: McpIndex);
    static packageName(specifier: string): string;
    exportersOf(name: string): string[];
    closest(specifier: string, max?: number): string[];
}
```

Lookups over the index used by the checker and the tools.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `entries` | `readonly entries: Map<string, IndexEntry>;` |  |  |
| `packages` | `readonly packages: Map<string, IndexPackage>;` |  |  |
| `families` | `readonly families: Map<string, {     pkg: IndexPackage;     family: IndexFamily; }>;` |  |  |
| `familyOf` | `readonly familyOf: Map<string, {     pkg: IndexPackage;     family: IndexFamily; }>;` |  | Family of every family entry and subpath. |
| `whereExported` | `readonly whereExported: Map<string, string[]>;` |  |  |
| `exportersOf` | `exportersOf(name: string): string[];` |  | Entries exporting `name`, home entries (shortest specifier) first. |
| `closest` | `closest(specifier: string, max?: number): string[];` |  | Closest existing specifiers by edit distance (at most `max`). |
