export interface QuerySelectorData { selector: string; targetElt: string; type: SELECTOR_TYPE; prefix: string | undefined; subSelector: string; subType: SELECTOR_TYPE; } export interface CLISearchParams { search: URLSearchParams; id: string | null; ui(name: string): string | null; sqd(name: string): string | null; get(name: string): string | null; } export const enum LAYOUT_TABLE { FIXED = 1, COLLAPSE = 1 << 1, EXPAND = 1 << 2 } export const enum LAYOUT_TABLETYPE { NONE, STRETCH, FIXED, VARIABLE, COMPRESS } export const enum LAYOUT_TABLECELL { EXPAND = 1, DOWNSIZED = 1 << 1, EXCEED = 1 << 2, FLEXIBLE = 1 << 3, SHRINK = 1 << 4, PLACED = 1 << 5 } export const enum LAYOUT_GRIDCELL { ROW_START = 1, ROW_END = 1 << 1, CELL_START = 1 << 2, CELL_END = 1 << 3 } export const enum LAYOUT_CSSGRID { AUTO_FIT = 1, AUTO_FILL = 1 << 1, FIXED_WIDTH = 1 << 2, FLEXIBLE = 1 << 3 } export const enum CSS_LAYER_SPECIFICITY { LAYER_NAMED, LAYER_UNNAMED = 2147483646, GLOBAL } export const enum CSS_LAYER_IMPORTANT { GLOBAL = 1, LAYER_UNNAMED, LAYER_NAMED, INLINE } export const enum SELECTOR_TYPE { NONE = 0, SHADOW_ROOT = 1, SHADOW_HOST = 1 << 1, CUSTOM_SLOT = 1 << 2, CUSTOM_PART = 1 << 3 } export const enum SELECTOR_VALUE { IMAGE = 'img, input[type=image], picture > source[src], video[poster], link[rel=preload][as=image], svg use, svg image' } export const enum MIME_FONT { TTF = 'font/ttf', OTF = 'font/otf', OTC = 'font/collection', WOFF = 'font/woff', WOFF2 = 'font/woff2', EOT = 'application/vnd.ms-fontobject', UNKNOWN = 'font/unknown' } export const enum MESSAGE { FRAMEWORK_NOT_INSTALLED = 'Framework not installed.', SERVER_REQUIRED = 'Server required. See README for instructions.', DIRECTORY_NOT_PROVIDED = 'Directory not provided.', UNABLE_TO_FINALIZE_DOCUMENT = 'Unable to finalize document.', INVALID_ASSET_REQUEST = 'Invalid asset request.', OPERATION_NOT_SUPPORTED = 'Operation not supported.', ELEMENT_NOT_FOUND = 'Element not found.', CSS_CANNOT_BE_PARSED = 'Loading files directly from your hard drive is not supported. Either use a local web server or embed your CSS into a