import { BaseClient } from '../base-client'; import { type DatasetAppendRow } from 'galileo-generated'; import { DatasetFormat, ListDatasetResponse, DatasetContent, DatasetDBType, DatasetRow, SyntheticDatasetExtensionRequest, SyntheticDatasetExtensionResponse, JobProgress, DatasetVersionHistory, ListDatasetProjectsResponse, ListDatasetParams } from '../../types/dataset.types'; export declare class DatasetService extends BaseClient { constructor(apiUrl: string, token: string); getDatasets(limit?: number): Promise; getDataset(datasetId: string): Promise; getDatasetEtag(datasetId: string): Promise; getDatasetByName(name: string): Promise; createDataset(options: { name: string; filePath: string; format: DatasetFormat; projectId?: string | null; draft?: boolean; hidden?: boolean; appendSuffixIfDuplicate?: boolean; copyFromDatasetId?: string | null; copyFromDatasetVersionIndex?: number | null; }): Promise; getDatasetContent(datasetId: string): Promise; appendRowsToDatasetContent(datasetId: string, etag: string, rows: DatasetAppendRow[]): Promise; /** * Deletes a dataset by its unique identifier or name. * * If both `id` and `name` are provided, `id` takes precedence. * If only `name` is provided, the dataset will be looked up by name. * Throws an error if neither `id` nor `name` is provided, or if the dataset cannot be found. * * @param id - (Optional) The unique identifier of the dataset to delete. * @param name - (Optional) The name of the dataset to delete. * @returns A promise that resolves when the dataset is deleted. * @throws Error if the client is not initialized, neither id nor name is provided, or the dataset cannot be found. */ deleteDataset(id: string): Promise; extendDataset(params: SyntheticDatasetExtensionRequest): Promise; getExtendDatasetStatus: (datasetId: string) => Promise; /** * Queries datasets with filters. * Equivalent to Python's query_datasets_datasets_query_post. */ queryDatasets(params: ListDatasetParams, query?: { startingToken?: number; limit?: number; }): Promise; /** * Gets the version history of a dataset. * Equivalent to Python's query_dataset_versions_datasets_dataset_id_versions_query_post. */ getDatasetVersionHistory(datasetId: string): Promise; /** * Gets the content of a specific version of a dataset. * Equivalent to Python's get_dataset_version_content_datasets_dataset_id_versions_version_index_content_get. */ getDatasetVersionContent(datasetId: string, versionIndex: number): Promise; /** * Lists all projects that use a dataset. * Equivalent to Python's list_dataset_projects_datasets_dataset_id_projects_get. */ listDatasetProjects(datasetId: string, limit?: number): Promise; }