import type { Context } from '../context.js';
import type { DisabledPluginMetadata, PluginSourceEntry } from './plugin-toggle-source.js';
/** Safe row data sent to the workbench. */
export interface PluginInventoryRow extends DisabledPluginMetadata {
    /** Built-in plugins are not editable. */
    builtin: boolean;
    /** Effective state in this runtime. */
    enabled: boolean;
    /** Actual installed npm identity. */
    packageName?: string;
    /** Installed version, or local for authored/workspace code. */
    version?: string;
    /** Excluded from registry updates. */
    local: boolean;
    /** Framework support or builtin, protected from marketplace removal. */
    required: boolean;
    /** Bundled entry under the first-party npm scope. */
    official: boolean;
    /** Exact dependency declaration; updates remain visible. */
    pinned?: boolean;
    /** Generation-scoped identifier for a safely editable entry. */
    toggleId?: string;
}
/** Private source evidence for one server generation. */
export interface PluginToggleInventory {
    /** Guarded config file. */
    file: string;
    /** Revision of the captured config source. */
    hash: string;
    /** Server-only source evaluated by this generation. */
    source: string;
    /** Parsed plugin entries in source order. */
    entries: PluginSourceEntry[];
    /** Public rows in resolved order. */
    rows: PluginInventoryRow[];
    /** Rows corresponding to source entries in source order. */
    configured: PluginInventoryRow[];
    /** Server-owned mapping from opaque capabilities to entries. */
    targets: Map<string, {
        index: number;
        row: PluginInventoryRow;
        devOnly?: boolean;
    }>;
}
/** Projects resolved plugins and, where safely identified, disabled source entries. */
export declare function createPluginInventory(ctx: Context): Promise<{
    rows: PluginInventoryRow[];
    toggle?: PluginToggleInventory;
}>;
//# sourceMappingURL=plugin-toggle-inventory.d.ts.map