import type { DevToolsSys } from "../../core";
import type { Credentials } from "../credentials";
import type { MemorySummary } from "#ai-utils";
/**
 * Find memories whose glob pattern matches a given file path.
 * Uses minimatch for glob matching, with a fallback to substring check for plain paths.
 */
export declare function matchMemoriesForFile(memories: MemorySummary[], filePath: string): MemorySummary[];
/**
 * Fetch all memories for the current project.
 * Returns an empty array on error to avoid blocking session initialization.
 */
export declare function loadMemories(sys: DevToolsSys, credentials: Credentials, projectId: string, signal?: AbortSignal): Promise<MemorySummary[]>;
/**
 * Write memories to `.builder/memories/` as markdown files grouped by category.
 * Errors are silently swallowed to avoid blocking session initialization.
 */
/**
 * Write memories as markdown files into the given directory.
 * Clears the directory first, then writes category files.
 */
export declare function syncMemoriesToDir(sys: DevToolsSys, memories: MemorySummary[], memoriesDir: string): Promise<void>;
