import { XChat, Config } from './chat.js'; import { XImagesGeneration } from './images-generation.js'; export declare class XCtodService { _axios: import("axios").AxiosInstance; _apiKey: string; static createChatRequest(apiKey: string | (() => Promise), config?: Partial | (() => Promise>), options?: { axios?: any; }): (messages: any[], { onCancel }: any) => Promise; static createChatRequestWithJsonSchema(params: { axios?: any; apiKey: string | (() => Promise); config?: Partial> | (() => Promise>>); }): (messages: any[], { schema, abortController }: any) => Promise; constructor(apiKey?: string); /** * @zh 如果你有需要特別設定 axios,請使用這方法。 * @en If you need to set axios, please use this method. */ setAxios(axios: any): void; /** * @zh 設定 api key。 * @en Set api key. */ setConfiguration(apiKey: string): void; createChat(): XChat; createImagesGeneration(): XImagesGeneration; }