/**
 * @fileoverview Library entry service for workspace-backed files and durable
 * organization context references.
 *
 * @see doc/product/domains/library-and-context/resources-library-workspaces.md - Library files and workspace resource links
 * @see doc/product/domains/library-and-context/documents-and-work-products.md - durable work products and documents
 * @see doc/product/domains/agents/instruction-loading.md - runtime context eligibility
 */
import { libraryEntries, type Db } from "@rudderhq/db";
type LibraryEntryRow = typeof libraryEntries.$inferSelect;
export declare function libraryEntryService(db: Db): {
    getById(orgId: string, entryId: string): Promise<LibraryEntryRow | null>;
    getByCurrentPath(orgId: string, filePath: string): Promise<LibraryEntryRow | null>;
    getOrCreateWorkspaceFileEntry(orgId: string, filePath: string, title?: string | null): Promise<LibraryEntryRow>;
    listByCurrentPaths(orgId: string, filePaths: string[]): Promise<Map<string, LibraryEntryRow>>;
    moveWorkspaceFileEntry(orgId: string, previousPath: string, nextPath: string): Promise<LibraryEntryRow | null>;
    moveWorkspaceDirectoryEntries(orgId: string, previousPath: string, nextPath: string): Promise<void>;
    markWorkspaceFileEntryDeleted(orgId: string, filePath: string): Promise<LibraryEntryRow | null>;
    markWorkspaceDirectoryEntriesDeleted(orgId: string, directoryPath: string): Promise<void>;
};
export {};
//# sourceMappingURL=library-entries.d.ts.map