import type { Context } from '@deepseek-ai/cordis'; import { Service } from '@deepseek-ai/cordis'; import { type ActivationReview, type InstalledPlugin, type LocalPluginDiscovery, type PluginAutoUpdateReport, type RegisteredMarketplace, type RegisteredMarketplaceDiscovery } from './manager.js'; import { type ImportedPiPackage, type PiUpdateMode, type PiUpdateStatus } from './pi-updates.js'; interface ImportedInstallationSourceView { readonly source?: { readonly locator: string; readonly upstreamSource?: string; }; } /** Select native Pi package identities from durable Bridge imports. */ export declare function listImportedPiPackages(installations: readonly ImportedInstallationSourceView[]): readonly ImportedPiPackage[]; export declare const name = "plugin-bridge-runtime"; export declare const inject: string[]; /** Optional profile-local storage override. */ export interface Config { readonly storageDir?: string; /** Poll supported hosts' installed package state; zero disables automatic reconciliation. */ readonly autoUpdateIntervalMs?: number; /** Ask Pi for native package updates at this interval; zero disables background checks. */ readonly piUpdateCheckIntervalMs?: number; /** Project directory used for Pi's project-scoped package settings. */ readonly piCwd?: string; } /** Start best-effort reconciliation and return its lifecycle cleanup. */ export declare function startPluginAutoUpdates(sync: () => Promise, intervalMs: number): () => Promise; declare module '@deepseek-ai/cordis' { interface Context { pluginBridgeRuntime: PluginBridgeRuntime; } } /** Cordis service facade over the persistent marketplace and installation manager. */ export declare class PluginBridgeRuntime extends Service { private readonly manager; private readonly piUpdates; constructor(ctx: Context, config?: Config); start(): Promise; listMarketplaces(): readonly RegisteredMarketplace[]; listInstallations(): readonly InstalledPlugin[]; addMarketplace(location: string): Promise; install(spec: string): Promise; discoverLocalPlugins(): Promise; importLocalPlugin(ref: string): Promise; syncImportedPlugins(): Promise; piUpdateStatus(): PiUpdateStatus; checkPiUpdates(): Promise; runScheduledPiUpdateCheck(): Promise; setPiUpdateMode(mode: PiUpdateMode): Promise; setPiPackageAutoUpdate(id: string, enabled: boolean): Promise; updatePiPackage(id: string): Promise; updateAllPiPackages(): Promise; discoverRegisteredMarketplaces(): Promise; importRegisteredMarketplace(ref: string): Promise; reviewActivations(policy: string, plugin?: string): Promise; approveActivation(policy: string, plugin: string, digest: string): Promise; disable(pluginName: string): Promise; enable(pluginName: string): Promise; uninstall(pluginName: string): Promise; dispose(): Promise; } /** Publish the runtime only after all persisted rows activate successfully. */ export declare function apply(ctx: Context, config?: Config): Promise; export {}; //# sourceMappingURL=runtime.d.ts.map