histoire
Version:
A fast story book powered by Vite
103 lines • 3.28 kB
TypeScript
import type { PluginDetail } from '@histoire/shared';
import type { ProjectSignals } from './signals.js';
/** Explain applicable recommendations and retain only compatible, uninstalled picks. */
export declare function discoverCatalog(entries: PluginDetail[], project: ProjectSignals, installedCategories: Set<string>): {
hero: {
id: import("@histoire/shared").PluginId;
displayName: string;
summary: string;
publisher: string;
official: boolean;
category: import("@histoire/shared").Category;
frameworks: string[];
adds: import("@histoire/shared").Add[];
monogram: string;
tint: import("@histoire/shared").Tint;
logoUrl?: string;
latest: string;
updatedAt?: string;
license?: string;
repoUrl?: string;
docsUrl?: string;
installed?: {
version: string;
enabled: boolean;
required: boolean;
update?: string;
};
compatible: {
ok: boolean;
reason?: string;
};
score?: number;
match?: Array<{
field: 'displayName' | 'summary' | 'id';
ranges: Array<[number, number]>;
}>;
manifest: import("@histoire/shared").MarketplaceManifest;
versions: Array<{
version: string;
date?: string;
deprecated?: boolean;
compatible: boolean;
reason?: string;
}>;
provenance: boolean;
requires: Record<string, string>;
access: import("@histoire/shared").Access[];
releaseNotes?: import("@histoire/shared").ReleaseNote[];
reason: string;
};
picks: {
id: import("@histoire/shared").PluginId;
displayName: string;
summary: string;
publisher: string;
official: boolean;
category: import("@histoire/shared").Category;
frameworks: string[];
adds: import("@histoire/shared").Add[];
monogram: string;
tint: import("@histoire/shared").Tint;
logoUrl?: string;
latest: string;
updatedAt?: string;
license?: string;
repoUrl?: string;
docsUrl?: string;
installed?: {
version: string;
enabled: boolean;
required: boolean;
update?: string;
};
compatible: {
ok: boolean;
reason?: string;
};
score?: number;
match?: Array<{
field: 'displayName' | 'summary' | 'id';
ranges: Array<[number, number]>;
}>;
manifest: import("@histoire/shared").MarketplaceManifest;
versions: Array<{
version: string;
date?: string;
deprecated?: boolean;
compatible: boolean;
reason?: string;
}>;
provenance: boolean;
requires: Record<string, string>;
access: import("@histoire/shared").Access[];
releaseNotes?: import("@histoire/shared").ReleaseNote[];
reason: string;
}[];
collections: {
id: string;
title: string;
entries: PluginDetail[];
}[];
};
//# sourceMappingURL=discover.d.ts.map