UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

20 lines 999 B
import type { ChannelInstallation, ChannelConfig } from './base.js'; import { ChannelsStorage } from './base.js'; /** * In-memory implementation of ChannelsStorage. * Useful for development and testing. */ export declare class InMemoryChannelsStorage extends ChannelsStorage { #private; saveInstallation(installation: ChannelInstallation): Promise<void>; getInstallation(id: string): Promise<ChannelInstallation | null>; getInstallationByAgent(platform: string, agentId: string): Promise<ChannelInstallation | null>; getInstallationByWebhookId(webhookId: string): Promise<ChannelInstallation | null>; listInstallations(platform: string): Promise<ChannelInstallation[]>; deleteInstallation(id: string): Promise<void>; saveConfig(config: ChannelConfig): Promise<void>; getConfig(platform: string): Promise<ChannelConfig | null>; deleteConfig(platform: string): Promise<void>; dangerouslyClearAll(): Promise<void>; } //# sourceMappingURL=inmemory.d.ts.map