import { n as SdkPaginated, t as ApiRequestOptions } from "./api-CHb_tF-8.mjs"; //#region src/modules/template-tags/types.d.ts /** * Tag of a template */ interface TemplateTag { /** Tag id */ id: string; /** Tag name */ name: string; /** Tag color. Should be in hex format */ color?: string; } /** * Data needed to create/edit a tag */ type InputTemplateTag = Omit; //#endregion //#region src/modules/template-tags/methods.d.ts type PaginatedTemplateTags = SdkPaginated & { meta: { default: string; }; }; /** * Get all available template tags * * @returns All template tags' info */ declare function getAllTemplateTags(opts?: ApiRequestOptions & { include?: string[]; }): Promise; /** * Get template tag info * * @param tagOrId Template tag or template tag's id * * @returns template tag info */ declare function getTemplateTag(tagOrId: TemplateTag | string, include?: string[]): Promise; /** * Create a new template tag * * @param tag Template tag's data * * @returns Created template tag's info */ declare function createTemplateTag(tag: InputTemplateTag): Promise; /** * Update or create a template tag * * @param tag Template tag's data **with id** * * @returns Updated/Created template tag's info */ declare function upsertTemplateTag({ id, ...tag }: InputTemplateTag & { id: string; }): Promise; /** * Delete a template tag * * @param tagOrId Template tag or template tag's id * * @returns Whether the template tag was deleted */ declare function deleteTemplateTag(tagOrId: TemplateTag | string): Promise; //#endregion export { upsertTemplateTag as a, getTemplateTag as i, deleteTemplateTag as n, InputTemplateTag as o, getAllTemplateTags as r, TemplateTag as s, createTemplateTag as t }; //# sourceMappingURL=index-ByHARxus.d.mts.map