import { type ChatMessage, type ChatParams } from 'openai-fetch'; import { type Telemetry } from './types.js'; type AttrMap = Telemetry.SpanAttributes; export declare function extractAttrsFromContext(context: any): AttrMap; export declare function extractAttrsFromParams(params: { model?: string; modelType?: string; modelProvider?: string; max_tokens?: number; temperature?: number; functions?: ChatParams['functions']; tools?: ChatParams['tools']; messages?: ChatMessage[]; prompt?: string | string[]; input?: string[]; }): AttrMap; export declare function extractAttrsFromResponse(resp: { cached?: boolean; cost?: number; choices?: { text?: string; message?: ChatMessage; }[]; usage?: { completion_tokens?: number; prompt_tokens?: number; total_tokens?: number; }; }): AttrMap; /** Get the name for the Model.run() span */ export declare function getSpanName(args: { modelType: string; promptName?: string; promptVersion?: string; }): string; export {};