import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Collections extends APIResource { /** * Example cURL request: * * ```console * curl -s \ * -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ * https://api.replicate.com/v1/collections * ``` * * The response will be a paginated JSON list of collection objects: * * ```json * { * "next": "null", * "previous": null, * "results": [ * { * "name": "Super resolution", * "slug": "super-resolution", * "description": "Upscaling models that create high-quality images from low-quality images." * } * ] * } * ``` */ list(options?: RequestOptions): APIPromise; /** * Example cURL request: * * ```console * curl -s \ * -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ * https://api.replicate.com/v1/collections/super-resolution * ``` * * The response will be a collection object with a nested list of the models in * that collection: * * ```json * { * "name": "Super resolution", * "slug": "super-resolution", * "description": "Upscaling models that create high-quality images from low-quality images.", * "models": [...] * } * ``` */ get(params: CollectionGetParams, options?: RequestOptions): APIPromise; } export interface CollectionGetParams { /** * The slug of the collection, like `super-resolution` or `image-restoration`. See * [replicate.com/collections](https://replicate.com/collections). */ collection_slug: string; } export declare namespace Collections { export { type CollectionGetParams as CollectionGetParams }; } //# sourceMappingURL=collections.d.ts.map