export declare function getAccessToken({ appId, appSecret, }: {
    appId: string;
    appSecret: string;
}): Promise<unknown>;
export declare function getAPITicket(accessToken: string): Promise<unknown>;
/**
 * 获取jsAPI签名
 *
 * 校验地址：https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign
 *
 * 文档地址：https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
 * @param {string} ticket 票据
 * @param {string} url 当前url，不包括#之后的部分
 * @returns signature
 * @example
 * ```ts
 * const sig = genSignature('jsapi_ticket_xxx', 'https://example.com/page');
 * // {
 * //   timestamp: 1700000000,
 * //   nonceStr: 'random-12-bytes-hex',
 * //   signature: 'sha1-hex-string',
 * //   url: 'https://example.com/page',
 * // }
 * ```
 */
export declare function genSignature(ticket: string, url: string): {
    timestamp: number;
    nonceStr: string;
    signature: string;
    url: string;
};
