UNPKG

nhanh-pure-function

Version:
257 lines (256 loc) 5.79 kB
export declare const EXTENSION_TO_MIME: { ".mp3": string; ".mp4": string; ".m4a": string; ".aac": string; ".ogg": string; ".wav": string; ".flac": string; ".opus": string; ".webm": string; ".avi": string; ".mov": string; ".wmv": string; ".png": string; ".jpg": string; ".jpeg": string; ".gif": string; ".bmp": string; ".tiff": string; ".ico": string; ".svg": string; ".webp": string; ".heif": string; ".heic": string; ".json": string; ".xml": string; ".html": string; ".htm": string; ".css": string; ".js": string; ".ts": string; ".csv": string; ".tsv": string; ".txt": string; ".md": string; ".rtf": string; ".pdf": string; ".zip": string; ".rar": string; ".tar": string; ".gz": string; ".7z": string; ".exe": string; ".apk": string; ".doc": string; ".docx": string; ".xls": string; ".xlsx": string; ".ppt": string; ".pptx": string; ".odt": string; ".ods": string; ".odp": string; ".jsonld": string; ".yaml": string; ".yml": string; ".woff": string; ".woff2": string; ".ttf": string; ".otf": string; ".eot": string; ".map": string; }; /** 文件扩展名对应的MIME类型 */ export declare const FILE_EXTENSIONS: { image: string[]; ppt: string[]; word: string[]; excel: string[]; pdf: string[]; text: string[]; audio: string[]; video: string[]; archive: string[]; code: string[]; font: string[]; database: string[]; markup: string[]; configuration: string[]; logs: string[]; script: string[]; }; /** 文件扩展名 */ export type FileType = keyof typeof FILE_EXTENSIONS; /** 单位标签 */ export declare const UNIT_LABELS: readonly ["", "万", "亿", "兆", "京", "垓", "秭", "穰", "沟", "涧", "正", "载", "极"]; /** 浏览器窗口目标 */ export declare const WINDOW_TARGET: readonly ["_self", "_blank", "_parent", "_top"]; /** 浏览器窗口目标类型 */ export type WindowTarget = (typeof WINDOW_TARGET)[number]; /** 纸张尺寸 */ export declare const PAPER_SIZE_DEFINITIONS: { readonly Letter: { readonly width: 215.9; readonly height: 279.4; }; readonly Legal: { readonly width: 215.9; readonly height: 355.6; }; readonly Tabloid: { readonly width: 279.4; readonly height: 431.8; }; readonly Ledger: { readonly width: 431.8; readonly height: 279.4; }; readonly Executive: { readonly width: 184.2; readonly height: 266.7; }; readonly Folio: { readonly width: 215.9; readonly height: 330.2; }; readonly Quarto: { readonly width: 215; readonly height: 275; }; readonly "Government-Letter": { readonly width: 203.2; readonly height: 266.7; }; readonly A0: { readonly width: 841; readonly height: 1189; }; readonly A1: { readonly width: 594; readonly height: 841; }; readonly A2: { readonly width: 420; readonly height: 594; }; readonly A3: { readonly width: 297; readonly height: 420; }; readonly A4: { readonly width: 210; readonly height: 297; }; readonly A5: { readonly width: 148; readonly height: 210; }; readonly A6: { readonly width: 105; readonly height: 148; }; readonly A7: { readonly width: 74; readonly height: 105; }; readonly A8: { readonly width: 52; readonly height: 74; }; readonly A9: { readonly width: 37; readonly height: 52; }; readonly A10: { readonly width: 26; readonly height: 37; }; readonly B0: { readonly width: 1000; readonly height: 1414; }; readonly B1: { readonly width: 707; readonly height: 1000; }; readonly B2: { readonly width: 500; readonly height: 707; }; readonly B3: { readonly width: 353; readonly height: 500; }; readonly B4: { readonly width: 250; readonly height: 353; }; readonly B5: { readonly width: 176; readonly height: 250; }; readonly B6: { readonly width: 125; readonly height: 176; }; readonly B7: { readonly width: 88; readonly height: 125; }; readonly B8: { readonly width: 62; readonly height: 88; }; readonly B9: { readonly width: 44; readonly height: 62; }; readonly B10: { readonly width: 31; readonly height: 44; }; readonly C0: { readonly width: 917; readonly height: 1297; }; readonly C1: { readonly width: 648; readonly height: 917; }; readonly C2: { readonly width: 458; readonly height: 648; }; readonly C3: { readonly width: 324; readonly height: 458; }; readonly C4: { readonly width: 229; readonly height: 324; }; readonly C5: { readonly width: 162; readonly height: 229; }; readonly C6: { readonly width: 114; readonly height: 162; }; readonly C7: { readonly width: 81; readonly height: 114; }; readonly C8: { readonly width: 57; readonly height: 81; }; }; /** 纸张尺寸 */ export type PaperType = keyof typeof PAPER_SIZE_DEFINITIONS; /** 纸张尺寸列表 */ export declare const PAPER_SIZE_OPTIONS: { value: string; label: string; }[];