/** * OPC and Office Open XML package constants from the local corpus. * * Citations: * - Content types / relationships namespaces: ECMA-376-2 Open Packaging Conventions * - officeDocument transitional URI: ECMA-376-1 / MS-OI29500 * - officeDocument strict URI: `http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument` * * Do not invent relationship types or content types here. */ /** OPC content types markup namespace (ECMA-376-2). */ export declare const CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types"; /** OPC relationships markup namespace (ECMA-376-2). */ export declare const RELATIONSHIPS_NS = "http://schemas.openxmlformats.org/package/2006/relationships"; /** * Package-relationship type for the office document part (Transitional). * ECMA-376-1 / Office Open XML. */ export declare const OFFICE_DOCUMENT_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"; /** * Package-relationship type for the office document part (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const OFFICE_DOCUMENT_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument"; /** ZIP / package path for content types. */ export declare const CONTENT_TYPES_ZIP_NAME = "[Content_Types].xml"; /** ZIP path for package-level relationships. */ export declare const PACKAGE_RELS_ZIP_NAME = "_rels/.rels"; /** OPC absolute part name for content types. */ export declare const CONTENT_TYPES_PART_NAME = "/[Content_Types].xml"; /** OPC absolute part name for package relationships. */ export declare const PACKAGE_RELS_PART_NAME = "/_rels/.rels"; /** * True when `type` is an officeDocument relationship (Strict or Transitional). */ export declare function isOfficeDocumentRelationshipType(type: string): boolean; /** * SpreadsheetML main namespace (Transitional). * ECMA-376-1 / `sml.xsd`. */ export declare const SPREADSHEETML_NS_TRANSITIONAL = "http://schemas.openxmlformats.org/spreadsheetml/2006/main"; /** * Office document relationships markup namespace (used as `r:` on sheet/@id). * ECMA-376-1. */ export declare const OFFICE_DOCUMENT_RELATIONSHIPS_NS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"; /** * Workbook part content type (Transitional SpreadsheetML). * ECMA-376-1. */ export declare const WORKBOOK_CONTENT_TYPE_TRANSITIONAL = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"; /** * Worksheet part content type (Transitional SpreadsheetML). * ECMA-376-1. */ export declare const WORKSHEET_CONTENT_TYPE_TRANSITIONAL = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"; /** * Worksheet relationship type (Transitional). * ECMA-376-1 officeDocument relationships. */ export declare const WORKSHEET_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"; /** * Worksheet relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const WORKSHEET_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"; /** * True when `type` is a worksheet relationship (Strict or Transitional). */ export declare function isWorksheetRelationshipType(type: string): boolean; /** * Shared strings part content type (Transitional SpreadsheetML). * ECMA-376-1 §12.3.15 Shared String Table Part. */ export declare const SHARED_STRINGS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"; /** * Shared strings relationship type (Transitional). * ECMA-376-4 §10.2.15 / officeDocument relationships. */ export declare const SHARED_STRINGS_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"; /** * Shared strings relationship type (Strict). * ECMA-376-1 §12.3.15. */ export declare const SHARED_STRINGS_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/sharedStrings"; /** * Default absolute part name for the shared string table. * ECMA-376-1 §12.3.15. */ export declare const DEFAULT_SHARED_STRINGS_PART_NAME = "/xl/sharedStrings.xml"; /** * True when `type` is a sharedStrings relationship (Strict or Transitional). */ export declare function isSharedStringsRelationshipType(type: string): boolean; /** * Table definition part content type (Transitional SpreadsheetML). * ECMA-376-1 §12.3.21 Table Definition Part. */ export declare const TABLE_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"; /** * Table relationship type (worksheet → table part, Transitional). * ECMA-376-4 §10.2 officeDocument relationships. */ export declare const TABLE_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"; /** * Table relationship type (worksheet → table part, Strict). * ECMA-376-1 §12.3.21 Table Definition Part (`purl.oclc.org` form). */ export declare const TABLE_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/table"; /** * True when `type` is a table relationship (Strict or Transitional). */ export declare function isTableRelationshipType(type: string): boolean; /** * Styles part content type (Transitional SpreadsheetML). * ECMA-376-1 §12.3.20 Styles Part. */ export declare const STYLES_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"; /** * Styles relationship type (Transitional). * ECMA-376-4 officeDocument relationships. */ export declare const STYLES_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; /** * Styles relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const STYLES_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/styles"; /** * Default absolute part name for the styles part. * ECMA-376-1 §12.3.20. */ export declare const DEFAULT_STYLES_PART_NAME = "/xl/styles.xml"; /** * True when `type` is a styles relationship (Strict or Transitional). */ export declare function isStylesRelationshipType(type: string): boolean; /** * Theme part relationship type (Transitional). * ECMA-376-4 §12.2.7 Theme Part. */ export declare const THEME_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"; /** * Theme part relationship type (Strict). * ECMA-376-1 §14.2.7 Theme Part. */ export declare const THEME_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/theme"; /** * True when `type` is a theme relationship (Strict or Transitional). * Theme Override is a different part and is not accepted here. */ export declare function isThemeRelationshipType(type: string): boolean; /** * Hyperlink relationship type (Transitional). * ECMA-376-4 officeDocument relationships / worksheet hyperlinks. * Citation: ECMA-376-1 §18.3.1.47; officeDocument `…/relationships/hyperlink`. */ export declare const HYPERLINK_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"; /** * Hyperlink relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const HYPERLINK_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/hyperlink"; /** * True when `type` is a hyperlink relationship (Strict or Transitional). */ export declare function isHyperlinkRelationshipType(type: string): boolean; /** * Core properties part content type (OPC). * ECMA-376-2 / opc-coreProperties; Override PartName `/docProps/core.xml`. */ export declare const CORE_PROPERTIES_CONTENT_TYPE = "application/vnd.openxmlformats-package.core-properties+xml"; /** * Extended (application) properties part content type. * ECMA-376-1 shared-documentPropertiesExtended; `/docProps/app.xml`. */ export declare const EXTENDED_PROPERTIES_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.extended-properties+xml"; /** * Custom properties part content type (opaque preserve only in M1). * ECMA-376-1 shared-documentPropertiesCustom. */ export declare const CUSTOM_PROPERTIES_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.custom-properties+xml"; /** * Package-relationship type for the core properties part. * ECMA-376-2 §9.3 / OPC metadata relationships. */ export declare const CORE_PROPERTIES_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"; /** * Package-relationship type for extended properties (`app.xml`). * ECMA-376-1 officeDocument relationships. */ export declare const EXTENDED_PROPERTIES_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"; /** * Extended properties relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const EXTENDED_PROPERTIES_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/extended-properties"; /** * Package-relationship type for custom properties (`custom.xml`). * ECMA-376-1 officeDocument relationships — preserved, not authored yet. */ export declare const CUSTOM_PROPERTIES_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties"; /** * Custom properties relationship type (Strict). */ export declare const CUSTOM_PROPERTIES_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/custom-properties"; /** * Default absolute part name for core properties. * ECMA-376-2 / common Office layout `docProps/core.xml`. */ export declare const DEFAULT_CORE_PROPERTIES_PART_NAME = "/docProps/core.xml"; /** * Default absolute part name for extended properties. * ECMA-376-1 / common Office layout `docProps/app.xml`. */ export declare const DEFAULT_EXTENDED_PROPERTIES_PART_NAME = "/docProps/app.xml"; /** * Default absolute part name for custom properties (opaque). */ export declare const DEFAULT_CUSTOM_PROPERTIES_PART_NAME = "/docProps/custom.xml"; /** * Core properties markup namespace (`cp:`). * ECMA-376-2 opc-coreProperties.xsd. */ export declare const CORE_PROPERTIES_NS = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"; /** * Dublin Core elements namespace (`dc:`). */ export declare const DUBLIN_CORE_NS = "http://purl.org/dc/elements/1.1/"; /** * Dublin Core terms namespace (`dcterms:`). */ export declare const DUBLIN_CORE_TERMS_NS = "http://purl.org/dc/terms/"; /** * XML Schema instance namespace (`xsi:`) — used on dcterms created/modified. */ export declare const XML_SCHEMA_INSTANCE_NS = "http://www.w3.org/2001/XMLSchema-instance"; /** * Extended properties markup namespace (unprefixed root `Properties`). * shared-documentPropertiesExtended.xsd. */ export declare const EXTENDED_PROPERTIES_NS = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"; /** * Variant types namespace (`vt:`) used inside extended/custom properties. */ export declare const DOC_PROPS_VTYPES_NS = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"; /** * True when `type` is a core-properties package relationship. */ export declare function isCorePropertiesRelationshipType(type: string): boolean; /** * True when `type` is an extended-properties relationship (Strict or Transitional). */ export declare function isExtendedPropertiesRelationshipType(type: string): boolean; /** * True when `type` is a custom-properties relationship (Strict or Transitional). */ export declare function isCustomPropertiesRelationshipType(type: string): boolean; /** * Drawing part content type used by spreadsheetDrawing parts. * ECMA-376-1 / dml-spreadsheetDrawing.xsd (CT_WsDr). */ export declare const DRAWING_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawing+xml"; /** * Drawing relationship type (Transitional). * ECMA-376-1 officeDocument relationships / worksheet drawings. */ export declare const DRAWING_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"; /** * Drawing relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const DRAWING_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/drawing"; /** * True when `type` is a drawing relationship (Strict or Transitional). */ export declare function isDrawingRelationshipType(type: string): boolean; /** * VML drawing part content type (legacy form controls / comments chrome). * Citation: XlsIO `ContentTypes` / Office Open XML package conventions for * `vmlDrawingN.vml` under `/xl/drawings/`. */ export declare const VML_DRAWING_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.vmlDrawing"; /** * VML drawing relationship type (Transitional). * Citation: XlsIO `RelationTypes.VmlDrawing` / * `http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing`. */ export declare const VML_DRAWING_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing"; /** * VML drawing relationship type (Strict). * MS-OI29500 / ECMA-376 Strict mirror of the Transitional vmlDrawing rel. */ export declare const VML_DRAWING_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/vmlDrawing"; /** * True when `type` is a VML drawing relationship (Strict or Transitional). */ export declare function isVmlDrawingRelationshipType(type: string): boolean; /** * DrawingML (dml-main) namespace. * ECMA-376-1 / dml-main.xsd (a: prefix in text-box context). */ export declare const DRAWINGML_MAIN_NS_TRANSITIONAL = "http://schemas.openxmlformats.org/drawingml/2006/main"; /** * DrawingML spreadsheet drawing namespace (xdr: prefix). * ECMA-376-1 / dml-spreadsheetDrawing.xsd. */ export declare const DRAWINGML_SPREADSHEET_NS_TRANSITIONAL = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"; /** * Chart part content type (DrawingML chart). * ECMA-376-1 / dml-chart.xsd (`c:chartSpace`). */ export declare const CHART_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"; /** * Chart relationship type (Transitional). * ECMA-376-1 officeDocument relationships / chart parts. */ export declare const CHART_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"; /** * Chart relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const CHART_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/chart"; /** * True when `type` is a chart relationship (Strict or Transitional). */ export declare function isChartRelationshipType(type: string): boolean; /** * DrawingML chart namespace (`c:` prefix). * ECMA-376-1 / dml-chart.xsd. */ export declare const DRAWINGML_CHART_NS_TRANSITIONAL = "http://schemas.openxmlformats.org/drawingml/2006/chart"; /** * ChartEx part content type (Excel 2016+ extended charts). * [MS-ODRAWXML] §2.1.5 ChartEx. */ export declare const CHARTEX_CONTENT_TYPE = "application/vnd.ms-office.chartex+xml"; /** * ChartEx relationship type (drawing → ChartEx part). * [MS-ODRAWXML] §2.1.5 / office 2014 relationships. */ export declare const CHARTEX_REL_TYPE = "http://schemas.microsoft.com/office/2014/relationships/chartEx"; /** * True when `type` is a ChartEx relationship. */ export declare function isChartExRelationshipType(type: string): boolean; /** * ChartEx / DrawingML chartex namespace (`cx:` prefix). * [MS-ODRAWXML] §2.24 / drawing/2014/chartex. * Used as `a:graphicData/@uri` and on the drawing `chart` CT_RelId reference. */ export declare const DRAWINGML_CHARTEX_NS = "http://schemas.microsoft.com/office/drawing/2014/chartex"; /** * Persons part content type ([MS-XLSX] §2.1.18). * Root `personList` — workbook-level author store for threaded comments. */ export declare const PERSON_CONTENT_TYPE = "application/vnd.ms-excel.person+xml"; /** * Persons relationship type ([MS-XLSX] §2.1.18). * Source: workbook part → `/xl/persons/person.xml`. */ export declare const PERSON_REL_TYPE = "http://schemas.microsoft.com/office/2017/10/relationships/person"; /** * True when `type` is a persons relationship. */ export declare function isPersonRelationshipType(type: string): boolean; /** * Threaded comments part content type ([MS-XLSX] §2.1.17). * Root `ThreadedComments` — per worksheet. */ export declare const THREADED_COMMENTS_CONTENT_TYPE = "application/vnd.ms-excel.threadedcomments+xml"; /** * Threaded comments relationship type ([MS-XLSX] §2.1.17). * Source: worksheet part → threaded comments part. */ export declare const THREADED_COMMENTS_REL_TYPE = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment"; /** * True when `type` is a threaded-comments relationship. */ export declare function isThreadedCommentsRelationshipType(type: string): boolean; /** * SpreadsheetML 2018 threaded comments namespace ([MS-XLSX] §5.23). * Used by `personList` and `ThreadedComments` roots. */ export declare const THREADED_COMMENTS_NS = "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments"; /** * Legacy comments part content type (ECMA-376-1 §18.7). * Used for threaded-comment placeholder comments ([MS-XLSX] §2.3.7.3). */ export declare const COMMENTS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"; /** * Legacy comments relationship type (Transitional). * ECMA-376-1 officeDocument relationships / comments parts. */ export declare const COMMENTS_REL_TYPE_TRANSITIONAL = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"; /** * Legacy comments relationship type (Strict). * MS-OI29500 / ECMA-376 Strict. */ export declare const COMMENTS_REL_TYPE_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships/comments"; /** * True when `type` is a legacy comments relationship (Strict or Transitional). */ export declare function isCommentsRelationshipType(type: string): boolean;