import type { MemoryStore } from "@mono-agent/agent-contracts"; export declare const SUPERMEMORY_PLUGIN_PACKAGE = "@mono-agent/memory-supermemory"; export interface SupermemoryPluginStore extends MemoryStore { recall(query: string, options?: { readonly topK?: number; readonly trackAccess?: boolean; }): Promise; close(): Promise; } export interface CreateSupermemoryPluginStoreOptions { readonly baseUrl: string; readonly apiKey?: string; readonly container: string; readonly timeoutMs?: number; readonly maxBytes?: number; readonly logger?: { warn(message: string): void; }; } export interface SupermemoryPluginModule { readonly createSupermemoryStore: (options: CreateSupermemoryPluginStoreOptions) => SupermemoryPluginStore; readonly validateSupermemoryConfig: (options: CreateSupermemoryPluginStoreOptions) => { readonly valid: boolean; readonly errors: readonly string[]; }; } export type ImportOptionalPlugin = (specifier: string) => Promise; export type ResolveOptionalPlugin = (specifier: string, cwd: string, preferAppInstall?: boolean) => string; export interface SupermemoryPluginResolutionOptions { /** Agent folder that normally owns an explicitly installed optional plugin. */ readonly cwd?: string; /** Managed workers load only the closure copied beside agent-app. */ readonly preferAppInstall?: boolean; /** Test seam; production uses dynamic import of the resolved entry point. */ readonly importModule?: ImportOptionalPlugin; /** Test seam; production resolves the package manifest using the requested precedence. */ readonly resolveModule?: ResolveOptionalPlugin; } /** * Resolve the optional Supermemory package without making it part of agent-app's * installed dependency closure. A missing plugin receives one exact, actionable * lockstep install command; initialization errors from an installed plugin retain * their original cause instead of being mislabeled as absence. */ export declare function loadSupermemoryPlugin(options?: SupermemoryPluginResolutionOptions): Promise; /** True only when a resolvable, lockstep-compatible plugin is installed. */ export declare function isSupermemoryPluginInstalled(options?: Omit): boolean; export declare function installedSupermemoryPluginVersion(options?: Omit): string | undefined; export declare function missingSupermemoryPluginMessage(): string; //# sourceMappingURL=supermemory-plugin.d.ts.map