import { KnowledgeStorage } from '@mastra/core/storage'; import type { AppendKnowledgeInput, ClaimKnowledgeSemanticOutboxInput, CreateKnowledgeNodeInput, KnowledgeActivityEvent, KnowledgeCurationCursor, KnowledgeNode, KnowledgeRecord, KnowledgeScope, KnowledgeSemanticOutboxEntry, QueryKnowledgeBySourceInput, QueryKnowledgeInput, QueryKnowledgeOutput, ListKnowledgeNodesInput, SearchKnowledgeInput, SearchKnowledgeResult, UpdateKnowledgeNodeInput } from '@mastra/core/storage'; import type { PgDomainConfig } from '../../db/index.js'; export declare function postgresSql(sql: string, schemaName?: string): string; export declare class KnowledgePG extends KnowledgeStorage { #private; static readonly MANAGED_TABLES: readonly ["mastra_knowledge_nodes", "mastra_knowledge_records", "mastra_knowledge_mentions", "mastra_knowledge_cursors", "mastra_knowledge_activity", "mastra_knowledge_semantic_outbox"]; static getExportDDL(schemaName?: string): string[]; constructor(config: PgDomainConfig); init(): Promise; dangerouslyClearAll(): Promise; createNode(input: CreateKnowledgeNodeInput): Promise; getNode(id: string): Promise; getNodeByName(input: { name: string; scope: KnowledgeScope; }): Promise; resolveNode(input: { name: string; scope: KnowledgeScope; }): Promise; listNodes(input: ListKnowledgeNodesInput): Promise; updateNode(input: UpdateKnowledgeNodeInput): Promise; mergeNodes(input: { sourceId: string; targetId: string; sourceVersion: number; }): Promise; appendKnowledge(input: AppendKnowledgeInput): Promise; getKnowledge(input: { id: string; includeDeleted?: boolean; }): Promise; listKnowledgeAbout(input: QueryKnowledgeInput): Promise; listKnowledgeMentioning(input: QueryKnowledgeInput): Promise; listKnowledgeRelatedTo(input: QueryKnowledgeInput): Promise; knowledgeBySource(input: QueryKnowledgeBySourceInput): Promise; removeKnowledge(input: { id: string; deletedBy: string; }): Promise; restoreKnowledge(input: { id: string; }): Promise; rescopeKnowledge(input: { id: string; scope: KnowledgeScope; }): Promise; raiseKnowledgeCeiling(input: { id: string; maxScope?: KnowledgeRecord['maxScope']; }): Promise; search(input: SearchKnowledgeInput): Promise; getCurationCursor(input: { sourceThreadId: string; agent: string; }): Promise; advanceCurationCursor(input: { sourceThreadId: string; agent: string; lastKnowledgeId: string; }): Promise; listActivity(input: { scope: KnowledgeScope; after?: string; limit?: number; }): Promise; listSemanticOutbox(input?: { status?: KnowledgeSemanticOutboxEntry['status']; scope?: KnowledgeScope; limit?: number; }): Promise; claimSemanticOutbox(input: ClaimKnowledgeSemanticOutboxInput): Promise; completeSemanticOutbox(input: { ids: string[]; workerId: string; }): Promise; releaseSemanticOutbox(input: { ids: string[]; workerId: string; retryAt?: Date; }): Promise; } //# sourceMappingURL=index.d.ts.map