@abpjs/text-template-management 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ABP, RoutesService, RestService, PagedResultRequestDto, ListResultDto } from '@abpjs/core';
1
+ import { ABP, RoutesService, RestService, PagedResultDto, PagedResultRequestDto } from '@abpjs/core';
2
2
  import React from 'react';
3
3
 
4
4
  /**
@@ -187,101 +187,79 @@ declare class TextTemplateManagementExtensionsGuard {
187
187
  }
188
188
 
189
189
  /**
190
- * Text Template Management Models
191
- * Translated from @volo/abp.ng.text-template-management v2.7.0
190
+ * Text Template Management Proxy DTOs
191
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
192
+ *
193
+ * Typed Data Transfer Objects for the Text Template Management module proxy services.
194
+ *
195
+ * @since 3.2.0
192
196
  */
193
197
  /**
194
- * Text Template Management namespace containing types and interfaces
195
- * @since 2.7.0
198
+ * Input for getting template content
199
+ * @since 3.2.0
196
200
  */
197
- declare namespace TextTemplateManagement {
198
- /**
199
- * Template definition DTO
200
- * Represents a text template definition
201
- */
202
- interface TemplateDefinitionDto {
203
- /** Template name (unique identifier) */
204
- name: string;
205
- /** Display name for the template */
206
- displayName: string;
207
- /** Whether this template is a layout template */
208
- isLayout: boolean;
209
- /** Layout template name (if this template uses a layout) */
210
- layout: string;
211
- /** Default culture name for the template */
212
- defaultCultureName: string;
213
- /** Whether the template is localized inline */
214
- isInlineLocalized: boolean;
215
- }
216
- /**
217
- * Text template content DTO
218
- * Represents the content of a text template
219
- */
220
- interface TextTemplateContentDto {
221
- /** Template name */
222
- name: string;
223
- /** Culture name for the content */
224
- cultureName: string;
225
- /** Template content */
226
- content: string;
227
- }
228
- /**
229
- * Input for getting template content
230
- */
231
- interface TemplateContentInput {
232
- /** Template name */
233
- templateName: string;
234
- /** Optional culture name */
235
- cultureName?: string;
236
- }
237
- /**
238
- * DTO for creating or updating template content
239
- */
240
- interface CreateOrUpdateTemplateContentDto {
241
- /** Template name */
242
- templateName: string;
243
- /** Culture name for the content */
244
- cultureName: string;
245
- /** Template content */
246
- content: string;
247
- }
248
- /**
249
- * State interface for text template management
250
- * @since 2.7.0
251
- */
252
- interface State {
253
- /** List of template definitions */
254
- templateDefinitions: TemplateDefinitionDto[];
255
- /** Total count of template definitions */
256
- totalCount: number;
257
- /** Currently selected template definition */
258
- selectedTemplate: TemplateDefinitionDto | null;
259
- /** Template content for the selected template */
260
- templateContent: TextTemplateContentDto | null;
261
- }
262
- /**
263
- * Request parameters for fetching template definitions
264
- */
265
- interface GetTemplateDefinitionsInput {
266
- /** Filter text */
267
- filterText?: string;
268
- /** Skip count for pagination */
269
- skipCount?: number;
270
- /** Max result count for pagination */
271
- maxResultCount?: number;
272
- /** Sorting field and order */
273
- sorting?: string;
274
- }
201
+ interface GetTemplateContentInput {
202
+ templateName: string;
203
+ cultureName: string;
204
+ }
205
+ /**
206
+ * Input for getting template definition list
207
+ * @since 3.2.0
208
+ */
209
+ interface GetTemplateDefinitionListInput {
210
+ filterText?: string;
211
+ skipCount?: number;
212
+ maxResultCount?: number;
213
+ sorting?: string;
214
+ }
215
+ /**
216
+ * Input for restoring template content to default
217
+ * @since 3.2.0
218
+ */
219
+ interface RestoreTemplateContentInput {
220
+ templateName: string;
221
+ cultureName: string;
222
+ }
223
+ /**
224
+ * Template definition DTO
225
+ * @since 3.2.0
226
+ */
227
+ interface TemplateDefinitionDto {
228
+ name: string;
229
+ displayName: string;
230
+ isLayout: boolean;
231
+ layout: string;
232
+ isInlineLocalized: boolean;
233
+ defaultCultureName: string;
234
+ }
235
+ /**
236
+ * Text template content DTO
237
+ * @since 3.2.0
238
+ */
239
+ interface TextTemplateContentDto {
240
+ name: string;
241
+ cultureName: string;
242
+ content: string;
243
+ }
244
+ /**
245
+ * Input for updating template content
246
+ * @since 3.2.0
247
+ */
248
+ interface UpdateTemplateContentInput {
249
+ templateName: string;
250
+ cultureName: string;
251
+ content: string;
275
252
  }
276
253
 
277
254
  /**
278
255
  * Text Template Management Extension Tokens
279
- * Translated from @volo/abp.ng.text-template-management v3.0.0
256
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
280
257
  *
281
258
  * Default entity actions, toolbar actions, and entity props
282
259
  * for the Text Template Management module extensibility system.
283
260
  *
284
261
  * @since 3.0.0
262
+ * @updated 3.2.0 - Now uses proxy DTOs (TemplateDefinitionDto)
285
263
  */
286
264
 
287
265
  /**
@@ -321,40 +299,43 @@ interface EntityProp<T = unknown> {
321
299
  /**
322
300
  * Default entity actions for TextTemplates component
323
301
  * @since 3.0.0
302
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
324
303
  */
325
- declare const DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS: EntityAction<TextTemplateManagement.TemplateDefinitionDto>[];
304
+ declare const DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS: EntityAction<TemplateDefinitionDto>[];
326
305
  /**
327
306
  * Default entity actions aggregated by component
328
307
  * @since 3.0.0
329
308
  */
330
309
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS: {
331
- readonly "TextTemplateManagement.TextTemplates": EntityAction<TextTemplateManagement.TemplateDefinitionDto>[];
310
+ readonly "TextTemplateManagement.TextTemplates": EntityAction<TemplateDefinitionDto>[];
332
311
  };
333
312
  /**
334
313
  * Default toolbar actions for TextTemplates component
335
314
  * Note: Text Template Management typically doesn't have create functionality
336
315
  * as templates are defined in code
337
316
  * @since 3.0.0
317
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
338
318
  */
339
- declare const DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS: ToolbarAction<TextTemplateManagement.TemplateDefinitionDto[]>[];
319
+ declare const DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS: ToolbarAction<TemplateDefinitionDto[]>[];
340
320
  /**
341
321
  * Default toolbar actions aggregated by component
342
322
  * @since 3.0.0
343
323
  */
344
324
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS: {
345
- readonly "TextTemplateManagement.TextTemplates": ToolbarAction<TextTemplateManagement.TemplateDefinitionDto[]>[];
325
+ readonly "TextTemplateManagement.TextTemplates": ToolbarAction<TemplateDefinitionDto[]>[];
346
326
  };
347
327
  /**
348
328
  * Default entity props for TextTemplates component
349
329
  * @since 3.0.0
330
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
350
331
  */
351
- declare const DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS: EntityProp<TextTemplateManagement.TemplateDefinitionDto>[];
332
+ declare const DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS: EntityProp<TemplateDefinitionDto>[];
352
333
  /**
353
334
  * Default entity props aggregated by component
354
335
  * @since 3.0.0
355
336
  */
356
337
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS: {
357
- readonly "TextTemplateManagement.TextTemplates": EntityProp<TextTemplateManagement.TemplateDefinitionDto>[];
338
+ readonly "TextTemplateManagement.TextTemplates": EntityProp<TemplateDefinitionDto>[];
358
339
  };
359
340
  /**
360
341
  * Entity action contributor callback type
@@ -390,6 +371,118 @@ declare const TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS: unique symbo
390
371
  */
391
372
  declare const TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS: unique symbol;
392
373
 
374
+ /**
375
+ * Text Template Management Models
376
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
377
+ *
378
+ * @deprecated Legacy types in this namespace are deprecated and will be removed in v4.0.
379
+ * Use the new proxy types from '@abpjs/text-template-management' instead:
380
+ * - TemplateDefinitionDto from proxy/text-templates/models
381
+ * - TextTemplateContentDto from proxy/text-templates/models
382
+ * - GetTemplateContentInput from proxy/text-templates/models
383
+ * - UpdateTemplateContentInput from proxy/text-templates/models
384
+ * - RestoreTemplateContentInput from proxy/text-templates/models
385
+ * - GetTemplateDefinitionListInput from proxy/text-templates/models
386
+ */
387
+ /**
388
+ * Text Template Management namespace containing types and interfaces
389
+ * @since 2.7.0
390
+ * @deprecated To be removed in v4.0. Use proxy types instead.
391
+ */
392
+ declare namespace TextTemplateManagement {
393
+ /**
394
+ * Template definition DTO
395
+ * Represents a text template definition
396
+ * @deprecated To be removed in v4.0. Use TemplateDefinitionDto from proxy/text-templates/models
397
+ */
398
+ interface TemplateDefinitionDto {
399
+ /** Template name (unique identifier) */
400
+ name: string;
401
+ /** Display name for the template */
402
+ displayName: string;
403
+ /** Whether this template is a layout template */
404
+ isLayout: boolean;
405
+ /** Layout template name (if this template uses a layout) */
406
+ layout: string;
407
+ /** Default culture name for the template */
408
+ defaultCultureName: string;
409
+ /** Whether the template is localized inline */
410
+ isInlineLocalized: boolean;
411
+ }
412
+ /**
413
+ * Text template content DTO
414
+ * Represents the content of a text template
415
+ * @deprecated To be removed in v4.0. Use TextTemplateContentDto from proxy/text-templates/models
416
+ */
417
+ interface TextTemplateContentDto {
418
+ /** Template name */
419
+ name: string;
420
+ /** Culture name for the content */
421
+ cultureName: string;
422
+ /** Template content */
423
+ content: string;
424
+ }
425
+ /**
426
+ * Input for getting template content
427
+ * @deprecated To be removed in v4.0. Use GetTemplateContentInput from proxy/text-templates/models
428
+ */
429
+ interface TemplateContentInput {
430
+ /** Template name */
431
+ templateName: string;
432
+ /** Optional culture name */
433
+ cultureName?: string;
434
+ }
435
+ /**
436
+ * DTO for creating or updating template content
437
+ * @deprecated To be removed in v4.0. Use UpdateTemplateContentInput from proxy/text-templates/models
438
+ */
439
+ interface CreateOrUpdateTemplateContentDto {
440
+ /** Template name */
441
+ templateName: string;
442
+ /** Culture name for the content */
443
+ cultureName: string;
444
+ /** Template content */
445
+ content: string;
446
+ }
447
+ /**
448
+ * State interface for text template management
449
+ * @since 2.7.0
450
+ */
451
+ interface State {
452
+ /** List of template definitions */
453
+ templateDefinitions: TemplateDefinitionDto[];
454
+ /** Total count of template definitions */
455
+ totalCount: number;
456
+ /** Currently selected template definition */
457
+ selectedTemplate: TemplateDefinitionDto | null;
458
+ /** Template content for the selected template */
459
+ templateContent: TextTemplateContentDto | null;
460
+ }
461
+ /**
462
+ * Request parameters for fetching template definitions
463
+ * @deprecated To be removed in v4.0. Use GetTemplateDefinitionListInput from proxy/text-templates/models
464
+ */
465
+ interface GetTemplateDefinitionsInput {
466
+ /** Filter text */
467
+ filterText?: string;
468
+ /** Skip count for pagination */
469
+ skipCount?: number;
470
+ /** Max result count for pagination */
471
+ maxResultCount?: number;
472
+ /** Sorting field and order */
473
+ sorting?: string;
474
+ }
475
+ }
476
+
477
+ /**
478
+ * Factory function to create GetTemplateDefinitionListInput
479
+ * @param initialValues Optional initial values
480
+ * @returns GetTemplateDefinitionListInput instance
481
+ * @since 3.1.0
482
+ * @deprecated To be removed in v4.0. Use GetTemplateDefinitionListInput from proxy/text-templates/models directly
483
+ */
484
+ declare function createGetTemplateDefinitionListInput(initialValues?: Partial<GetTemplateDefinitionListInput>): GetTemplateDefinitionListInput;
485
+
393
486
  /**
394
487
  * Text Template Management Config Options
395
488
  * Translated from @volo/abp.ng.text-template-management v3.0.0
@@ -446,82 +539,15 @@ declare const TEXT_TEMPLATE_MANAGEMENT_ROUTES: {
446
539
  routes: ABP.FullRoute[];
447
540
  };
448
541
 
449
- /**
450
- * Template Definition Service
451
- * Translated from @volo/abp.ng.text-template-management v2.7.0
452
- *
453
- * Provides REST API methods for managing text template definitions.
454
- */
455
-
456
- /**
457
- * Service for template definition operations.
458
- * This service wraps all REST API calls for template definitions.
459
- *
460
- * @since 2.7.0
461
- */
462
- declare class TemplateDefinitionService {
463
- private restService;
464
- /**
465
- * API name for multi-API configurations
466
- * @since 2.7.0
467
- */
468
- apiName: string;
469
- constructor(restService: RestService);
470
- /**
471
- * Get list of template definitions
472
- * @param params Query parameters for filtering and pagination
473
- * @returns Promise with list of template definitions
474
- */
475
- getList(params?: Partial<PagedResultRequestDto>): Promise<ListResultDto<TextTemplateManagement.TemplateDefinitionDto>>;
476
- }
477
-
478
- /**
479
- * Template Content Service
480
- * Translated from @volo/abp.ng.text-template-management v2.7.0
481
- *
482
- * Provides REST API methods for managing text template content.
483
- */
484
-
485
- /**
486
- * Service for template content operations.
487
- * This service wraps all REST API calls for template content.
488
- *
489
- * @since 2.7.0
490
- */
491
- declare class TemplateContentService {
492
- private restService;
493
- /**
494
- * API name for multi-API configurations
495
- * @since 2.7.0
496
- */
497
- apiName: string;
498
- constructor(restService: RestService);
499
- /**
500
- * Get template content by input parameters
501
- * @param params Input parameters containing template name and optional culture name
502
- * @returns Promise with template content
503
- */
504
- getByInput(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateManagement.TextTemplateContentDto>;
505
- /**
506
- * Restore template content to default
507
- * @param body Input containing template name and culture name to restore
508
- * @returns Promise that resolves when restore is complete
509
- */
510
- restoreToDefaultByInput(body: TextTemplateManagement.TemplateContentInput): Promise<void>;
511
- /**
512
- * Update template content
513
- * @param body DTO containing template name, culture name, and new content
514
- * @returns Promise with updated template content
515
- */
516
- updateByInput(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateManagement.TextTemplateContentDto>;
517
- }
518
-
519
542
  /**
520
543
  * Text Template Management State Service
521
- * Translated from @volo/abp.ng.text-template-management v2.7.0
544
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
522
545
  *
523
546
  * Provides a stateful facade over text template operations,
524
547
  * maintaining internal state similar to Angular's NGXS store pattern.
548
+ *
549
+ * @since 2.7.0
550
+ * @updated 3.2.0 - Now uses proxy services
525
551
  */
526
552
 
527
553
  /**
@@ -529,6 +555,7 @@ declare class TemplateContentService {
529
555
  * Maintains state for template definitions and content.
530
556
  *
531
557
  * @since 2.7.0
558
+ * @updated 3.2.0 - Now uses proxy services internally
532
559
  */
533
560
  declare class TextTemplateManagementStateService {
534
561
  private templateDefinitionService;
@@ -539,7 +566,7 @@ declare class TextTemplateManagementStateService {
539
566
  * Get template definitions from state
540
567
  * @returns Array of template definitions
541
568
  */
542
- getTemplateDefinitions(): TextTemplateManagement.TemplateDefinitionDto[];
569
+ getTemplateDefinitions(): TemplateDefinitionDto[];
543
570
  /**
544
571
  * Get total count of template definitions
545
572
  * @returns Total count
@@ -549,30 +576,31 @@ declare class TextTemplateManagementStateService {
549
576
  * Get the currently selected template
550
577
  * @returns Selected template or null
551
578
  */
552
- getSelectedTemplate(): TextTemplateManagement.TemplateDefinitionDto | null;
579
+ getSelectedTemplate(): TemplateDefinitionDto | null;
553
580
  /**
554
581
  * Get template content from state
555
582
  * @returns Template content or null
556
583
  */
557
- getTemplateContent(): TextTemplateManagement.TextTemplateContentDto | null;
584
+ getTemplateContent(): TextTemplateContentDto | null;
558
585
  /**
559
586
  * Dispatch action to fetch template definitions
560
587
  * @param params Query parameters for filtering and pagination
561
- * @returns Promise with list result
588
+ * @returns Promise with paged result
589
+ * @updated 3.2.0 - Now returns PagedResultDto instead of ListResultDto
562
590
  */
563
- dispatchGetTemplateDefinitions(params?: Partial<PagedResultRequestDto>): Promise<ListResultDto<TextTemplateManagement.TemplateDefinitionDto>>;
591
+ dispatchGetTemplateDefinitions(params?: GetTemplateDefinitionListInput): Promise<PagedResultDto<TemplateDefinitionDto>>;
564
592
  /**
565
593
  * Dispatch action to get template content
566
- * @param params Input containing template name and optional culture name
594
+ * @param params Input containing template name and culture name
567
595
  * @returns Promise with template content
568
596
  */
569
- dispatchGetTemplateContent(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateManagement.TextTemplateContentDto>;
597
+ dispatchGetTemplateContent(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateContentDto>;
570
598
  /**
571
599
  * Dispatch action to update template content
572
600
  * @param body DTO containing template name, culture name, and content
573
601
  * @returns Promise with updated template content
574
602
  */
575
- dispatchUpdateTemplateContent(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateManagement.TextTemplateContentDto>;
603
+ dispatchUpdateTemplateContent(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateContentDto>;
576
604
  /**
577
605
  * Dispatch action to restore template content to default
578
606
  * @param body Input containing template name and culture name
@@ -583,7 +611,7 @@ declare class TextTemplateManagementStateService {
583
611
  * Set the selected template
584
612
  * @param template Template to select or null to clear
585
613
  */
586
- setSelectedTemplate(template: TextTemplateManagement.TemplateDefinitionDto | null): void;
614
+ setSelectedTemplate(template: TemplateDefinitionDto | null): void;
587
615
  /**
588
616
  * Clear all state
589
617
  */
@@ -747,4 +775,86 @@ interface TemplateContentsComponentProps {
747
775
  */
748
776
  declare function TemplateContentsComponent({ templateName, cultures, defaultCultureName, onSave, onRestore, className, }: TemplateContentsComponentProps): React.ReactElement;
749
777
 
750
- export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
778
+ /**
779
+ * Template Content Proxy Service
780
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
781
+ *
782
+ * Provides typed REST API methods for managing text template content.
783
+ *
784
+ * @since 3.2.0
785
+ */
786
+
787
+ /**
788
+ * Service for template content operations with typed DTOs.
789
+ * This is the new proxy service that replaces the legacy TemplateContentService
790
+ * in lib/services.
791
+ *
792
+ * @since 3.2.0
793
+ */
794
+ declare class TemplateContentService {
795
+ private restService;
796
+ /**
797
+ * API name for multi-API configurations
798
+ * @since 3.2.0
799
+ */
800
+ apiName: string;
801
+ constructor(restService: RestService);
802
+ /**
803
+ * Get template content
804
+ * @param input Input containing template name and culture name
805
+ * @returns Promise with template content
806
+ */
807
+ get(input: GetTemplateContentInput): Promise<TextTemplateContentDto>;
808
+ /**
809
+ * Restore template content to default
810
+ * @param input Input containing template name and culture name
811
+ * @returns Promise that resolves when restore is complete
812
+ */
813
+ restoreToDefault(input: RestoreTemplateContentInput): Promise<void>;
814
+ /**
815
+ * Update template content
816
+ * @param input Input containing template name, culture name, and content
817
+ * @returns Promise with updated template content
818
+ */
819
+ update(input: UpdateTemplateContentInput): Promise<TextTemplateContentDto>;
820
+ }
821
+
822
+ /**
823
+ * Template Definition Proxy Service
824
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
825
+ *
826
+ * Provides typed REST API methods for managing text template definitions.
827
+ *
828
+ * @since 3.2.0
829
+ */
830
+
831
+ /**
832
+ * Service for template definition operations with typed DTOs.
833
+ * This is the new proxy service that replaces the legacy TemplateDefinitionService
834
+ * in lib/services.
835
+ *
836
+ * @since 3.2.0
837
+ */
838
+ declare class TemplateDefinitionService {
839
+ private restService;
840
+ /**
841
+ * API name for multi-API configurations
842
+ * @since 3.2.0
843
+ */
844
+ apiName: string;
845
+ constructor(restService: RestService);
846
+ /**
847
+ * Get a template definition by name
848
+ * @param name Template name
849
+ * @returns Promise with template definition
850
+ */
851
+ get(name: string): Promise<TemplateDefinitionDto>;
852
+ /**
853
+ * Get paginated list of template definitions
854
+ * @param input Query parameters for filtering and pagination
855
+ * @returns Promise with paginated template definitions response
856
+ */
857
+ getList(input?: GetTemplateDefinitionListInput): Promise<PagedResultDto<TemplateDefinitionDto>>;
858
+ }
859
+
860
+ export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type GetTemplateContentInput, type GetTemplateDefinitionListInput, type RestoreTemplateContentInput, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, type TemplateDefinitionDto, TemplateDefinitionService, type TextTemplateContentDto, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UpdateTemplateContentInput, type UseTextTemplatesReturn, configureRoutes, createGetTemplateDefinitionListInput, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };