import type { L0Event, L0Adapter } from "../types/l0"; import type { Agent } from "@mastra/core/agent"; import type { MastraModelOutput } from "@mastra/core/stream"; export interface MastraAdapterOptions { includeUsage?: boolean; includeToolCalls?: boolean; includeReasoning?: boolean; } export type MastraMessageInput = string | Array<{ role: "user" | "assistant" | "system"; content: string; }>; export declare function wrapMastraStream(streamResult: MastraModelOutput, options?: MastraAdapterOptions): AsyncGenerator; export declare function mastraStream(agent: Agent, messages: MastraMessageInput, streamOptions?: Record, adapterOptions?: MastraAdapterOptions): () => Promise>; export declare function mastraText(agent: Agent, prompt: string, options?: Record & MastraAdapterOptions): () => Promise>; export declare function mastraStructured(agent: Agent, prompt: string, schema: TSchema, options?: Record & MastraAdapterOptions): () => Promise>; export declare function wrapMastraFullStream(streamResult: MastraModelOutput, options?: MastraAdapterOptions): AsyncGenerator; export declare function isMastraStream(obj: unknown): obj is MastraModelOutput; export declare function extractMastraText(streamResult: MastraModelOutput): Promise; export declare function extractMastraObject(streamResult: MastraModelOutput): Promise; export declare const mastraAdapter: L0Adapter, MastraAdapterOptions>; export type { Agent } from "@mastra/core/agent"; export type { MastraModelOutput } from "@mastra/core/stream"; //# sourceMappingURL=mastra.d.ts.map