/** Public plugin information retained when its factory is disabled. */
export interface DisabledPluginMetadata {
    /** Stable plugin identity. */
    name: string;
    /** Public workbench identity, when present. */
    id?: string;
    /** Whether a workbench entry exists. */
    client: boolean;
    /** Whether a frame entry exists. */
    frame: boolean;
    /** Human-readable plugin name. */
    displayName?: string;
    /** Public description. */
    description?: string;
    /** Offline icon name. */
    icon?: string;
    /** HTTPS logo address. */
    logoUrl?: string;
    /** Documentation address. */
    docsUrl?: string;
    /** Repository address. */
    repoUrl?: string;
    /** Used only to suppress development-only entries in static inventories. */
    devOnly?: boolean;
}
/** One directly configured factory, including the range of its wrapper. */
export interface PluginSourceEntry {
    /** Whether the factory currently executes. */
    enabled: boolean;
    /** Start of the replaceable expression. */
    start: number;
    /** End of the replaceable expression. */
    end: number;
    /** Original factory expression. */
    expression: string;
    /** Public snapshot stored in a disabled wrapper. */
    metadata?: DisabledPluginMetadata;
}
/** Parses literal plugin arrays and recognized disabled wrappers without executing code. */
export declare function analyzePluginSource(code: string): PluginSourceEntry[];
/** Wraps only the selected call and records a minimal public snapshot. */
export declare function disablePluginEntry(code: string, entry: PluginSourceEntry, metadata: DisabledPluginMetadata): string;
/** Restores precisely the saved expression, retaining its arguments and comments. */
export declare function enablePluginEntry(code: string, entry: PluginSourceEntry): string;
//# sourceMappingURL=plugin-toggle-source.d.ts.map