import { type TaskSchema, type inferSchemaIn } from "@trigger.dev/core/v3"; type PromptOptions = { id: TIdentifier; description?: string; model?: string; config?: Record; variables?: TVariables; content: string; }; type ResolvedPrompt = { promptId: string; version: number; labels: string[]; text: string; model: string | undefined; config: Record | undefined; /** Returns `experimental_telemetry` options for AI SDK calls (`generateText`, `streamText`, etc.) */ toAISDKTelemetry(additionalMetadata?: Record): { experimental_telemetry: { isEnabled: true; metadata: Record; }; }; }; export type { PromptOptions, ResolvedPrompt }; export type PromptHandle = { id: TIdentifier; resolve(variables: inferSchemaIn, options?: { label?: string; version?: number; }): Promise; }; export type AnyPromptHandle = PromptHandle; /** Extract the identifier (id literal type) from a PromptHandle */ export type PromptIdentifier = T extends PromptHandle ? TId : string; /** Extract the variables input type from a PromptHandle */ export type PromptVariables = T extends PromptHandle ? inferSchemaIn : Record; export declare function definePrompt(options: PromptOptions): PromptHandle;