import { ApiHelpers } from "./ApiHelpers"; export declare class DocumentTypeApiHelper { api: ApiHelpers; constructor(api: ApiHelpers); ensureNameNotExists(name: string): Promise; getAllAtRoot(): Promise; private recurseChildren; private recurseDeleteChildren; getChildren(id: string): Promise; create(documentType: any): Promise; get(id: string): Promise; getByName(name: string): Promise; doesNameExist(name: string): Promise; delete(id: string): Promise; getFolder(id: string): Promise; deleteFolder(id: string): Promise; createFolder(name: string, parentId?: string): Promise; renameFolder(folderId: string, folderName: string): Promise; createDefaultDocumentType(documentTypeName: string): Promise; createDocumentTypeWithPropertyEditor(documentTypeName: string, dataTypeName: string, dataTypeId: string, groupName?: string, documentTypeVaryByCulture?: boolean, propertyVaryByCulture?: boolean, isMandatory?: boolean, documentTypeVaryBySegment?: boolean, propertyTypeVaryBySegment?: boolean): Promise; createDocumentTypeWithPropertyEditorAndTwoGroups(documentTypeName: string, firstPropertyName: string, firstDataTypeId: string, firstGroupName: string | undefined, secondPropertyName: string, secondDataTypeId: string, secondGroupName?: string): Promise; createDocumentTypeWithPropertyEditorInTab(documentTypeName: string, dataTypeName: string, dataTypeId: string, tabName: string, groupName?: string, varyByCulture?: boolean, allowAsRoot?: boolean): Promise; createDocumentTypeWithPropertyEditorDirectlyInTwoTabs(documentTypeName: string, dataTypeName: string, dataTypeId: string, tabName: string, secondTabName: string, secondTabDataTypeName: string, secondTabDataTypeId: string, varyByCulture?: boolean, allowAsRoot?: boolean): Promise; createDocumentTypeWithPropertyEditorInTabAndAnotherTab(documentTypeName: string, dataTypeName: string, dataTypeId: string, tabName: string, secondTabName: string, secondTabDataTypeName: string, secondTabDataTypeId: string, groupName?: string, varyByCulture?: boolean, allowAsRoot?: boolean): Promise; createDocumentTypeWithTwoPropertyEditors(documentTypeName: string, dataTypeNameOne: string, dataTypeIdOne: string, dataTypeNameTwo: string, dataTypeIdTwo: string, groupName?: string): Promise; createDefaultDocumentTypeWithAllowAsRoot(documentTypeName: string): Promise; createDocumentTypeWithAllowedChildNode(documentTypeName: string, allowedChildNodeId: string): Promise; createDocumentTypeWithAPropertyEditorAndAnAllowedChildNode(documentTypeName: string, dataTypeName: string, dataTypeId: string, allowedChildNodeId: string, groupName?: string): Promise; createDocumentTypeWithAllowedTemplate(documentTypeName: string, allowedTemplateId: string, isAllowedAsRoot?: boolean): Promise; createDocumentTypeWithTwoAllowedTemplates(documentTypeName: string, allowedTemplateOneId: string, allowedTemplateTwoId: string, isAllowedAsRoot?: boolean, defaultTemplateId?: string): Promise; createDocumentTypeWithTwoGroups(documentTypeName: string, dataType: string, dataTypeId: string, groupNameOne: string, groupNameTwo: string): Promise; createDocumentTypeWithAComposition(documentTypeName: string, compositionId: string): Promise; createEmptyElementType(elementTypeName: string): Promise; createDocumentTypeWithTwoTabs(documentTypeName: string, dataType: string, dataTypeId: string, tabNameOne: string, tabNameTwo: string): Promise; createDefaultElementType(elementName: string, groupName: string | undefined, dataTypeName: string | undefined, dataTypeId: string, isMandatory?: boolean): Promise; createDefaultElementTypeWithVaryByCulture(elementName: string, groupName: string | undefined, dataTypeName: string | undefined, dataTypeId: string, elementTypeVaryByCulture: boolean, dataTypeVaryByCulture: boolean): Promise; createElementTypeWithRegexValidation(elementName: string, groupName: string | undefined, dataTypeName: string | undefined, dataTypeId: string, regex: string): Promise; createElementTypeWithPropertyInTab(elementName: string, tabName: string | undefined, groupName: string | undefined, dataTypeName: string | undefined, dataTypeId: string, isMandatory?: boolean): Promise; doesGroupContainCorrectPropertyEditor(documentTypeName: string, dataTypeName: string, dataTypeId: string, groupName: string): Promise; doesTabContainCorrectPropertyEditorInGroup(documentTypeName: string, dataTypeName: string, dataTypeId: string, tabName: string, groupName: string): Promise; doesDocumentTypeGroupNameContainCorrectSortOrder(documentTypeName: string, groupName: string, sortOrder: number): Promise; doesDocumentTypeTabNameContainCorrectSortOrder(documentTypeName: string, tabName: string, sortOrder: number): Promise; getContainerIdWithName(documentTypeName: string, containerName: string): Promise; createDocumentTypeWithAllowedTwoChildNodes(documentTypeName: string, allowedChildNodeOneId: string, allowedChildNodeTwoId: string): Promise; createDocumentTypeWithAllowedChildNodeAndDataType(documentTypeName: string, allowedChildNodeId: string, dataTypeName: string, dataTypeId: string, groupName?: string): Promise; createDocumentTypeWithAllowedChildNodeAndCollectionId(documentTypeName: string, allowedChildNodeId: string, collectionId: string): Promise; createDocumentTypeWithCollectionId(documentTypeName: string, collectionId: string): Promise; createDocumentTypeWithAllowVaryByCulture(documentTypeName: string): Promise; createDocumentTypeWithPropertyEditorAndAllowedTemplate(documentTypeName: string, dataTypeId: string, propertyName: string, templateId: string): Promise; createVariantDocumentTypeWithInvariantPropertyEditor(documentTypeName: string, dataTypeName: string, dataTypeId: string): Promise; createVariantDocumentTypeWithAllowedChildNodeAndInvariantPropertyEditor(documentTypeName: string, allowedChildNodeId: string, dataTypeName: string, dataTypeId: string, groupName?: string): Promise; getPropertyIdWithName(documentTypeId: string, propertyName: string): Promise; createElementTypeWithTwoPropertyEditors(elementTypeName: string, firstDataTypeName: string, firstDataTypeId: string, secondDataTypeName: string, secondDataTypeId: string, elementTypeVaryByCulture?: boolean, firstPropertyVaryByCulture?: boolean, secondPropertyVaryByCulture?: boolean): Promise; /** * Creates a variant element type with two properties: one variant and one invariant. * Useful for testing scenarios where a block has both culture-specific and shared properties. */ createVariantElementTypeWithVariantAndInvariantProperty(elementName: string, groupName: string, variantPropertyName: string, invariantPropertyName: string, dataTypeId: string): Promise; /** * Creates a document type with variant and invariant block lists for testing multilingual scenarios. * * Structure created: * - Document Type (Vary by culture) * - Text 1 (Vary by culture) * - Text 2 (Shared) * - Block List 1 (Vary by culture) - contains Block 1 and Block 2 * - Block List 2 (Shared) - contains Block 1 and Block 2 * * - Block 1 Element Type (Vary by culture) * - Text 1 (Vary by culture) * - Text 2 (Shared) * * - Block 2 Element Type (Shared/Invariant) * - Text 1 * - Text 2 */ createDocumentTypeWithVariantAndInvariantBlockLists(documentTypeName: string, firstDataTypeName: string, firstDataTypeId: string, secondDataTypeName: string, secondDataTypeId: string, blockList1DataTypeName: string, blockList2DataTypeName: string, block1ElementTypeName: string, block2ElementTypeName: string): Promise; }