/**
 * This file was auto-generated by Fern from our API Definition.
 */
/// <reference types="node" />
import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as Cohere from "../../..";
import * as fs from "fs";
export declare namespace Datasets {
    interface Options {
        environment?: core.Supplier<environments.CohereEnvironment | string>;
        token?: core.Supplier<core.BearerToken | undefined>;
        clientName?: core.Supplier<string | undefined>;
    }
    interface RequestOptions {
        timeoutInSeconds?: number;
        maxRetries?: number;
    }
}
export declare class Datasets {
    protected readonly _options: Datasets.Options;
    constructor(_options?: Datasets.Options);
    /**
     * List datasets that have been created.
     * @throws {@link Cohere.TooManyRequestsError}
     *
     * @example
     *     await cohere.datasets.list()
     *
     * @example
     *     await cohere.datasets.list({
     *         datasetType: "string",
     *         before: new Date("2024-01-15T09:30:00.000Z"),
     *         after: new Date("2024-01-15T09:30:00.000Z"),
     *         limit: 1.1,
     *         offset: 1.1
     *     })
     */
    list(request?: Cohere.DatasetsListRequest, requestOptions?: Datasets.RequestOptions): Promise<Cohere.DatasetsListResponse>;
    /**
     * Create a dataset by uploading a file. See ['Dataset Creation'](https://docs.cohere.com/docs/datasets#dataset-creation) for more information.
     * @throws {@link Cohere.TooManyRequestsError}
     */
    create(data: File | fs.ReadStream, evalData: File | fs.ReadStream | undefined, request: Cohere.DatasetsCreateRequest, requestOptions?: Datasets.RequestOptions): Promise<Cohere.DatasetsCreateResponse>;
    /**
     * View the dataset storage usage for your Organization. Each Organization can have up to 10GB of storage across all their users.
     * @throws {@link Cohere.TooManyRequestsError}
     *
     * @example
     *     await cohere.datasets.getUsage()
     */
    getUsage(requestOptions?: Datasets.RequestOptions): Promise<Cohere.DatasetsGetUsageResponse>;
    /**
     * Retrieve a dataset by ID. See ['Datasets'](https://docs.cohere.com/docs/datasets) for more information.
     * @throws {@link Cohere.TooManyRequestsError}
     *
     * @example
     *     await cohere.datasets.get("id")
     *
     * @example
     *     await cohere.datasets.get("string")
     */
    get(id: string, requestOptions?: Datasets.RequestOptions): Promise<Cohere.DatasetsGetResponse>;
    /**
     * Delete a dataset by ID. Datasets are automatically deleted after 30 days, but they can also be deleted manually.
     * @throws {@link Cohere.TooManyRequestsError}
     *
     * @example
     *     await cohere.datasets.delete("id")
     *
     * @example
     *     await cohere.datasets.delete("string")
     */
    delete(id: string, requestOptions?: Datasets.RequestOptions): Promise<Record<string, unknown>>;
    protected _getAuthorizationHeader(): Promise<string>;
}
