import type { Context } from '../../context.js';
/** One bounded browser-requested state change. */
export interface PluginToggleChange {
    /** Server-issued entry identifier. */
    id: string;
    /** Requested state. */
    enabled: boolean;
}
/** Strictly validates write capabilities without accepting paths or config source. */
export declare function validatePluginApply(value: unknown): {
    requestId: string;
    changes: PluginToggleChange[];
};
/** Resolves receipt against successor source and effective plugin identities. */
export declare function pluginToggleStatus(ctx: Context, requestId: string): Promise<{
    completion: 'pending' | 'saved' | 'failed';
    error?: string;
}>;
/** Applies all staged edits with one checked config write and one restart. */
export declare function applyPluginChanges(ctx: Context, request: {
    requestId: string;
    changes: PluginToggleChange[];
}, isActive: () => boolean): Promise<void>;
//# sourceMappingURL=plugin-toggle-service.d.ts.map