import { BaseResourceAPI, CursorAndAsyncIterator, ExternalId } from '@cognite/sdk-core'; import { ExternalTemplateGroup, TemplateGroup, TemplateGroupFilterQuery } from '../../types'; export declare class TemplateGroupsApi extends BaseResourceAPI { /** * [Create Template Groups](https://pr-1202.specs.preview.cogniteapp.com/v1.json.html#operation/postApiV1ProjectsProjectTemplategroups) * * ```js * const templateGroups = [ * { externalId: 'Wells', description: 'Models a Well system', owners: ['user.name@example.com'] }, * ]; * const createdTemplateGroups = await client.templates.groups.create(templateGroups); * ``` */ create: (items: ExternalTemplateGroup[]) => Promise; /** * [Upsert Template Groups](https://pr-1202.specs.preview.cogniteapp.com/v1.json.html#operation/postApiV1ProjectsProjectTemplategroupsUpsert) * * ```js * const templateGroups = [ * { externalId: 'Wells', description: 'Models a Well system', owners: ['user.name@example.com'] }, * ]; * const upsertedTemplateGroups = await client.templates.groups.upsert(templateGroups); * ``` */ upsert: (items: ExternalTemplateGroup[]) => Promise; /** * [Retrieve Template Groups](https://pr-1202.specs.preview.cogniteapp.com/v1.json.html#operation/postApiV1ProjectsProjectTemplategroupsByids) * * ```js * const templateGroups = await client.templates.groups.retrieve([{externalId: 'abc'}]); * ``` */ retrieve: (ids: ExternalId[], options?: { ignoreUnknownIds: boolean; }) => Promise; /** * [List Template Groups](https://pr-1202.specs.preview.cogniteapp.com/v1.json.html#operation/postApiV1ProjectsProjectTemplategroupsList) * * ```js * const templateGroups = await client.templates.groups.list({ filter: { owners: ["user.name@example.com"] } }); * ``` */ list: (query?: TemplateGroupFilterQuery) => CursorAndAsyncIterator; /** * [Delete Template Groups](https://pr-1202.specs.preview.cogniteapp.com/v1.json.html#operation/postApiV1ProjectsProjectTemplategroupsDelete) * * ```js * await client.templates.groups.delete([{ externalId: "Wells" }]); * ``` */ delete: (ids: ExternalId[], options?: { ignoreUnknownIds: boolean; }) => Promise<{}>; }