import { AgentsStorage } from '@mastra/core/storage'; import type { StorageAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, CreateIndexOptions } from '@mastra/core/storage'; import type { AgentVersion, CreateVersionInput, ListVersionsInput, ListVersionsOutput } from '@mastra/core/storage/domains/agents'; import type { PgDomainConfig } from '../../db/index.js'; export declare class AgentsPG extends AgentsStorage { #private; /** Tables managed by this domain */ static readonly MANAGED_TABLES: readonly ["mastra_agents", "mastra_agent_versions"]; constructor(config: PgDomainConfig); /** * Returns all DDL statements for this domain: tables. * Used by exportSchemas to produce a complete, reproducible schema export. */ static getExportDDL(schemaName?: string): string[]; /** * Returns default index definitions for the agents domain tables. * Currently no default indexes are defined for agents. */ getDefaultIndexDefinitions(): CreateIndexOptions[]; /** * Creates default indexes for optimal query performance. * Currently no default indexes are defined for agents. */ createDefaultIndexes(): Promise; init(): Promise; /** * Creates custom user-defined indexes for this domain's tables. */ createCustomIndexes(): Promise; dangerouslyClearAll(): Promise; private parseRow; getById(id: string): Promise; create(input: { agent: StorageCreateAgentInput; }): Promise; update(input: StorageUpdateAgentInput): Promise; delete(id: string): Promise; list(args?: StorageListAgentsInput): Promise; createVersion(input: CreateVersionInput): Promise; getVersion(id: string): Promise; getVersions(ids: string[]): Promise; getVersionByNumber(agentId: string, versionNumber: number): Promise; getLatestVersion(agentId: string): Promise; listVersions(input: ListVersionsInput): Promise; deleteVersion(id: string): Promise; deleteVersionsByParentId(entityId: string): Promise; countVersions(agentId: string): Promise; private serializeInstructions; private deserializeInstructions; private parseVersionRow; } //# sourceMappingURL=index.d.ts.map