import { APIResource } from '../../core/resource.js'; import { APIPromise } from '../../core/api-promise.js'; import { RequestOptions } from '../../internal/request-options.js'; export declare class Share extends APIResource { /** * Share a dataset. */ create(datasetID: string, params?: ShareCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Get the state of sharing a dataset */ retrieve(datasetID: string, options?: RequestOptions): APIPromise; /** * Unshare a dataset. */ deleteAll(datasetID: string, options?: RequestOptions): APIPromise; } export interface DatasetShareSchema { dataset_id: string; share_token: string; } export type ShareDeleteAllResponse = unknown; export interface ShareCreateParams { share_projects?: boolean; } export declare namespace Share { export { type DatasetShareSchema as DatasetShareSchema, type ShareDeleteAllResponse as ShareDeleteAllResponse, type ShareCreateParams as ShareCreateParams, }; }