import { SettingsPresetsView } from "../../types/settings.mjs"; import { CatalogLayer, ExternalPluginsView, ExternalServerRow, InstallOperation, McpCatalogWire, PluginEntry, PluginScope, PluginSetup, PresetSummary } from "../../types/plugins.mjs"; //#region src/web/lib/catalogEntries.d.ts /** The id a Codex or Claude Code plugin takes on the Plugins page, apart from curated layer ids. */ export declare const externalId: (name: string) => string; /** * Everything the catalog draws, from what the host reported. A curated layer that can be neither * installed nor used is left out rather than offered with a button that cannot work. */ export declare function catalogEntries(input: { catalog: readonly CatalogLayer[]; presets: SettingsPresetsView | undefined; external: ExternalPluginsView | undefined; setups: Readonly>; installs: Readonly>; }): PluginEntry[]; export declare function presetSummaries(view: SettingsPresetsView | undefined): PresetSummary[]; /** * A plugin's MCP servers as one workspace's catalog sees them; it lists every domain's plugin servers, * loaded there or not. A missing key comes first: signing in cannot help a server whose config still * has a hole in it. * * ponytail: matched by name, because the catalog does not say which plugin a server came from. A * workspace `.mcp.json` server of the same name wins there and shows here; add the source id to the * catalog if that confuses people. */ export declare function externalServerRows(names: readonly string[], catalog: McpCatalogWire | undefined): ExternalServerRow[]; /** "Joins Everyday (host default)" or "Joins Writing (this workspace)". */ export declare function destinationOf(view: SettingsPresetsView | undefined, scope: PluginScope): string; /** Status reads in a row that may fail before a client stops waiting on an install: the host restarted or is gone. */ export declare const INSTALL_LOST_AFTER = 8; /** Counts one failed status read of install `id`. True once the install is lost; its count then starts over. */ export declare function installReadLost(missed: Map, id: string): boolean; /** The free text search and category chips, applied the same way the stories do. */ export declare function filterEntries(entries: readonly PluginEntry[], query: string, category: string, all: string, external: string): PluginEntry[]; //#endregion //# sourceMappingURL=catalogEntries.d.mts.map