/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as Zep from "../../../index.js"; export declare namespace Task { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Task { protected readonly _options: Task.Options; constructor(_options?: Task.Options); /** * Gets a task by its ID * * @param {string} taskId - Task ID * @param {Task.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Zep.NotFoundError} * @throws {@link Zep.InternalServerError} * * @example * await client.task.get("task_id") */ get(taskId: string, requestOptions?: Task.RequestOptions): core.HttpResponsePromise; private __get; protected _getCustomAuthorizationHeaders(): Promise<{ Authorization: string; }>; }