{
  "metadata": {
    "toolPackage": "@microsoft/api-extractor",
    "toolVersion": "7.9.13",
    "schemaVersion": 1003,
    "oldestForwardsCompatibleVersion": 1001
  },
  "kind": "Package",
  "canonicalReference": "k-sword!",
  "docComment": "",
  "name": "k-sword",
  "members": [
    {
      "kind": "EntryPoint",
      "canonicalReference": "k-sword!",
      "name": "",
      "members": [
        {
          "kind": "Variable",
          "canonicalReference": "k-sword!ajax:var",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "ajax: "
            },
            {
              "kind": "Reference",
              "text": "Ajax",
              "canonicalReference": "k-sword!Ajax:class"
            }
          ],
          "releaseTag": "Public",
          "name": "ajax",
          "variableTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          }
        },
        {
          "kind": "Variable",
          "canonicalReference": "k-sword!conf:var",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "conf: "
            },
            {
              "kind": "Reference",
              "text": "Config",
              "canonicalReference": "k-sword!Config:class"
            }
          ],
          "releaseTag": "Public",
          "name": "conf",
          "variableTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          }
        },
        {
          "kind": "Variable",
          "canonicalReference": "k-sword!cookies:var",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "cookies: "
            },
            {
              "kind": "Content",
              "text": "{\n    write(name: string, value: string, expires?: number | undefined, path?: string | undefined, domain?: string | undefined, secure?: boolean | undefined): void;\n    read(name: string): string | null;\n    remove(name: string): void;\n}"
            }
          ],
          "releaseTag": "Public",
          "name": "cookies",
          "variableTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          }
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!debounce:function(1)",
          "docComment": "/**\n * @description 防抖， [一段时间内，若干个函数调用合成一次，并在给定时间过去之后只执行一次]  @author SoldierAb  @template F\n *\n * @param fn - \n *\n * @param delay - \n *\n * @param immediately - \n *\n * @returns {(this: ThisParameterType<F>, ...args: Parameters<F>) => void}\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function debounce<F extends "
            },
            {
              "kind": "Reference",
              "text": "Procedure",
              "canonicalReference": "k-sword!Procedure:type"
            },
            {
              "kind": "Content",
              "text": ">(fn: "
            },
            {
              "kind": "Content",
              "text": "F"
            },
            {
              "kind": "Content",
              "text": ", immediately?: "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ", delay?: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "(this: "
            },
            {
              "kind": "Reference",
              "text": "ThisParameterType",
              "canonicalReference": "!ThisParameterType:type"
            },
            {
              "kind": "Content",
              "text": "<F>, ...args: "
            },
            {
              "kind": "Reference",
              "text": "Parameters",
              "canonicalReference": "!Parameters:type"
            },
            {
              "kind": "Content",
              "text": "<F>) => void"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 9,
            "endIndex": 14
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "fn",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            },
            {
              "parameterName": "immediately",
              "parameterTypeTokenRange": {
                "startIndex": 5,
                "endIndex": 6
              }
            },
            {
              "parameterName": "delay",
              "parameterTypeTokenRange": {
                "startIndex": 7,
                "endIndex": 8
              }
            }
          ],
          "typeParameters": [
            {
              "typeParameterName": "F",
              "constraintTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              },
              "defaultTypeTokenRange": {
                "startIndex": 0,
                "endIndex": 0
              }
            }
          ],
          "name": "debounce"
        },
        {
          "kind": "Variable",
          "canonicalReference": "k-sword!env:var",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "env: "
            },
            {
              "kind": "Content",
              "text": "{\n    versions: {\n        trident: boolean;\n        presto: boolean;\n        webKit: boolean;\n        gecko: boolean;\n        mobile: boolean;\n        ios: boolean;\n        android: boolean;\n        iPhone: boolean;\n        iPad: boolean;\n        webApp: boolean;\n        weixin: boolean;\n    };\n    language: string;\n}"
            }
          ],
          "releaseTag": "Public",
          "name": "env",
          "variableTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          }
        },
        {
          "kind": "Class",
          "canonicalReference": "k-sword!EventBus:class",
          "docComment": "/**\n * 事件巴士，管理事件的发布与订阅。\n *\n * @template TEvents 事件名称及其对应的回调描述\n *\n * @example\n * ```typescript\n * const bus = new EventBus<{\n *   success: (payload: { message: string }) => any\n * }>()\n * bus.on('success', ({ message }) => console.log(message))\n * bus.emit('success', { message: '提交成功' })\n * // => 控制台输出: 提交成功\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare class EventBus<TEvents extends "
            },
            {
              "kind": "Reference",
              "text": "Record",
              "canonicalReference": "!Record:type"
            },
            {
              "kind": "Content",
              "text": "<string, (...args: any[]) => any>"
            },
            {
              "kind": "Content",
              "text": "> "
            }
          ],
          "releaseTag": "Public",
          "typeParameters": [
            {
              "typeParameterName": "TEvents",
              "constraintTokenRange": {
                "startIndex": 1,
                "endIndex": 3
              },
              "defaultTypeTokenRange": {
                "startIndex": 0,
                "endIndex": 0
              }
            }
          ],
          "name": "EventBus",
          "members": [
            {
              "kind": "Method",
              "canonicalReference": "k-sword!EventBus#emit:member(1)",
              "docComment": "/**\n * 发布事件。\n *\n * @param eventName - 事件名称\n *\n * @param args - 传给事件回调的参数\n *\n * @returns 返回各事件回调的返回结果组成的数组\n */\n",
              "excerptTokens": [
                {
                  "kind": "Content",
                  "text": "emit<TName extends "
                },
                {
                  "kind": "Content",
                  "text": "keyof TEvents"
                },
                {
                  "kind": "Content",
                  "text": ">(eventName: "
                },
                {
                  "kind": "Content",
                  "text": "TName"
                },
                {
                  "kind": "Content",
                  "text": ", ...args: "
                },
                {
                  "kind": "Reference",
                  "text": "Parameters",
                  "canonicalReference": "!Parameters:type"
                },
                {
                  "kind": "Content",
                  "text": "<TEvents[TName]>"
                },
                {
                  "kind": "Content",
                  "text": "): "
                },
                {
                  "kind": "Reference",
                  "text": "Array",
                  "canonicalReference": "!Array:interface"
                },
                {
                  "kind": "Content",
                  "text": "<"
                },
                {
                  "kind": "Reference",
                  "text": "ReturnType",
                  "canonicalReference": "!ReturnType:type"
                },
                {
                  "kind": "Content",
                  "text": "<TEvents[TName]>>"
                },
                {
                  "kind": "Content",
                  "text": ";"
                }
              ],
              "isStatic": false,
              "returnTypeTokenRange": {
                "startIndex": 8,
                "endIndex": 12
              },
              "releaseTag": "Public",
              "overloadIndex": 1,
              "parameters": [
                {
                  "parameterName": "eventName",
                  "parameterTypeTokenRange": {
                    "startIndex": 3,
                    "endIndex": 4
                  }
                },
                {
                  "parameterName": "args",
                  "parameterTypeTokenRange": {
                    "startIndex": 5,
                    "endIndex": 7
                  }
                }
              ],
              "typeParameters": [
                {
                  "typeParameterName": "TName",
                  "constraintTokenRange": {
                    "startIndex": 1,
                    "endIndex": 2
                  },
                  "defaultTypeTokenRange": {
                    "startIndex": 0,
                    "endIndex": 0
                  }
                }
              ],
              "name": "emit"
            },
            {
              "kind": "Method",
              "canonicalReference": "k-sword!EventBus#off:member(1)",
              "docComment": "/**\n * 取消订阅事件，若没有指定回调，则取消所有回调。\n *\n * @param eventName - 事件名称\n *\n * @param callback - 事件触发回调\n */\n",
              "excerptTokens": [
                {
                  "kind": "Content",
                  "text": "off<TName extends "
                },
                {
                  "kind": "Content",
                  "text": "keyof TEvents"
                },
                {
                  "kind": "Content",
                  "text": ">(eventName: "
                },
                {
                  "kind": "Content",
                  "text": "TName"
                },
                {
                  "kind": "Content",
                  "text": ", callback?: "
                },
                {
                  "kind": "Content",
                  "text": "TEvents[TName]"
                },
                {
                  "kind": "Content",
                  "text": "): "
                },
                {
                  "kind": "Content",
                  "text": "void"
                },
                {
                  "kind": "Content",
                  "text": ";"
                }
              ],
              "isStatic": false,
              "returnTypeTokenRange": {
                "startIndex": 7,
                "endIndex": 8
              },
              "releaseTag": "Public",
              "overloadIndex": 1,
              "parameters": [
                {
                  "parameterName": "eventName",
                  "parameterTypeTokenRange": {
                    "startIndex": 3,
                    "endIndex": 4
                  }
                },
                {
                  "parameterName": "callback",
                  "parameterTypeTokenRange": {
                    "startIndex": 5,
                    "endIndex": 6
                  }
                }
              ],
              "typeParameters": [
                {
                  "typeParameterName": "TName",
                  "constraintTokenRange": {
                    "startIndex": 1,
                    "endIndex": 2
                  },
                  "defaultTypeTokenRange": {
                    "startIndex": 0,
                    "endIndex": 0
                  }
                }
              ],
              "name": "off"
            },
            {
              "kind": "Method",
              "canonicalReference": "k-sword!EventBus#on:member(1)",
              "docComment": "/**\n * 订阅事件。\n *\n * @param eventName - 事件名称\n *\n * @param callback - 事件触发回调\n *\n * @returns 返回取消订阅的函数\n */\n",
              "excerptTokens": [
                {
                  "kind": "Content",
                  "text": "on<TName extends "
                },
                {
                  "kind": "Content",
                  "text": "keyof TEvents"
                },
                {
                  "kind": "Content",
                  "text": ">(eventName: "
                },
                {
                  "kind": "Content",
                  "text": "TName"
                },
                {
                  "kind": "Content",
                  "text": ", callback: "
                },
                {
                  "kind": "Content",
                  "text": "TEvents[TName]"
                },
                {
                  "kind": "Content",
                  "text": "): "
                },
                {
                  "kind": "Content",
                  "text": "() => any"
                },
                {
                  "kind": "Content",
                  "text": ";"
                }
              ],
              "isStatic": false,
              "returnTypeTokenRange": {
                "startIndex": 7,
                "endIndex": 8
              },
              "releaseTag": "Public",
              "overloadIndex": 1,
              "parameters": [
                {
                  "parameterName": "eventName",
                  "parameterTypeTokenRange": {
                    "startIndex": 3,
                    "endIndex": 4
                  }
                },
                {
                  "parameterName": "callback",
                  "parameterTypeTokenRange": {
                    "startIndex": 5,
                    "endIndex": 6
                  }
                }
              ],
              "typeParameters": [
                {
                  "typeParameterName": "TName",
                  "constraintTokenRange": {
                    "startIndex": 1,
                    "endIndex": 2
                  },
                  "defaultTypeTokenRange": {
                    "startIndex": 0,
                    "endIndex": 0
                  }
                }
              ],
              "name": "on"
            },
            {
              "kind": "Method",
              "canonicalReference": "k-sword!EventBus#once:member(1)",
              "docComment": "/**\n * 订阅事件，但只订阅一次即取消订阅。\n *\n * @param eventName - 事件名称\n *\n * @param callback - 事件触发回调\n *\n * @returns 返回取消订阅的函数\n */\n",
              "excerptTokens": [
                {
                  "kind": "Content",
                  "text": "once<TName extends "
                },
                {
                  "kind": "Content",
                  "text": "keyof TEvents"
                },
                {
                  "kind": "Content",
                  "text": ">(eventName: "
                },
                {
                  "kind": "Content",
                  "text": "TName"
                },
                {
                  "kind": "Content",
                  "text": ", callback: "
                },
                {
                  "kind": "Content",
                  "text": "TEvents[TName]"
                },
                {
                  "kind": "Content",
                  "text": "): "
                },
                {
                  "kind": "Content",
                  "text": "() => any"
                },
                {
                  "kind": "Content",
                  "text": ";"
                }
              ],
              "isStatic": false,
              "returnTypeTokenRange": {
                "startIndex": 7,
                "endIndex": 8
              },
              "releaseTag": "Public",
              "overloadIndex": 1,
              "parameters": [
                {
                  "parameterName": "eventName",
                  "parameterTypeTokenRange": {
                    "startIndex": 3,
                    "endIndex": 4
                  }
                },
                {
                  "parameterName": "callback",
                  "parameterTypeTokenRange": {
                    "startIndex": 5,
                    "endIndex": 6
                  }
                }
              ],
              "typeParameters": [
                {
                  "typeParameterName": "TName",
                  "constraintTokenRange": {
                    "startIndex": 1,
                    "endIndex": 2
                  },
                  "defaultTypeTokenRange": {
                    "startIndex": 0,
                    "endIndex": 0
                  }
                }
              ],
              "name": "once"
            }
          ],
          "implementsTokenRanges": []
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!flat:function(1)",
          "docComment": "/**\n * @description 数组去扁平化\n *\n * @param arr - \n *\n * @param depArg - \n *\n * @returns {any[]}\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function flat(arr: "
            },
            {
              "kind": "Content",
              "text": "any[]"
            },
            {
              "kind": "Content",
              "text": ", depArg?: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "any[]"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 5,
            "endIndex": 6
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "arr",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "depArg",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            }
          ],
          "name": "flat"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!formatNumber:function(1)",
          "docComment": "/**\n * 格式化数字。\n *\n * @param value - 要格式化的数字\n *\n * @param options - 选项\n *\n * @returns 返回格式化后的数值\n *\n * @example\n * ```typescript\n * formatNumber(1314.56789) // => '1,314.56789'\n * formatNumber(1314.56789, { thousandsSeparator: ' ' }) // => '1 314.56789'\n * formatNumber(1314.56789, { thousandthsSeparator: ',' }) // => '1,314.567,89'\n * ```\n *\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function formatNumber(value: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": ", options?: "
            },
            {
              "kind": "Reference",
              "text": "FormatNumberOptions",
              "canonicalReference": "k-sword!FormatNumberOptions:interface"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 5,
            "endIndex": 6
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "options",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            }
          ],
          "name": "formatNumber"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!getBroswer:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function getBroswer(): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [],
          "name": "getBroswer"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isArray:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isArray(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isArray"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isBoolean:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isBoolean(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isBoolean"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isChineseIDCardNumber:function(1)",
          "docComment": "/**\n * 检测传入的值是否是合法的中国大陆居民 `18` 位身份证号码。\n *\n * @param value - 要检测的值\n *\n * @returns 返回检测结果\n *\n * @example\n * ```typescript\n * isChineseIDCardNumber('123456') // => false\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isChineseIDCardNumber(value: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isChineseIDCardNumber"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isDate:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isDate(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isDate"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isFunction:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isFunction(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isFunction"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isNull:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isNull(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isNull"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isNumber:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isNumber(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isNumber"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isNumeric:function(1)",
          "docComment": "/**\n * 检查 `value` 是否是数值，需要注意的是 `Infinity`、`-Infinity`、`NaN` 不被认为是数值。\n *\n * @param value - 要检查的值\n *\n * @returns 返回检查结果\n *\n * @example\n * ```typescript\n * isNumeric(1) // => true\n * isNumeric('1') // => true\n * ```\n *\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isNumeric(value: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Reference",
              "text": "value",
              "canonicalReference": "k-sword!~value"
            },
            {
              "kind": "Content",
              "text": " is number | string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 5
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isNumeric"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isObject:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isObject(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isObject"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isPossibleChineseMobilePhoneNumber:function(1)",
          "docComment": "/**\n * 检测传入的值是否可能是中国的手机号码。\n *\n * @param value - 要检测的值\n *\n * @returns 返回检测结果\n *\n * @example\n * ```typescript\n * isPossibleChineseMobilePhoneNumber('10086') // => false\n * isPossibleChineseMobilePhoneNumber('18087030088') // => true\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isPossibleChineseMobilePhoneNumber(value: "
            },
            {
              "kind": "Content",
              "text": "string | number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isPossibleChineseMobilePhoneNumber"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isPromise:function(1)",
          "docComment": "/**\n * 检查 `value` 是否像 `Promise`。\n *\n * @param value - 要检查的值\n *\n * @returns 返回检查结果\n *\n * @example\n * ```typescript\n * isPromise(Promise.resolve()) // => true\n * ```\n *\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isPromise(value: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Reference",
              "text": "value",
              "canonicalReference": "k-sword!~value"
            },
            {
              "kind": "Content",
              "text": " is "
            },
            {
              "kind": "Reference",
              "text": "PromiseLike",
              "canonicalReference": "!PromiseLike:interface"
            },
            {
              "kind": "Content",
              "text": "<any>"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 7
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isPromise"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isString:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isString(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isString"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isSymbol:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isSymbol(param?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isSymbol"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isUndefined:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isUndefined(param: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "param",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isUndefined"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!isUrl:function(1)",
          "docComment": "/**\n * 检测传入值是否是 URL。\n *\n * @param value - 要检测的值\n *\n * @returns 返回检测结果\n *\n * @example\n * ```typescript\n * isUrl('foo.bar') // => false\n * isUrl('http://foo.bar') // => true\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function isUrl(value: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "value",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "isUrl"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!loadScript:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function loadScript(scriptURL: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ", cache?: "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "void"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 5,
            "endIndex": 6
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "scriptURL",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "cache",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            }
          ],
          "name": "loadScript"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!md5:function(1)",
          "docComment": "/**\n * 根据给定的字符串计算 MD5 值。\n *\n * @param string - 要进行 MD5 计算的字符串\n *\n * @param key - 用于创建 HMAC 的密码\n *\n * @param raw - 是否输出原始数据\n *\n * @returns 返回计算的 MD5 结果\n *\n * @example\n * ```typescript\n * md5('陈') // => '682570a229cbd3d67e76ad99b3152060'\n * md5('陈', '🐉') // => '293a529180e8b949aa820b9d071f31fa'\n * ```\n *\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function md5(string: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ", key?: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ", raw?: "
            },
            {
              "kind": "Content",
              "text": "boolean"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 7,
            "endIndex": 8
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "string",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "key",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            },
            {
              "parameterName": "raw",
              "parameterTypeTokenRange": {
                "startIndex": 5,
                "endIndex": 6
              }
            }
          ],
          "name": "md5"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!parallel:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function parallel(params: "
            },
            {
              "kind": "Content",
              "text": "any[]"
            },
            {
              "kind": "Content",
              "text": ", iteratorFunc: "
            },
            {
              "kind": "Reference",
              "text": "iterratorFn",
              "canonicalReference": "k-sword!iterratorFn:type"
            },
            {
              "kind": "Content",
              "text": ", limit?: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Reference",
              "text": "Promise",
              "canonicalReference": "!Promise:interface"
            },
            {
              "kind": "Content",
              "text": "<any>"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 7,
            "endIndex": 9
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "params",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "iteratorFunc",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            },
            {
              "parameterName": "limit",
              "parameterTypeTokenRange": {
                "startIndex": 5,
                "endIndex": 6
              }
            }
          ],
          "name": "parallel"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!randomHash:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function randomHash(): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 1,
            "endIndex": 2
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [],
          "name": "randomHash"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!readFile:function(1)",
          "docComment": "/**\n * 读取给定文件的内容。\n *\n * @param file - 要读取的文件\n *\n * @returns 返回各种内容类型的读取器\n *\n * @example\n * ```typescript\n * const file = new File(['{\"x\":1}'], 'x.json')\n * const reader = readFile(file)\n * console.log(await reader.text()) // => '{\"x\":1}'\n * console.log(await reader.json()) // => {x: 1}\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function readFile(file: "
            },
            {
              "kind": "Reference",
              "text": "File",
              "canonicalReference": "!File:interface"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Reference",
              "text": "ReadFileReader",
              "canonicalReference": "k-sword!ReadFileReader:interface"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "file",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "readFile"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!throttle:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function throttle<T extends "
            },
            {
              "kind": "Reference",
              "text": "Procedure",
              "canonicalReference": "k-sword!Procedure:type"
            },
            {
              "kind": "Content",
              "text": ">(fn: "
            },
            {
              "kind": "Content",
              "text": "T"
            },
            {
              "kind": "Content",
              "text": ", delay?: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "(this: "
            },
            {
              "kind": "Reference",
              "text": "ThisParameterType",
              "canonicalReference": "!ThisParameterType:type"
            },
            {
              "kind": "Content",
              "text": "<T>, ...args: "
            },
            {
              "kind": "Reference",
              "text": "Parameters",
              "canonicalReference": "!Parameters:type"
            },
            {
              "kind": "Content",
              "text": "<T>) => void"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 7,
            "endIndex": 12
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "fn",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            },
            {
              "parameterName": "delay",
              "parameterTypeTokenRange": {
                "startIndex": 5,
                "endIndex": 6
              }
            }
          ],
          "typeParameters": [
            {
              "typeParameterName": "T",
              "constraintTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              },
              "defaultTypeTokenRange": {
                "startIndex": 0,
                "endIndex": 0
              }
            }
          ],
          "name": "throttle"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!tpl:function(1)",
          "docComment": "/**\n * @description 模板字符串替换\n *\n * @export\n *\n * @param str - eg: my name is {name},I'm {age} years old.\n *\n * @param obj - eg: { name:\"Jane\", age:12 }\n *\n * @returns {string} eg: my name is Jane,I'm 12 years old.\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function tpl(str: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ", obj: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 5,
            "endIndex": 6
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "str",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "obj",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 4
              }
            }
          ],
          "name": "tpl"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!type:function(1)",
          "docComment": "",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function type(obj?: "
            },
            {
              "kind": "Content",
              "text": "any"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "obj",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "type"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!union:function(1)",
          "docComment": "/**\n * @description 求多个数组之间的交集\n *\n * @param args - \n *\n * @returns {any[]}\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function union(...args: "
            },
            {
              "kind": "Content",
              "text": "any[]"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "any[]"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "args",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "union"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!upload:function(1)",
          "docComment": "/**\n * @description 上传\n *\n * @param option - \n *\n * @returns {void}\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function upload(option: "
            },
            {
              "kind": "Reference",
              "text": "UploadOptions",
              "canonicalReference": "k-sword!UploadOptions:interface"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "void"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "option",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "upload"
        },
        {
          "kind": "Function",
          "canonicalReference": "k-sword!wait:function(1)",
          "docComment": "/**\n * 等待一段时间。\n *\n * @param milliseconds - 等待时间(毫秒)\n *\n * @example\n * ```typescript\n * wait(1000).then(() => {\n *   console.log('ok')\n * }) // => 1秒后在控制台打印字符串: ok\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export declare function wait(milliseconds: "
            },
            {
              "kind": "Content",
              "text": "number"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Reference",
              "text": "WaitResult",
              "canonicalReference": "k-sword!WaitResult:interface"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 3,
            "endIndex": 4
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "milliseconds",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            }
          ],
          "name": "wait"
        }
      ]
    }
  ]
}
