import type { MastraLegacyLanguageModel, MastraLanguageModel } from '../llm/model/shared.types.js';
import type { StorageThreadType } from '../memory/index.js';
import type { StandardSchemaWithJSON, InferStandardSchemaOutput } from '../schema/index.js';
import type { FullOutput } from '../stream/base/output.js';
import type { Agent } from './agent.js';
import type { AgentExecutionOptions, AgentExecutionOptionsBase } from './agent.types.js';
import type { MessageListInput } from './message-list/index.js';
import type { StructuredOutputOptions } from './types.js';
export declare const supportedLanguageModelSpecifications: string[];
export declare const isSupportedLanguageModel: (model: MastraLanguageModel | MastraLegacyLanguageModel) => model is MastraLanguageModel;
export declare function tryGenerateWithJsonFallback<SCHEMA extends StandardSchemaWithJSON, OUTPUT extends InferStandardSchemaOutput<SCHEMA>>(agent: Agent, prompt: MessageListInput, options: AgentExecutionOptions<OUTPUT>): Promise<FullOutput<OUTPUT>>;
export declare function tryGenerateWithJsonFallback<OUTPUT extends {}>(agent: Agent, prompt: MessageListInput, options: AgentExecutionOptions<OUTPUT>): Promise<FullOutput<OUTPUT>>;
export declare function tryStreamWithJsonFallback<OUTPUT extends {}>(agent: Agent, prompt: MessageListInput, options: AgentExecutionOptionsBase<OUTPUT> & {
    structuredOutput: StructuredOutputOptions<OUTPUT>;
}): Promise<import("../stream").MastraModelOutput<OUTPUT>>;
export declare function resolveThreadIdFromArgs(args: {
    memory?: {
        thread?: string | {
            id: string;
        };
    };
    threadId?: string;
    overrideId?: string;
}): (Partial<StorageThreadType> & {
    id: string;
}) | undefined;
//# sourceMappingURL=utils.d.ts.map