import { type z } from 'zod'; import { type Model, type Msg } from '../index.js'; /** * Extract data using OpenAI structured outputs. * * Always returns an object satisfying the provided Zod schema. */ export declare function createExtractFunction>(args: { /** The ChatModel used to make API calls. */ chatModel: Model.Chat.Model; /** A descriptive name for the object to extract. */ name: string; /** The Zod schema for the data to extract. */ schema: Schema; /** Add a system message to the beginning of the messages array. */ systemMessage: string; /** Apply strict validation to the extracted data (default: true) */ strict?: boolean; }): (input: string | Msg) => Promise>;