doum
2025-09-26 9057e04efad1b7d61c77a72e5c37a504d0aee935
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
export type IEmptyObject = {};
export type IAnyObject = Record<string, any>;
export type APIParams<TParams = IEmptyObject, TSucc = IEmptyObject, TFail = IEmptyObject> = TParams & CommonParams<TSucc, TFail>;
export type APICallback<TEvent = void> = (event: TEvent) => void;
export interface CommonParams<TSucc = IEmptyObject, TFail = IEmptyObject> {
    /**
     * 成功回调
     */
    success?: (res: CommonResult & TSucc) => void;
    /**
     * 失败回调
     */
    fail?: (res: CommonResult & TFail) => void;
    /**
     * 取消回调
     */
    cancel?: (res: CommonResult & TFail) => void;
    /**
     * 完成回调
     */
    complete?: (res: CommonResult & (TSucc | TFail)) => void;
}
export interface CommonResult {
    /**
     * 通用错误信息
     */
    errMsg: string;
    /**
     * 通用错误码
     */
    errCode: number;
}
export interface AgentConfigParams {
    /**
     * 当前用户所属企业 ID
     */
    corpid: string;
    /**
     * 当前应用 AgentID
     */
    agentid: string;
    /**
     * 生成签名的时间戳
     */
    timestamp: string;
    /**
     * 生成签名的随机串
     */
    nonceStr: string;
    /**
     * 签名
     */
    signature: string;
    /**
     * 需要使用的JS接口列表
     */
    jsApiList: string[];
}
export interface AgentConfigResult extends CommonResult {
    /**
     * jsApiList 权限检查结果
     */
    checkResult: Record<string, boolean>;
}
export interface AgentConfigInfo {
    params: AgentConfigParams;
    result: AgentConfigResult;
}
/**
 * 触发或等待 agentConfig 返回
 */
export declare function ensureAgentConfigReady(): Promise<AgentConfigInfo>;
export interface CorpConfigParams {
    /**
     * 当前用户所属企业 ID
     */
    appId: string;
    /**
     * 生成签名的时间戳
     */
    timestamp: string;
    /**
     * 生成签名的随机串
     */
    nonceStr: string;
    /**
     * 签名
     */
    signature: string;
    /**
     * 需要使用的JS接口列表
     */
    jsApiList: string[];
    /**
     * 需要使用的开放标签列表,例如['wx-open-launch-app']
     */
    openTagList: string[];
}
export interface CorpConfigResult extends CommonResult {
    /**
     * jsApiList 权限检查结果
     */
    checkResult: Record<string, boolean>;
}
export interface CorpConfigInfo {
    params: CorpConfigParams;
    result: CorpConfigResult;
}
/**
 * 触发或等待 config 返回
 */
export declare function ensureCorpConfigReady(): Promise<CorpConfigInfo>;
export interface SignatureData {
    /**
     * 生成签名的时间戳
     */
    timestamp: string | number;
    /**
     * 生成签名的随机串
     */
    nonceStr: string;
    /**
     * 签名
     */
    signature: string;
}
export interface SignatureFactory {
    /**
     * @param url 用于生成签名的 URL
     */
    (url: string): SignatureData | Promise<SignatureData>;
}
export interface ConfigCallback<T> {
    (res: T): void;
}
export interface RegisterOptions {
    /**
     * 当前用户所属企业 ID
     */
    corpId: string;
    /**
     * 当前应用 AgentID
     */
    agentId?: string | number;
    /**
     * 应用套件 ID
     */
    suiteId?: string;
    /**
     * 需要使用的JS接口列表
     */
    jsApiList?: string[];
    /**
     * 需要使用的开放标签列表,例如['wx-open-launch-app']
     */
    openTagList?: string[];
    /**
     * config 签名生成函数
     */
    getConfigSignature?: SignatureFactory;
    /**
     * config 成功回调
     */
    onConfigSuccess?: ConfigCallback<CorpConfigResult>;
    /**
     * config 失败回调
     */
    onConfigFail?: ConfigCallback<CommonResult | Error>;
    /**
     * config 完成回调
     */
    onConfigComplete?: ConfigCallback<CorpConfigResult | CommonResult | Error>;
    /**
     * agentConfig 签名生成函数
     */
    getAgentConfigSignature?: SignatureFactory;
    /**
     * agentConfig 成功回调
     */
    onAgentConfigSuccess?: ConfigCallback<AgentConfigResult>;
    /**
     * agentConfig 失败回调
     */
    onAgentConfigFail?: ConfigCallback<CommonResult | Error>;
    /**
     * agentConfig 完成回调
     */
    onAgentConfigComplete?: ConfigCallback<AgentConfigResult | CommonResult | Error>;
    /**
     * suiteConfig 签名生成函数
     */
    getSuiteConfigSignature?: SignatureFactory;
}
/**
 * 注册应用信息。
 *
 * @example
 * ```ts
 * ww.register({
 *   corpId: 'ww7ca4776b2a70000',
 *   jsApiList: ['getExternalContact'],
 *   getConfigSignature
 * })
 * ```
 */
export declare function register(options: RegisterOptions): void;
export declare enum Proximity {
    /**
     * CLProximityUnknown
     */
    CLProximityUnknown = "0",
    /**
     * CLProximityImmediate
     */
    CLProximityImmediate = "1",
    /**
     * CLProximityNear
     */
    CLProximityNear = "2",
    /**
     * CLProximityFar
     */
    CLProximityFar = "3"
}
/**
 * 开启查找周边 iBeacon 设备。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
 * @compat WeChat
 */
export declare function startSearchBeacons(params?: APIParams<{
    /**
     * 摇周边的业务ticket,系统自动添加在摇出来的页面链接后面
     */
    ticket?: string;
}>): Promise<CommonResult>;
/**
 * 关闭查找周边 iBeacon 设备。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
 * @compat WeChat
 */
export declare function stopSearchBeacons(params?: APIParams): Promise<CommonResult>;
/**
 * 监听周边 iBeacon 设备接口。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
 * @compat WeChat
 */
export declare function onSearchBeacons(callback: APICallback<{
    beacons: Array<{
        /** */
        major: number;
        /** */
        minor: number;
        /** */
        uuid: string;
        /**
         * 距离
         *
         * 单位为米
         */
        accuracy: string;
        /**
         * 精度
         */
        proximity: Proximity;
        /**
         * 接收信号的强度指示
         */
        rssi: string;
        /**
         * 接收信号时设备的方向
         *
         * @note
         * - 仅 Android 设备返回此字段
         * - 若 iOS 设备需要获取方向,可以利用 HTML5 标准 API 获取
         */
        heading?: string;
    }>;
}>): void;
/**
 * 连接低功耗蓝牙设备。
 *
 * @note
 * - 安卓手机上如果多次调用 createBLEConnection 创建连接,有可能导致系统持有同一设备多个连接的实例,导致调用 closeBLEConnection 的时候并不能真正的断开与设备的连接。因此请保证尽量成对的调用 create 和 close 接口
 * - 蓝牙链接随时可能断开,建议监听 onBLEConnectionStateChange 回调事件,当蓝牙设备断开时按需执行重连操作
 * - 若对未连接的设备或已断开连接的设备调用数据读写操作的接口,会返回 10006 错误,建议进行重连操作
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.createBLEConnection({
 *   deviceId: deviceId
 * })
 * ```
 */
export declare function createBLEConnection(params: APIParams<{
    /**
     * 蓝牙设备 ID
     */
    deviceId: string;
}>): Promise<CommonResult>;
/**
 * 断开与低功耗蓝牙设备的连接。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.closeBLEConnection({
 *   deviceId: deviceId
 * })
 * ```
 */
export declare function closeBLEConnection(params: APIParams<{
    /**
     * 蓝牙设备 ID
     */
    deviceId: string;
}>): Promise<CommonResult>;
/**
 * 监听低功耗蓝牙连接状态的改变事件,包括开发者主动连接或断开连接,设备丢失,连接异常断开等等。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBLEConnectionStateChange(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBLEConnectionStateChange(callback: APICallback<{
    /**
     * 蓝牙设备 ID
     */
    deviceId: string;
    /**
     * 连接目前的状态
     */
    connected: boolean;
}>): void;
/**
 * 获取蓝牙设备所有 service(服务)。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getBLEDeviceServices({
 *   deviceId: deviceId
 * })
 * ```
 */
export declare function getBLEDeviceServices(params: APIParams<{
    /**
     * 蓝牙设备 ID,需要已经通过 createBLEConnection 与对应设备建立链接
     */
    deviceId: string;
}, {
    /**
     * 设备服务列表
     */
    services: Array<{
        /**
         * 蓝牙设备服务的 uuid
         */
        uuid: string;
        /**
         * 该服务是否为主服务
         */
        isPrimary: boolean;
    }>;
}>): Promise<CommonResult & {
    /**
     * 设备服务列表
     */
    services: Array<{
        /**
         * 蓝牙设备服务的 uuid
         */
        uuid: string;
        /**
         * 该服务是否为主服务
         */
        isPrimary: boolean;
    }>;
}>;
/**
 * 获取蓝牙设备某个服务中的所有 characteristic(特征值)。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getBLEDeviceCharacteristics({
 *   deviceId: deviceId,
 *   serviceId: serviceId
 * })
 * ```
 */
export declare function getBLEDeviceCharacteristics(params: APIParams<{
    /**
     * 蓝牙设备 ID,需要已经通过 createBLEConnection 与对应设备建立链接
     */
    deviceId: string;
    /**
     * 蓝牙服务 uuid,需要通过 getBLEDeviceServices 接口获取
     */
    serviceId: string;
}, {
    /**
     * 设备特征值列表
     */
    characteristics: Array<{
        /**
         * 蓝牙设备特征值的 uuid
         */
        uuid: string;
        /**
         * 该特征值支持的操作类型
         */
        properties: {
            /**
             * 该特征值是否支持 read 操作
             */
            read: boolean;
            /**
             * 该特征值是否支持 write 操作
             */
            write: boolean;
            /**
             * 该特征值是否支持 notify 操作
             */
            notify: boolean;
            /**
             * 该特征值是否支持 indicate 操作
             */
            indicate: boolean;
        };
    }>;
}>): Promise<CommonResult & {
    /**
     * 设备特征值列表
     */
    characteristics: Array<{
        /**
         * 蓝牙设备特征值的 uuid
         */
        uuid: string;
        /**
         * 该特征值支持的操作类型
         */
        properties: {
            /**
             * 该特征值是否支持 read 操作
             */
            read: boolean;
            /**
             * 该特征值是否支持 write 操作
             */
            write: boolean;
            /**
             * 该特征值是否支持 notify 操作
             */
            notify: boolean;
            /**
             * 该特征值是否支持 indicate 操作
             */
            indicate: boolean;
        };
    }>;
}>;
/**
 * 读取低功耗蓝牙设备的特征值的二进制数据值。
 *
 * @note
 * - 设备的特征值必须支持 read 才可以成功调用,具体参照 characteristic 的 properties 属性
 * - 并行调用多次读写接口存在读写失败的可能性
 * - 接口读取到的信息需要在 onBLECharacteristicValueChange 的回调中获取
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.readBLECharacteristicValue({
 *   deviceId: deviceId,
 *   serviceId: serviceId,
 *   characteristicId: characteristicId
 * })
 * ```
 */
export declare function readBLECharacteristicValue(params: APIParams<{
    /**
     * 蓝牙设备 ID
     *
     * 需要已经通过 createBLEConnection 与对应设备建立链接
     */
    deviceId: string;
    /**
     * 蓝牙特征值对应服务的 uuid
     *
     * 需要通过 getBLEDeviceServices 接口获取
     */
    serviceId: string;
    /**
     * 蓝牙特征值的 uuid
     *
     * 需要通过 getBLEDeviceCharacteristics 接口获取
     */
    characteristicId: string;
}>): Promise<CommonResult>;
/**
 * 向低功耗蓝牙设备特征值中写入二进制数据。
 *
 * @note
 * - 设备的特征值必须支持 write 才可以成功调用,具体参照 characteristic 的 properties 属性
 * - 并行调用多次读写接口存在读写失败的可能性
 * - 接口不会对写入数据包大小做限制,但系统与蓝牙设备会确定蓝牙 4.0 单次传输的数据大小,超过最大字节数后会发生写入错误,建议每次写入不超过 20 字节
 * - 安卓平台上,在调用 notify 成功后立即调用 write 接口,在部分机型上会发生 10008 系统错误
 * - 若单次写入数据过长,iOS 平台上存在系统不会有任何回调的情况(包括错误回调)
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.writeBLECharacteristicValue({
 *   deviceId: deviceId,
 *   serviceId: serviceId,
 *   characteristicId: characteristicId,
 *   value: arrayBufferValue
 * })
 * ```
 */
export declare function writeBLECharacteristicValue(params: APIParams<{
    /**
     * 蓝牙设备 ID
     *
     * 需要已经通过 createBLEConnection 与对应设备建立链接
     */
    deviceId: string;
    /**
     * 蓝牙特征值对应服务的 uuid
     *
     * 需要通过 getBLEDeviceServices 接口获取
     */
    serviceId: string;
    /**
     * 蓝牙特征值的 uuid
     *
     * 需要通过 getBLEDeviceCharacteristics 接口获取
     */
    characteristicId: string;
    /**
     * 需要写入的二进制数据
     */
    value: ArrayBuffer;
}>): Promise<CommonResult>;
/**
 * 启用低功耗蓝牙设备特征值变化时的 notify 功能,订阅特征值。
 *
 * @note
 * - 设备的特征值必须支持 notify 或者 indicate 才可以成功调用,具体参照 characteristic 的 properties 属性
 * - 订阅操作成功后需要设备主动更新特征值的 value 才会触发 onBLECharacteristicValueChange 回调
 * - 安卓平台上,在调用 notify 成功后立即调用 write 接口,在部分机型上会发生 10008 系统错误
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.notifyBLECharacteristicValueChange({
 *   deviceId: deviceId,
 *   serviceId: serviceId,
 *   characteristicId: characteristicId,
 *   state: true
 * })
 * ```
 */
export declare function notifyBLECharacteristicValueChange(params: APIParams<{
    /**
     * 蓝牙设备 ID
     *
     * 需要已经通过 createBLEConnection 与对应设备建立链接
     */
    deviceId: string;
    /**
     * 蓝牙特征值对应服务的 uuid
     *
     * 需要通过 getBLEDeviceServices 接口获取
     */
    serviceId: string;
    /**
     * 蓝牙特征值的 uuid
     *
     * 需要通过 getBLEDeviceCharacteristics 接口获取
     */
    characteristicId: string;
    /**
     * 是否启用 notify
     */
    state: boolean;
}>): Promise<CommonResult>;
/**
 * 监听低功耗蓝牙设备的特征值变化。
 *
 * 必须先启用 notify 才能接收到设备推送的 notification。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBLECharacteristicValueChange(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBLECharacteristicValueChange(callback: APICallback<{
    /**
     * 蓝牙设备 ID
     */
    deviceId: string;
    /**
     * 特征值所属服务 uuid
     */
    serviceId: string;
    /**
     * 特征值 uuid
     */
    characteristicId: string;
    /**
     * 特征值最新的值
     *
     * @note
     * VConsole 无法打印出 ArrayBuffer 类型数据
     */
    value: ArrayBuffer;
}>): void;
/**
 * 初始化蓝牙模块。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.openBluetoothAdapter()
 * ```
 */
export declare function openBluetoothAdapter(params?: APIParams): Promise<CommonResult>;
/**
 * 关闭蓝牙模块。
 *
 * @note
 * - 调用该方法将断开所有已建立的链接并释放系统资源
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.closeBluetoothAdapter()
 * ```
 */
export declare function closeBluetoothAdapter(params?: APIParams): Promise<CommonResult>;
/**
 * 获取本机蓝牙适配器状态。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getBluetoothAdapterState()
 * ```
 */
export declare function getBluetoothAdapterState(params?: APIParams<IEmptyObject, {
    /**
     * 是否正在搜索设备
     */
    discovering: boolean;
    /**
     * 蓝牙适配器是否可用
     */
    available: boolean;
}>): Promise<CommonResult & {
    /**
     * 是否正在搜索设备
     */
    discovering: boolean;
    /**
     * 蓝牙适配器是否可用
     */
    available: boolean;
}>;
/**
 * 监听蓝牙适配器状态变化。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBluetoothAdapterStateChange(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBluetoothAdapterStateChange(callback: APICallback<{
    /**
     * 是否正在搜索设备
     */
    discovering: boolean;
    /**
     * 蓝牙适配器是否可用
     */
    available: boolean;
}>): void;
/**
 * 开始搜寻附近的蓝牙外围设备。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.startBluetoothDevicesDiscovery({
 *   services: ['FEE7']
 * })
 * ```
 */
export declare function startBluetoothDevicesDiscovery(params?: APIParams<{
    /**
     * 蓝牙设备主 service 的 uuid 列表
     *
     * 某些蓝牙设备会广播自己主 service 的 uuid。如传入列表非空则只会搜索发出广播包有这个主服务的蓝牙设备,建议主要通过该参数过滤掉周边
     * 不需要处理的其他蓝牙设备
     */
    services?: string[];
    /**
     * 是否允许重复上报同一设备
     *
     * 若允许重复上报,则 onDeviceFound 方法会多次上报同一设备,但是 RSSI 值会有不同
     */
    allowDuplicatesKey?: boolean;
    /**
     * 上报设备的间隔
     *
     * 若为 0 表示找到新设备立刻上报,否则根据传入的间隔上报
     *
     * @default 0
     */
    interval?: number;
}>): Promise<CommonResult>;
/**
 * 停止搜寻附近的蓝牙外围设备。
 *
 * 若已经找到需要的蓝牙设备并不需要继续搜索时,建议调用该接口停止蓝牙搜索。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.stopBluetoothDevicesDiscovery()
 * ```
 */
export declare function stopBluetoothDevicesDiscovery(params?: APIParams): Promise<CommonResult>;
export interface BluetoothDevice {
    /**
     * 蓝牙设备名称,某些设备可能没有
     */
    name: string;
    /**
     * 用于区分设备的 ID
     *
     * @note
     * 开发者工具和 Android 上获取到的 deviceId 为设备 MAC 地址,iOS 上为设备 uuid。因此 deviceId 不能硬编码到代码中
     */
    deviceId: string;
    /**
     * 当前蓝牙设备的信号强度
     *
     * @note
     * Mac 系统可能无法获取 advertisData 及 RSSI,建议使用真机调试
     */
    RSSI: number;
    /**
     * 当前蓝牙设备的广播数据段中的 ManufacturerData 数据段
     *
     * @note
     * - 注意 VConsole 无法打印出 ArrayBuffer 类型数据
     * - Mac 系统可能无法获取 advertisData 及 RSSI,建议使用真机调试
     */
    advertisData: ArrayBuffer;
    /**
     * 当前蓝牙设备的广播数据段中的 ServiceUUIDs 数据段
     */
    advertisServiceUUIDs: string[];
    /**
     * 当前蓝牙设备的广播数据段中的 LocalName 数据段
     */
    localName: string;
    /**
     * 当前蓝牙设备的广播数据段中的 ServiceData 数据段
     */
    serviceData: Record<string, ArrayBuffer>;
}
/**
 * 获取在蓝牙模块生效期间所有已发现的蓝牙设备。
 *
 * @note
 * - 该接口获取到的设备列表为蓝牙模块生效期间所有搜索到的蓝牙设备,若在蓝牙模块使用流程结束后未及时调用 closeBluetoothAdapter 释放资源,调用该接口可能会返回之前蓝牙使用流程中搜索到的蓝牙设备,可能设备已经不在用户身边,无法连接
 * - 蓝牙设备在被搜索到时,系统返回的 name 字段一般为广播包中的 LocalName 字段中的设备名称,而如果与蓝牙设备建立连接,系统返回的 name 字段会改为从蓝牙设备上获取到的 GattName。若需要动态改变设备名称并展示,建议使用 localName 字段
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getBluetoothDevices()
 * ```
 */
export declare function getBluetoothDevices(params?: APIParams<IEmptyObject, {
    /**
     * 已发现的蓝牙设备列表
     */
    devices: BluetoothDevice[];
}>): Promise<CommonResult & {
    /**
     * 已发现的蓝牙设备列表
     */
    devices: BluetoothDevice[];
}>;
/**
 * 监听寻找到新设备。
 *
 * @note
 * - 若在该接口中回调了某个设备,则此设备会添加到 getBluetoothDevices 接口返回的设备列表中
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBluetoothDeviceFound(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBluetoothDeviceFound(callback: APICallback<{
    /**
     * 新搜索到的设备列表
     */
    devices: BluetoothDevice[];
}>): void;
/**
 * 根据 uuid 获取处于已连接状态的设备。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getConnectedBluetoothDevices({
 *   services: ['FEE7']
 * })
 * ```
 */
export declare function getConnectedBluetoothDevices(params: APIParams<{
    /**
     * 蓝牙设备主 service 的 uuid 列表
     */
    services: string[];
}, {
    /**
     * 搜索到的设备列表
     */
    devices: Array<{
        /**
         * 蓝牙设备名称,某些设备可能没有
         */
        name: string;
        /**
         * 用于区分设备的 ID
         */
        deviceId: string;
    }>;
}>): Promise<CommonResult & {
    /**
     * 搜索到的设备列表
     */
    devices: Array<{
        /**
         * 蓝牙设备名称,某些设备可能没有
         */
        name: string;
        /**
         * 用于区分设备的 ID
         */
        deviceId: string;
    }>;
}>;
/**
 * 设置系统剪贴板的内容。
 *
 * @compat WeCom iOS, Android >= 2.4.16; WeCom PC, Mac >= 3.1.2
 *
 * @example
 * ```ts
 * ww.setClipboardData({
 *   data: 'data'
 * })
 * ```
 */
export declare function setClipboardData(params: APIParams<{
    /**
     * 剪贴板的内容
     */
    data: string;
}>): Promise<CommonResult>;
/**
 * 获取系统剪贴板内容。
 *
 * @compat WeCom >= 3.1.2
 *
 * @example
 * ```ts
 * ww.getClipboardData()
 * ```
 */
export declare function getClipboardData(params?: APIParams<IEmptyObject, {
    /**
     * 剪贴板的内容
     */
    data: string;
}>): Promise<CommonResult & {
    /**
     * 剪贴板的内容
     */
    data: string;
}>;
export interface IBeacon {
    /**
     * iBeacon 设备广播的 uuid
     */
    uuid: string;
    /**
     * iBeacon 设备的主 id
     */
    major: string;
    /**
     * iBeacon 设备的次 id
     */
    minor: string;
    /**
     * 表示设备距离的枚举值
     */
    proximity: number;
    /**
     * iBeacon 设备的距离
     */
    accuracy: number;
    /**
     * 表示设备的信号强度
     */
    rssi: number;
}
/**
 * 开始搜索附近的 iBeacon 设备。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.startBeaconDiscovery({
 *   uuids: ['uuid']
 * })
 * ```
 */
export declare function startBeaconDiscovery(params: APIParams<{
    /**
     * iBeacon设备广播的 uuids
     */
    uuids: string[];
}>): Promise<CommonResult>;
/**
 * 停止搜索附近的 iBeacon 设备。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.stopBeaconDiscovery()
 * ```
 */
export declare function stopBeaconDiscovery(params?: APIParams): Promise<CommonResult>;
/**
 * 获取所有已搜索到的 iBeacon 设备。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.getBeacons()
 * ```
 */
export declare function getBeacons(params?: APIParams<IEmptyObject, {
    /**
     * iBeacon 设备列表
     */
    beacons: IBeacon[];
}>): Promise<CommonResult & {
    /**
     * iBeacon 设备列表
     */
    beacons: IBeacon[];
}>;
/**
 * 监听 iBeacon 设备的更新事件。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBeaconUpdate(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBeaconUpdate(callback: APICallback<{
    /**
     * 当前搜寻到的所有 iBeacon 设备列表
     */
    beacons: IBeacon[];
}>): void;
/**
 * 监听 iBeacon 服务的状态变化。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onBeaconServiceChange(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onBeaconServiceChange(callback: APICallback<{
    /**
     * 服务目前是否可用
     */
    available: boolean;
    /**
     * 目前是否处于搜索状态
     */
    discovering: boolean;
}>): void;
export declare enum LocationType {
    /**
     * gps 坐标
     */
    wgs84 = "wgs84",
    /**
     * 火星坐标
     */
    gcj02 = "gcj02"
}
/**
 * 使用企业微信内置地图查看位置。
 *
 * @example
 * ```ts
 * ww.openLocation({
 *   latitude: 0,
 *   longitude: 0,
 *   name: 'name',
 *   address: 'address',
 *   scale: 1
 * })
 * ```
 */
export declare function openLocation(params: APIParams<{
    /**
     * 纬度
     *
     * 范围为 90 ~ -90
     */
    latitude: number;
    /**
     * 经度
     *
     * 范围为 180 ~ -180
     */
    longitude: number;
    /**
     * 位置名
     */
    name?: string;
    /**
     * 地址详情说明
     */
    address?: string;
    /**
     * 地图缩放级别
     *
     * 范围为 1 ~ 28
     *
     * @default 16
     */
    scale?: number;
    /** */
    infoUrl?: string;
}>): Promise<CommonResult>;
/**
 * 获取地理位置。
 *
 * @example
 * ```ts
 * ww.getLocation({
 *   type: 'wgs84'
 * })
 * ```
 */
export declare function getLocation(params?: APIParams<{
    /**
     * 坐标类型
     *
     * 如果要返回直接给 openLocation 用的火星坐标,可传入 gcj02
     *
     * @default wgs84
     */
    type?: LocationType;
}, {
    /**
     * 纬度,浮点数,范围为 90 ~ -90
     */
    latitude: number;
    /**
     * 经度,浮点数,范围为 180 ~ -180
     */
    longitude: number;
    /**
     * 速度,以米/每秒计,企业微信不支持speed参数,输出固定为0
     *
     * @compat WeChat
     */
    speed: number;
    /**
     * 位置精度
     */
    accuracy: number;
}>): Promise<CommonResult & {
    /**
     * 纬度,浮点数,范围为 90 ~ -90
     */
    latitude: number;
    /**
     * 经度,浮点数,范围为 180 ~ -180
     */
    longitude: number;
    /**
     * 速度,以米/每秒计,企业微信不支持speed参数,输出固定为0
     *
     * @compat WeChat
     */
    speed: number;
    /**
     * 位置精度
     */
    accuracy: number;
}>;
/**
 * 打开持续定位。
 *
 * @compat WeCom >= 2.4.20
 *
 * @example
 * ```ts
 * ww.startAutoLBS({
 *   type: 'gcj02'
 * })
 * ```
 */
export declare function startAutoLBS(params: APIParams<{
    /** */
    type: LocationType;
}>): Promise<CommonResult>;
/**
 * 停止持续定位。
 *
 * @compat WeCom >= 2.4.20
 *
 * @example
 * ```ts
 * ww.stopAutoLBS()
 * ```
 */
export declare function stopAutoLBS(params?: APIParams): Promise<CommonResult>;
/**
 * 监听地理位置的变化。
 *
 * @limit
 * - 需要提前调用 startAutoLBS
 * - 需要用户停留在当前页面
 *
 * @compat WeCom >= 2.4.20
 *
 * @example
 * ```ts
 * ww.onLocationChange(function(event) {
 *   console.log(event)
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 | 兼容性 |
 * | --- | --- | --- |
 * | auto:location:report:ok | 执行成功 | |
 * | auto:location:report:fail, gps closed. | 用户关闭了 GPS | 企业微信 3.0.26 |
 */
export declare function onLocationChange(callback: APICallback<{
    /**
     * 纬度
     *
     * 范围为 90 ~ -90
     */
    latitude: number;
    /**
     * 经度
     *
     * 范围为 180 ~ -180
     */
    longitude: number;
    /**
     * 速度
     *
     * 单位为米/每秒
     */
    speed: number;
    /**
     * 位置精度
     */
    accuracy: number;
}>): void;
export declare enum NetworkType {
    /**
     * wifi
     */
    wifi = "wifi",
    /**
     * 2g
     */
    network2g = "2g",
    /**
     * 3g
     */
    network3g = "3g",
    /**
     * 4g
     */
    network4g = "4g",
    /**
     * 无网络
     */
    none = "none",
    /**
     * Android下不常见的网络类型
     */
    unknown = "unknown"
}
/**
 * 获取网络状态。
 *
 * @compat WeCom iOS, Android; WeChat
 *
 * @example
 * ```ts
 * ww.getNetworkType()
 * ```
 */
export declare function getNetworkType(params?: APIParams<IEmptyObject, {
    /**
     * 网络类型
     */
    networkType: NetworkType;
}>): Promise<CommonResult & {
    /**
     * 网络类型
     */
    networkType: NetworkType;
}>;
/**
 * 监听网络状态变化。
 *
 * @compat WeCom iOS, Android
 *
 * @example
 * ```ts
 * ww.onNetworkStatusChange(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onNetworkStatusChange(callback: APICallback<{
    /**
     * 当前是否有网络连接
     */
    isConnected: boolean;
    /**
     * 网络类型
     */
    networkType: NetworkType;
}>): void;
export interface WifiInfo {
    /**
     * Wi-Fi 的 SSID
     */
    SSID: string;
    /**
     * Wi-Fi 的 BSSID
     */
    BSSID: string;
    /**
     * Wi-Fi 是否安全
     */
    secure: boolean;
    /**
     * Wi-Fi 信号强度
     */
    signalStrength: number;
}
/**
 * 初始化 Wi-Fi 模块。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.startWifi()
 * ```
 */
export declare function startWifi(params?: APIParams): Promise<CommonResult>;
/**
 * 关闭 Wi-Fi 模块。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.stopWifi()
 * ```
 */
export declare function stopWifi(params?: APIParams): Promise<CommonResult>;
/**
 * 连接 Wi-Fi。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.connectWifi({
 *   SSID: 'vincenthome',
 *   BSSID: '8c:a6:df:c8:f7:4b',
 *   password: 'test1234',
 * })
 * ```
 */
export declare function connectWifi(params: APIParams<{
    /**
     * Wi-Fi 设备 SSID
     */
    SSID: string;
    /**
     * Wi-Fi 设备 BSSID
     */
    BSSID: string;
    /**
     * Wi-Fi 设备密码
     */
    password?: string;
}>): Promise<CommonResult>;
/**
 * 获取 Wi-Fi 列表。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.getWifiList()
 * ```
 */
export declare function getWifiList(params?: APIParams): Promise<CommonResult>;
/**
 * 监听 Wi-Fi 列表更新。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.onGetWifiList(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onGetWifiList(callback: APICallback<{
    /**
     * Wi-Fi 列表数据
     */
    wifiList: WifiInfo[];
}>): void;
/**
 * 监听 Wi-Fi 连接成功。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.onWifiConnected(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onWifiConnected(callback: APICallback<{
    /**
     * Wi-Fi 信息
     */
    wifi: WifiInfo;
}>): void;
/**
 * 获取已连接中的 Wi-Fi 信息。
 *
 * @compat WeCom iOS, Android >= 2.4.16
 *
 * @example
 * ```ts
 * ww.getConnectedWifi()
 * ```
 */
export declare function getConnectedWifi(params?: APIParams<IEmptyObject, {
    /**
     * Wi-Fi 信息
     */
    wifi: WifiInfo;
}>): Promise<CommonResult & {
    /**
     * Wi-Fi 信息
     */
    wifi: WifiInfo;
}>;
/**
 * 预览文件
 *
 * @compat WeCom iOS, Android
 *
 * @note
 * 本接口将 URL 对应的文件下载后,在内置浏览器中预览。目前支持图片、音频、视频、文档等格式的文件。
 * 从 2.4.6 版本开始,iOS 版企业微信浏览器升级为 WkWebView,企业微信原生层面的网络请求读取不到WKWebview中设置的cookie,即使域名是相同的。
 * **问题说明:**
 * 如果页面的资源或图片存储的服务器依赖校验Cookie来返回数据的情况,在切换到WKWebview后,在企业微信内长按保存,或者点击预览文件时,原生层面发起的网络请求将不会完整地带上所设置的Cookie,会导致图片保存失败或预览失败。
 * **适配建议:**
 * 建议静态资源cookie free。如果确实有信息需要传递,可通过业务后台存储需要传递的信息,然后给页面一个存储信息相对应的access_token加密码,再通过Url中加入自己业务的access_token进行页面间信息传递。
 *
 * @example
 * ```ts
 * ww.previewFile({
 *   url: 'http://open.work.weixin.qq.com/wwopen/downloadfile/wwapi.zip',
 *   name: 'Android开发工具包集合',
 *   size: 22189
 * })
 * ```
 */
export declare function previewFile(params: APIParams<{
    /**
     * 需要预览文件的地址
     *
     * 可以使用相对路径
     */
    url: string;
    /**
     * 需要预览文件的字节大小
     */
    size: number;
    /**
     * 需要预览文件的文件名
     *
     * 默认为 URL 的最后部分
     */
    name?: string;
}>): Promise<CommonResult>;
export declare enum ChooseMessageFileType {
    /**
     * 仅选择视频文件
     */
    video = "video",
    /**
     * 仅选择图片文件
     */
    image = "image",
    /**
     * 可选择除了图片和视频之外的其它的文件
     */
    file = "file",
    /**
     * 可同时选择视频与图片
     */
    video_and_image = "video_and_image"
}
export declare enum TempFileType {
    /**
     * 视频文件
     */
    video = "video",
    /**
     * 图片文件
     */
    image = "image",
    /**
     * 除图片和视频的文件
     */
    file = "file"
}
/**
 * 从企业微信会话中选择文件,用户选择文件之后,返回临时文件 localId,可再调用 [getLocalFileData](#56784) 获取文件内容。
 *
 * @compat WeCom iOS, Android >= 4.0.20
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用的可见范围之中
 *
 * @example
 * ```ts
 * ww.chooseMessageFile({
 *  count: 10,
 *  type: 'image',
 * })
 * ```
 */
export declare function chooseMessageFile(params: APIParams<{
    /**
     * 最多可以选择的文件个数,取值范围: 1~100
     */
    count: number;
    /**
     * 所选的文件的类型
     * @default 'video_and_image'
     */
    type?: ChooseMessageFileType;
}, {
    /**
     * 返回选择的文件的本地临时文件对象数组
     */
    tempFiles: {
        /**
         * 本地临时文件 ID
         *
         * 仅在当前页面生命周期内可用,页面关闭后将会被清除
         */
        localId: string;
        /**
         * 本地临时文件大小,单位 Byte
         */
        size: number;
        /**
         * 选择的文件名称
         */
        name: string;
        /**
         * 选择的文件类型
         */
        type: TempFileType;
        /**
         * 选择的文件的会话发送时间,Unix时间戳
         */
        time: number;
    }[];
}>): Promise<CommonResult & {
    /**
     * 返回选择的文件的本地临时文件对象数组
     */
    tempFiles: {
        /**
         * 本地临时文件 ID
         *
         * 仅在当前页面生命周期内可用,页面关闭后将会被清除
         */
        localId: string;
        /**
         * 本地临时文件大小,单位 Byte
         */
        size: number;
        /**
         * 选择的文件名称
         */
        name: string;
        /**
         * 选择的文件类型
         */
        type: TempFileType;
        /**
         * 选择的文件的会话发送时间,Unix时间戳
         */
        time: number;
    }[];
}>;
/**
 * 获取 chooseMessageFile 返回的 localId 对应的文件内容。
 *
 * @compat WeCom iOS, Android >= 4.0.20
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用的可见范围之中
 *
 * @example
 * ```ts
 * ww.getLocalFileData({
 *   localId: '',
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | getLocalFileData:ok | 执行成功 |
 * | no permission | 应用签名校验失败,或成员不在应用的可见范围内 |
 * | no such file | localId不存在或者文件已删除 |
 * | file exceed size limit | 不支持超过20M的文件 |
 */
export declare function getLocalFileData(params: APIParams<{
    /**
     * 本地临时文件 ID
     */
    localId: string;
}, {
    /**
     * 文件内容的base64编码
     */
    localData: string;
}>): Promise<CommonResult & {
    /**
     * 文件内容的base64编码
     */
    localData: string;
}>;
export declare enum SizeType {
    /**
     * 原图
     */
    original = "original",
    /**
     * 压缩后的图片
     */
    compressed = "compressed"
}
export declare enum SourceType {
    /**
     * 相册
     */
    album = "album",
    /**
     * 相机,企业微信 2.3 及以后版本支持相机连拍
     */
    camera = "camera"
}
export declare enum CameraMode {
    /**
     * 单拍
     */
    normal = "normal",
    /**
     * 连拍
     *
     * @compat WeCom >= 2.3.0
     */
    batch = "batch",
    /**
     * 前置摄像头单拍
     *
     * @compat WeCom >= 3.0.26
     */
    front = "front",
    /**
     * 前置摄像头连拍
     *
     * @compat WeCom >= 3.0.26
     */
    batch_front = "batch_front"
}
/**
 * 拍照或从手机相册中选图。
 *
 * @example
 * ```ts
 * ww.chooseImage({
 *   count: 1,
 *   sizeType: ['original', 'compressed'],
 *   sourceType: ['album', 'camera'],
 *   defaultCameraMode: 'batch',
 *   isSaveToAlbum: true
 * })
 * ```
 */
export declare function chooseImage(params?: APIParams<{
    /**
     * 选择图片数量
     *
     * @default 9
     */
    count?: number;
    /**
     * 选择原图还是压缩后的图片
     */
    sizeType?: SizeType[];
    /**
     * 选择图片来源
     */
    sourceType?: SourceType[];
    /**
     * 进入拍照界面的默认模式,用户进入拍照界面仍然可自由切换模式
     *
     * @compat WeCom >= 2.4.20
     */
    defaultCameraMode?: CameraMode;
    /**
     * 拍照时是否保存到系统相册
     *
     * @default true
     *
     * @compat WeCom >= 2.7.5
     */
    isSaveToAlbum?: boolean;
}, {
    /**
     * 选定照片的本地 ID 列表
     *
     * @note
     * - 在 Android 中 localId 可以作为 img 标签的 src 属性
     * - 在 iOS 中需要通过 getLocalImgData 获取图片 base64 数据再用于显示
     */
    localIds: string[];
}>): Promise<CommonResult & {
    /**
     * 选定照片的本地 ID 列表
     *
     * @note
     * - 在 Android 中 localId 可以作为 img 标签的 src 属性
     * - 在 iOS 中需要通过 getLocalImgData 获取图片 base64 数据再用于显示
     */
    localIds: string[];
}>;
/**
 * 预览图片
 *
 * @note
 * 从2.4.6版本开始,IOS版企业微信浏览器升级为WkWebView,企业微信原生层面的网络请求读取不到WKWebview中设置的cookie,即使域名是相同的。
 * **问题说明:**
 * 如果页面的资源或图片存储的服务器依赖校验Cookie来返回数据的情况,在切换到WKWebview后,在企业微信内长按保存,或者点击预览大图时,原生层面发起的网络请求将不会完整地带上所设置的Cookie,会导致图片保存失败或预览失败。
 * **适配建议**
 * 建议静态资源cookie free。如果确实有信息需要传递,可通过业务后台存储需要传递的信息,然后给页面一个存储信息相对应的access_token加密码,再通过Url中加入自己业务的access_token进行页面间信息传递。
 *
 * @example
 * ```ts
 * ww.previewImage({
 *   current: imgURL,
 *   urls: [imgURL]
 * });
 * ```
 */
export declare function previewImage(params: APIParams<{
    /**
     * 当前显示图片的链接
     */
    current: string;
    /**
     * 需要预览的图片链接列表
     */
    urls: string[];
}>): Promise<CommonResult>;
/**
 * 上传图片。
 *
 * @note
 * 上传的图片有效期 3 天,可用[素材管理](#90253)接口下载图片到自己的服务器,此处获得的 serverId 即 media_id。
 *
 * @example
 * ```ts
 * ww.uploadImage({
 *   localId: localId,
 *   isShowProgressTips: true
 * })
 * ```
 */
export declare function uploadImage(params: APIParams<{
    /**
     * 需要上传的图片的本地 ID
     *
     * 可通过 chooseImage 接口获得
     */
    localId: string;
    /**
     * 是否显示进度提示
     *
     * @default true
     */
    isShowProgressTips?: boolean;
}, {
    /**
     * 返回图片的服务器端 ID
     */
    serverId: string;
}>): Promise<CommonResult & {
    /**
     * 返回图片的服务器端 ID
     */
    serverId: string;
}>;
/**
 * 下载图片。
 *
 * @example
 * ```ts
 * ww.downloadImage({
 *   serverId: serverId,
 *   isShowProgressTips: true
 * })
 * ```
 */
export declare function downloadImage(params: APIParams<{
    /**
     * 需要下载的图片的服务器端 ID
     *
     * 由 uploadImage 接口获得
     */
    serverId: string;
    /**
     * 显示进度提示
     *
     * @default true
     */
    isShowProgressTips?: boolean;
}, {
    /**
     * 返回图片下载后的本地 ID
     */
    localId: string;
}>): Promise<CommonResult & {
    /**
     * 返回图片下载后的本地 ID
     */
    localId: string;
}>;
/**
 * 获取本地图片内容。
 *
 * @limit
 * 仅在 iOS WKWebView 下支持。
 *
 * @compat WeCom iOS >= 2.4.6
 *
 * @example
 * ```ts
 * ww.getLocalImgData({
 *   localId: localId
 * })
 * ```
 */
export declare function getLocalImgData(params: APIParams<{
    /**
     * 图片的local ID
     */
    localId: string;
}, {
    /**
     * 图片的 base64 数据
     */
    localData: string;
}>): Promise<CommonResult & {
    /**
     * 图片的 base64 数据
     */
    localData: string;
}>;
/**
 * 开始录音。
 *
 * @example
 * ```ts
 * ww.startRecord()
 * ```
 */
export declare function startRecord(params?: APIParams): Promise<CommonResult>;
/**
 * 停止录音。
 *
 * @example
 * ```ts
 * ww.stopRecord()
 * ```
 */
export declare function stopRecord(params?: APIParams<IEmptyObject, {
    /**
     * 音频的本地 ID
     */
    localId: string;
}>): Promise<CommonResult & {
    /**
     * 音频的本地 ID
     */
    localId: string;
}>;
/**
 * 监听录音自动停止。
 *
 * @note
 * 录音时间超过一分钟没有停止的时候会执行 complete 回调
 *
 * @example
 * ```ts
 * ww.onVoiceRecordEnd(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onVoiceRecordEnd(callback: APICallback<{
    /**
     * 音频的本地 ID
     */
    localId: string;
}>): void;
/**
 * 播放语音。
 *
 * @example
 * ```ts
 * ww.playVoice({
 *   localId: localId
 * })
 * ```
 */
export declare function playVoice(params: APIParams<{
    /**
     * 需要播放的音频的本地 ID
     *
     * 通过 stopRecord 接口获得
     */
    localId: string;
}>): Promise<CommonResult>;
/**
 * 暂停播放。
 *
 * @example
 * ```ts
 * ww.pauseVoice({
 *   localId: localId
 * })
 * ```
 */
export declare function pauseVoice(params: APIParams<{
    /**
     * 需要暂停的音频的本地 ID
     *
     * 通过 stopRecord 接口获得
     */
    localId: string;
}>): Promise<CommonResult>;
/**
 * 停止播放。
 *
 * @example
 * ```ts
 * ww.stopVoice({
 *   localId: localId
 * })
 * ```
 */
export declare function stopVoice(params: APIParams<{
    /**
     * 需要停止的音频的本地 ID
     *
     * 通过 stopRecord 接口获得
     */
    localId: string;
}>): Promise<CommonResult>;
/**
 * 监听语音播放完毕。
 *
 * @example
 * ```ts
 * ww.onVoicePlayEnd(function(event) {
 *   console.log(event)
 * })
 * ```
 */
export declare function onVoicePlayEnd(callback: APICallback<{
    /**
     * 音频的本地 ID
     */
    localId: string;
}>): void;
/**
 * 上传语音。
 *
 * @note
 * 上传语音有效期 3 天,可以通过[素材管理](https://developer.work.weixin.qq.com/document/path/91054)接口下载语音到自己的服务器,接口返回的的 `serverId` 即 `media_id`。
 *
 * @example
 * ```ts
 * ww.uploadVoice({
 *   localId: localId,
 *   isShowProgressTips: true
 * })
 * ```
 */
export declare function uploadVoice(params: APIParams<{
    /**
     * 需要上传的音频的本地 ID
     *
     * 通过 stopRecord 接口获得
     */
    localId: string;
    /**
     * 是否显示进度提示
     *
     * @default true
     */
    isShowProgressTips?: boolean;
}, {
    /**
     * 音频的服务器端 ID
     */
    serverId: string;
}>): Promise<CommonResult & {
    /**
     * 音频的服务器端 ID
     */
    serverId: string;
}>;
/**
 * 下载语音。
 *
 * @example
 * ```ts
 * ww.downloadVoice({
 *   serverId: serverId,
 *   isShowProgressTips: true
 * })
 * ```
 */
export declare function downloadVoice(params: APIParams<{
    /**
     * 需要下载的音频的服务器端 ID
     *
     * 通过 uploadVoice 接口获得
     */
    serverId: string;
    /**
     * 是否显示进度提示
     *
     * @default true
     */
    isShowProgressTips?: boolean;
}, {
    /**
     * 音频的本地 ID
     */
    localId: string;
}>): Promise<CommonResult & {
    /**
     * 音频的本地 ID
     */
    localId: string;
}>;
/**
 * 语音转文字。
 *
 * @compat WeCom iOS, Android >= 2.7.5
 *
 * @example
 * ```ts
 * ww.translateVoice({
 *   localId: localId,
 *   isShowProgressTips: true
 * })
 * ```
 */
export declare function translateVoice(params: APIParams<{
    /**
     * 需要识别的音频的本地 ID
     *
     * 通过 stopRecord 接口获得,音频时长不能超过 60 秒
     */
    localId: string;
    /**
     * 是否显示进度提示
     *
     * @default true
     */
    isShowProgressTips?: boolean;
}, {
    /**
     * 识别结果
     */
    translateResult: string;
}>): Promise<CommonResult & {
    /**
     * 识别结果
     */
    translateResult: string;
}>;
export declare enum LiveType {
    /**
     * 通用直播
     */
    common = 0,
    /**
     * 企业培训
     */
    corp_training = 1,
    /**
     * 大班课
     */
    edu_normal_class = 2,
    /**
     * 小班课
     */
    edu_small_class = 3
}
export interface StartLivingResult {
    /**
     * 直播 ID
     */
    livingId: string;
}
/**
 * 创建直播并调起直播页面
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需具有直播使用权限,见[配置可使用直播的应用](#25967/配置可使用直播的应用)
 * - 创建直播的场景下,用户必须在应用可见范围内
 *
 * @compat WeCom >= 3.1.0
 *
 * @example
 * ```ts
 * ww.startLiving({
 *  liveType: 1,
 *  theme: '新同学培训',
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | startLiving:ok | 执行成功 |
 * | startLiving:fail no permission | 应用签名失败,或应用无直播权限 |
 * | startLiving:fail user not in allow list | 直播发起人必须在应用可见范围内 |
 * | startLiving:fail invalid parameter | 参数不合法 |
 * | startLiving:fail unsupported liveType | 不支持的直播类型。部分类型仅对特殊行业放开 |
 * | startLiving:fail api freq out of limit | 创建直播超过频率限制。单应用每天不可创建超过1w个直播 |
 */
export declare function startLiving(params?: APIParams<{
    /**
     * 直播类型
     *
     * Mac 端只支持通用直播
     */
    liveType?: LiveType;
    /**
     * 直播主题
     *
     * @limit
     * 最多支持 20 个 UTF-8 字符
     */
    theme?: string;
}, StartLivingResult>): Promise<StartLivingResult>;
/**
 * 调起直播预约详情或进行中的直播间页面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需具有直播使用权限,见[配置可使用直播的应用](#25967/配置可使用直播的应用)
 *
 * @compat WeCom >= 3.1.0
 *
 * @example
 * ```ts
 * ww.startLiving({
 *   livingId: 'LIVINGID'
 * })
 * ```
 *
 *  @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | startLiving:ok | 执行成功 |
 * | startLiving:fail no permission | 应用签名失败,或应用无直播权限 |
 * | startLiving:fail invalid living id | 不合法的直播ID |
 * | startLiving:fail not allow to cross corp | 不可跨企业使用直播ID |
 * | startLiving:fail not allow to cross app | 不可跨应用使用直播ID |
 * | startLiving:fail invalid parameter | 参数不合法 |
 * | startLiving:fail invalid department id | 不合法的班级ID |
 * | startLiving:fail exceed department id list size | 超过最大的班级个数 |
 *
 */
export declare function startLiving(params: APIParams<{
    /**
     * 直播 ID
     */
    livingId: string;
}, StartLivingResult>): Promise<StartLivingResult>;
/**
 * 调起直播间回放页面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需具有直播使用权限,参考[配置可使用直播的应用](#25967/配置可使用直播的应用)
 *
 * @compat WeCom >= 3.1.0
 *
 * @example
 * ```ts
 * ww.replayLiving({
 *   livingId: 'LIVINGID'
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | replayLiving:ok | 执行成功 |
 * | replayLiving:fail no permission | 应用签名校验失败,或应用不具备直播权限 |
 * | replayLiving:fail invalid living id | 不合法的直播ID |
 * | replayLiving:fail not allow to cross corp | 不可跨企业使用直播ID |
 * | replayLiving:fail not allow to cross app | 不可跨应用使用直播ID |
 * | replayLiving:fail living has no replay | 不存在直播回放 |
 * | replayLiving:fail replay is beging creating | 正在直播中,或回放正在生成中,稍后观看回放 |
 * | replayLiving:fail create replay failed | 回放创建失败 |
 * | replayLiving:fail invalid parameter | 参数不合法 |
 */
export declare function replayLiving(params: APIParams<{
    /**
     * 直播 ID
     */
    livingId: string;
}>): Promise<CommonResult>;
/**
 * 调起直播回放下载页面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需具有直播使用权限,参考[配置可使用直播的应用](#25967/配置可使用直播的应用)
 * - 只允许直播的发起人下载直播回放
 *
 * @compat WeCom PC >= 3.1.0
 *
 * @example
 * ```ts
 * ww.downloadLivingReplay({
 *   livingId: 'LIVINGID'
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | downloadLivingReplay:ok | 执行成功 |
 * | downloadLivingReplay:fail no permission | 应用签名校验失败,或应用不具备直播权限 |
 * | downloadLivingReplay:fail invalid living id | 不合法的直播ID |
 * | downloadLivingReplay:fail not allow to cross corp | 不可跨企业使用直播ID |
 * | downloadLivingReplay:fail not allow to cross app | 不可跨应用使用直播ID |
 * | downloadLivingReplay:fail invalid parameter | 参数不合法 |
 * | downloadLivingReplay:fail living has no replay | 不存在直播回放 |
 * | downloadLivingReplay:fail replay is beging creating | 正在直播中,或回放正在生成中,稍后观看回放 |
 * | downloadLivingReplay:fail create replay failed | 回放创建失败 |
 * | downloadLivingReplay:fail invalid operator | 只允许直播的发起人下载直播回放 |
 */
export declare function downloadLivingReplay(params: APIParams<{
    /**
     * 直播 ID
     */
    livingId: string;
}>): Promise<CommonResult>;
export interface StartMeetingResult {
    /**
     * 会议 ID
     */
    meetingId: string;
}
/**
 * 创建会议
 *
 * 创建临时会议并调起进行中的会议室页面.
 *
 * @compat WeCom >= 4.0
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有会议使用权限,参考[配置可使用会议的应用](#25775/配置可使用会议的应用)
 * - 用户需要在应用可见范围内
 *
 * @example
 * ```ts
 * // 创建会议
 * ww.startMeeting()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | startMeeting:ok | 执行成功 |
 * | startMeeting:fail no permission | 应用签名校验失败,或成员不在应用的可见范围内,或应用未开启会议使用权限 |
 * | startMeeting:fail user not in allow list | 会议发起人必须在应用可见范围 |
 * | startMeeting:fail invalid parameter | 参数不合法 |
 * | startMeeting:fail api freq out of limit | 创建会议超过频率限制。单应用每天不可创建超过1w个会议 |
 */
export declare function startMeeting(params?: APIParams<IEmptyObject, StartMeetingResult>): Promise<StartMeetingResult>;
/**
 * 进入会议
 *
 * 通过传入 meetingId 进入已有会议。
 *
 * @compat WeCom >= 3.1.0
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有会议使用权限,参考[配置可使用会议的应用](#25775/配置可使用会议的应用)
 * - 用户需要在应用可见范围内
 *
 * @example
 * ```ts
 * ww.startMeeting({
 *   meetingId: 'MEETINGID'
 * })
 * ```
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | startMeeting:ok | 执行成功 |
 * | startMeeting:fail no permission | 应用签名校验失败,或成员不在应用的可见范围内,或应用未开启会议使用权限 |
 * | startMeeting:fail user not in allow list | 会议发起人必须在应用可见范围 |
 * | startMeeting:fail not allow to cross corp | 不可跨企业使用会议ID |
 * | startMeeting:fail invalid meeting id | 不合法的会议ID |
 * | startMeeting:fail not allow to cross app | 不可跨应用使用会议ID |
 * | startMeeting:fail invalid parameter | 参数不合法 |
 */
export declare function startMeeting(params: APIParams<{
    /**
     * 会议 ID,可通过[创建预约会议](#25245)或通过调用ww.startMeeting()获取
     * 为空的情况下创建快速会议
     */
    meetingId?: string;
}, StartMeetingResult>): Promise<StartMeetingResult>;
/**
 * 新建文档、表格或者收集表。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 签名应用必须具有文档使用权限
 * - 当前用户必须在应用的可见范围之内
 * - 在 Mac 端使用时,macOS 版本需 > 10.12
 *
 * @compat WeCom >= 4.1.0
 *
 * @example
 * ```
 * ww.createDoc({
 *  docType: 3
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | createDoc:ok | 执行成功 |
 * | createDoc:fail no permission | 应用签名校验失败,或成员不在应用的可见范围内,或应用未开启文档使用权限 |
 * | createDoc:fail doc app closed. | 基础应用“文档”如果未启用 |
 * | createDoc:fail form app closed. | 基础应用“收集表”如果没有启用 |
 */
export declare function createDoc(params: APIParams<{
    /**
     * 文档类型
     * 3: 文档,4: 表格, 5: 收集表, 6: PPT, 10: 智能表格,其他类型暂不支持
     */
    docType: number;
}, {
    result: {
        /**
         * 选择的在线文档的URL列表
         */
        selectedFileUrls: string;
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的在线文档的URL列表
         */
        selectedFileUrls: string;
    };
}>;
export declare enum WedocSelectedFileType {
    /**
     * 其他
     */
    other = 0,
    /**
     * 文档
     */
    doc = 3,
    /**
     * 表格
     */
    sheet = 4,
    /**
     * 收集表
     */
    form = 5,
    /**
     * 幻灯片
     */
    slide = 6,
    /**
     * 思维导图
     */
    mindmap = 7,
    /**
     * 流程图
     */
    flowchart = 8,
    /**
     * 智能表格
     */
    smartsheet = 10
}
/**
 * 选择一个或多个文档,返回对应文档的 URL。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册,签名应用必须具有文档使用权限
 * - 当前用户必须在应用的可见范围之内
 * - Mac 端使用时,macOS 版本需 > 10.12
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```
 * ww.wedocSelectDoc({
 *  selectedFileNum: 1
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | wedocSelectDoc:ok | 执行成功 |
 * | wedocSelectDoc:cancel | 取消选择 |
 * | wedocSelectDoc:fail no permission | 应用签名失败,或应用无文档使用权限,或用户不在应用可见范围内 |
 * | wedocSelectDoc:fail param error | 参数错误 |
 * | wedocSelectDoc:fail context error | 选择器异常 |
 * | wedocSelectDoc:fail not supported system version| 低系统版本不支持 |
 */
export declare function wedocSelectDoc(params: APIParams<{
    /**
     * 选择文件的数量
     *
     * 1 表示单选,大于 1 表示多选,上限为 50
     */
    selectedFileNum: number;
}, {
    result: {
        /**
         * 选择的在线文档的 URL 列表
         *
         * @deprecated 该字段即将废弃,请使用 selectedFileInfos 代替
         */
        selectedFileUrls: string;
        /**
         * 选择的文档信息列表
         *
         * @compat WeCom >= 4.1.8
         */
        selectedFileInfos: {
            /**
             * 选择的文档url
             */
            url: string;
            /**
             * 选择的文档类型
             */
            type: WedocSelectedFileType;
        }[];
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的在线文档的 URL 列表
         *
         * @deprecated 该字段即将废弃,请使用 selectedFileInfos 代替
         */
        selectedFileUrls: string;
        /**
         * 选择的文档信息列表
         *
         * @compat WeCom >= 4.1.8
         */
        selectedFileInfos: {
            /**
             * 选择的文档url
             */
            url: string;
            /**
             * 选择的文档类型
             */
            type: WedocSelectedFileType;
        }[];
    };
}>;
/**
 * 在微盘中选择一个具有可上传权限的目录/空间,返回选中目录/空间对应的 selectedTicket。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 所使用的应用必须具有微盘权限
 * - 当前成员必须在应用的可见范围之内
 * - 若用户在某一目录位置不具备「上传」权限(微盘权限值为“可下载”/“仅预览”或自定义权限取消勾选“上传”权限),则无法选择该目录
 * - 在 Mac 端使用时,macOS 版本需 > 10.12
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```
 * ww.wedriveSelectDir()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | wedriveSelectDir:ok | 执行成功 |
 * | wedriveSelectDir:cancel | 取消选择 |
 * | wedriveSelectDir:fail no permission | 无权限 |
 * | wedriveSelectDir:fail param error | 参数错误 |
 * | wedriveSelectDir:fail context error | 选择器异常 |
 * | wedriveSelectDir:fail not supported system version | 低系统版本不支持 |
 */
export declare function wedriveSelectDir(params?: APIParams<IEmptyObject, {
    result: {
        /**
         * 选择的目录/空间所生成的临时 ticket
         *
         * 可调用文件上传和文件分块上传接口。有效期 30 分钟,最多可以使用 500 次
         */
        selectedTicket: string;
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的目录/空间所生成的临时 ticket
         *
         * 可调用文件上传和文件分块上传接口。有效期 30 分钟,最多可以使用 500 次
         */
        selectedTicket: string;
    };
}>;
/**
 * 唤起微盘选择器,选择微盘中的文件
 *
 * 在微盘中选择一个或多个具有可分享权限的微盘文件或在线文档,返回选中文件的 url。
 *
 * @compat WeCom >= 4.0.12
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 所使用的应用必须具有微盘和文档使用权限
 * - 当前成员必须在应用的可见范围之内
 * - 若用户对某文件不具备「分享」权限(微盘自定义权限取消勾选“分享”权限),则无法选择该文件。
 * - 在 Mac 端使用时,macOS 版本需 > 10.12
 *
 * @example
 * ```
 * ww.wedriveSelectFile({
 *    selectedFileNum: 1,
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | wedriveSelectFile:ok | 执行成功 |
 * | wedriveSelectFile:cancel | 取消选择 |
 * | wedriveSelectFile:fail no permission | 无权限 |
 * | wedriveSelectFile:fail param error | 参数错误 |
 * | wedriveSelectFile:fail context error | 选择器异常 |
 * | wedriveSelectFile:fail not supported system version | 低系统版本不支持 |
 */
export declare function wedriveSelectFile(params: APIParams<{
    /**
     * 选择文件的数量
     *
     * 1 表示单选,大于 1 表示多选,上限为 50
     */
    selectedFileNum: number;
}, {
    result: {
        /**
         * 选择的文件的 URL 列表
         * @deprecated 后续废弃,请使用selectedFileInfos
         */
        selectedFileUrls: string[];
        /**
         * 选择的文件信息列表
         * @compat WeCom >= 4.1.8
         */
        selectedFileInfos: {
            /**
             * 选择的文件url
             */
            url: string;
            /**
             * 选择的文件类型。0: 其他,2: 文件,3: 文档,4: 表格,5: 收集表,6: 幻灯片,7: 思维导图,8: 流程图,10: 智能表格
             */
            type: number;
        }[];
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的文件的 URL 列表
         * @deprecated 后续废弃,请使用selectedFileInfos
         */
        selectedFileUrls: string[];
        /**
         * 选择的文件信息列表
         * @compat WeCom >= 4.1.8
         */
        selectedFileInfos: {
            /**
             * 选择的文件url
             */
            url: string;
            /**
             * 选择的文件类型。0: 其他,2: 文件,3: 文档,4: 表格,5: 收集表,6: 幻灯片,7: 思维导图,8: 流程图,10: 智能表格
             */
            type: number;
        }[];
    };
}>;
/**
 * 选择可分享的文件
 *
 * 在微盘中选择一个或多个具有可分享权限的微盘文件或在线文档,返回选中文件的 url。
 *
 * @deprecated 该接口即将废弃,请使用 wedriveSelectFile 代替
 *
 * @compat WeCom >= 4.0.12
 */
export declare function wedriveSelectFileForShare(params: APIParams<{
    /**
     * 选择文件的数量
     *
     * 1 表示单选,大于 1 表示多选,上限为 50
     */
    selectedFileNum: number;
}, {
    result: {
        /**
         * 选择的文件的 URL 列表
         */
        selectedFileUrls: string[];
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的文件的 URL 列表
         */
        selectedFileUrls: string[];
    };
}>;
/**
 * 在微盘中选择一个或多个具有下载权限的文件(只能是微盘文件,不支持在线文档),返回选中文件对应的 selectedTickets 列表。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有微盘使用权限
 * - 当前成员必须在应用的可见范围之中
 * - 自建应用不支持调用
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```
 * ww.wedriveSelectFileForDownload({
 *  selectedFileNum: 1
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | wedriveSelectFileForDownload:ok | 执行成功 |
 * | wedriveSelectFileForDownload:cancel | 取消选择 |
 * | wedriveSelectFileForDownload:fail no permission | 无权限 |
 * | wedriveSelectFileForDownload:fail param error | 参数错误 |
 * | wedriveSelectFileForDownload:fail context error | 选择器异常 |
 * | wedriveSelectFileForDownload:fail not supported system version | 低系统版本不支持 |
 */
export declare function wedriveSelectFileForDownload(params: APIParams<{
    /**
     * 选择文件的数量
     *
     * 1 表示单选,大于 1 表示多选,上限为 50
     */
    selectedFileNum: number;
}, {
    result: {
        /**
         * 选择的文件所生成的临时 ticket 列表
         *
         * 每个文件对应一个ticket,可调用文件[下载接口](#93657)。有效期 30 分钟,不限制使用次数
         */
        selectedTickets: string[];
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 选择的文件所生成的临时 ticket 列表
         *
         * 每个文件对应一个ticket,可调用文件[下载接口](#93657)。有效期 30 分钟,不限制使用次数
         */
        selectedTickets: string[];
    };
}>;
export interface HistoryBackCallback {
    /**
     * @returns 是否取消返回操作
     */
    (): boolean;
}
/**
 * 监听页面返回事件。
 *
 * @param callback 回调函数,返回 false 则表示中断此次返回操作
 *
 * @limit
 * - 当页面左上角没有关闭按钮,不产生该事件
 * - iOS 系统下使用手势返回时,不产生该事件
 *
 * @compat WeCom iOS, Android >= 2.2.0; WeCom PC, Mac >= 2.4.5
 *
 * @example
 * ```ts
 * ww.onHistoryBack(function() {
 *   return confirm('确定放弃当前页面的修改?')
 * })
 * ```
 */
export declare function onHistoryBack(callback: HistoryBackCallback): void;
/**
 * 隐藏右上角菜单。
 *
 * @example
 * ```ts
 * ww.hideOptionMenu()
 * ```
 */
export declare function hideOptionMenu(params?: APIParams): Promise<CommonResult>;
/**
 * 显示右上角菜单。
 *
 * @example
 * ```ts
 * ww.showOptionMenu()
 * ```
 */
export declare function showOptionMenu(params?: APIParams): Promise<CommonResult>;
/**
 * 关闭当前网页窗口。
 *
 * @example
 * ```ts
 * ww.closeWindow()
 * ```
 */
export declare function closeWindow(params?: APIParams): Promise<CommonResult>;
/**
 * 批量隐藏功能按钮。
 *
 * @note
 * 完整功能按钮列表请参考[所有菜单项列表](#14926)。
 *
 * @example
 * ```ts
 * ww.hideMenuItems({
 *   menuList: ['menuItem:setFont']
 * })
 * ```
 */
export declare function hideMenuItems(params: APIParams<{
    /**
     * 要隐藏的菜单项
     */
    menuList: string[];
}>): Promise<CommonResult>;
/**
 * 批量显示功能按钮。
 *
 * @note
 * 完整功能按钮列表请参考[所有菜单项列表](#14926)。
 *
 * @example
 * ```ts
 * ww.showMenuItems({
 *   menuList: ['menuItem:setFont']
 * })
 * ```
 */
export declare function showMenuItems(params: APIParams<{
    /**
     * 要显示的菜单项
     */
    menuList: string[];
}>): Promise<CommonResult>;
/**
 * 隐藏所有非基础按钮。
 *
 * @example
 * ```ts
 * ww.hideAllNonBaseMenuItem()
 * ```
 */
export declare function hideAllNonBaseMenuItem(params?: APIParams): Promise<CommonResult>;
/**
 * 显示所有功能按钮。
 *
 * @example
 * ```ts
 * ww.showAllNonBaseMenuItem()
 * ```
 */
export declare function showAllNonBaseMenuItem(params?: APIParams): Promise<CommonResult>;
/**
 * 使用系统浏览器打开指定 URL,支持传入 oauth2 链接,从而实现在系统浏览器内免登录的效果。
 *
 * @compat WeCom PC >= 2.3.0
 *
 * @example
 * ```ts
 * ww.openDefaultBrowser({
 *   url: 'https://work.weixin.qq.com/'
 * })
 * ```
 */
export declare function openDefaultBrowser(params: APIParams<{
    /**
     * 在默认浏览器打开的 URL
     *
     * 若 URL 为 oauth2 链接,跳转时将附带上 code 参数
     */
    url: string;
}>): Promise<CommonResult>;
/**
 * 监听用户截屏事件。
 *
 * @compat WeCom iOS, Android >= 2.5.0
 *
 * @example
 * ```ts
 * ww.onUserCaptureScreen(function() {
 *   console.log('用户截屏了')
 * })
 * ```
 */
export declare function onUserCaptureScreen(callback: APICallback): void;
/**
 * 获取「转发」按钮点击状态并自定义分享内容。
 *
 * @note
 * 微信客户端即将废弃该接口。
 *
 * @limit
 * - 仅激活成员数超过 200 人且已经认证的企业才可在微信上调用
 *
 * @example
 * ```ts
 * ww.onMenuShareAppMessage({
 *   title: '企业微信',
 *   desc: '让每个企业都有自己的微信',
 *   link: 'https://work.weixin.qq.com/',
 *   imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
 *   success() {
 *     // 用户确认分享后回调
 *   },
 *   cancel() {
 *     // 用户取消分享后回调
 *   }
 * })
 * ```
 */
export declare function onMenuShareAppMessage(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     *
     * 在微信上分享时,该链接的域名必须与企业某个应用的可信域名一致
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
    /**
     * @compat WeCom >= 4.0.20
     * 是否开启id转译, 1 为开启,0 为关闭,默认为0
     * 仅供第三方应用使用
     * 必须使用应用身份进行注册
     */
    enableIdTrans?: number;
}>): void;
/**
 * 获取「分享到朋友圈」按钮点击状态并自定义分享内容。
 *
 * @note
 * 微信客户端即将废弃该接口。
 *
 * @example
 * ```ts
 * ww.onMenuShareTimeline({
 *   title: '企业微信',
 *   link: 'https://work.weixin.qq.com/',
 *   imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
 *   success() {
 *     // 用户确认分享后回调
 *   },
 *   cancel() {
 *     // 用户取消分享后回调
 *   }
 * })
 * ```
 */
export declare function onMenuShareTimeline(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享链接
     *
     * 在微信上分享时,该链接的域名必须与企业某个应用的可信域名一致
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
    /**
     * @compat WeCom >= 4.0.20
     * 是否开启id转译, 1 为开启,0 为关闭,默认为0
     * 仅供第三方应用使用
     * 必须使用应用身份进行注册
     */
    enableIdTrans?: number;
    /** */
    type?: string;
    /** */
    dataUrl?: string;
}>): void;
/**
 * 获取「微信」按钮点击状态并自定义分享内容。
 *
 * @compat WeCom
 *
 * @example
 * ```ts
 * ww.onMenuShareWechat({
 *   title: '企业微信',
 *   desc: '让每个企业都有自己的微信',
 *   link: 'https://work.weixin.qq.com/',
 *   imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
 *   success() {
 *     // 用户确认分享后回调
 *   },
 *   cancel() {
 *     // 用户取消分享后回调
 *   }
 * })
 * ```
 */
export declare function onMenuShareWechat(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
    /**
     * @compat WeCom >= 4.0.20
     * 是否开启id转译, 1 为开启,0 为关闭,默认为0
     * 仅供第三方应用使用
     * 必须使用应用身份进行注册
     */
    enableIdTrans?: number;
    /** */
    type?: string;
    /** */
    dataUrl?: string;
}>): void;
/**
 * 获取「分享到QQ」按钮点击状态并自定义分享内容。
 *
 * @note
 * 微信客户端即将废弃该接口。
 *
 * @compat WeChat
 */
export declare function onMenuShareQQ(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
}>): void;
/**
 * 获取「分享到微博」按钮点击状态并自定义分享内容。
 *
 * @compat WeChat
 */
export declare function onMenuShareWeibo(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
}>): void;
/**
 * 获取「分享到QQ空间」按钮点击状态并自定义分享内容。
 *
 * @note
 * 微信客户端即将废弃该接口。
 *
 * @compat WeChat
 */
export declare function onMenuShareQZone(params: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
}>): void;
/**
 * 自定义转发到会话。
 *
 * @compat WeCom >= 2.4.5
 *
 * @example
 * ```ts
 * ww.shareAppMessage({
 *   title: '企业微信',
 *   desc: '让每个企业都有自己的微信',
 *   link: 'https://work.weixin.qq.com/',
 *   imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
 * })
 * ```
 */
export declare function shareAppMessage(params: APIParams<{
    /**
     * 分享标题
     */
    title: string;
    /**
     * 分享描述
     */
    desc: string;
    /**
     * 分享链接
     */
    link: string;
    /**
     * 分享图标
     */
    imgUrl: string;
    /**
     * @compat WeCom >= 4.0.20
     * 是否开启id转译, 1 为开启,0 为关闭,默认为0
     * 仅供第三方应用使用
     * 必须使用应用身份进行注册
     */
    enableIdTrans?: number;
}>): Promise<CommonResult>;
/**
 * 自定义转发到微信。
 *
 * @compat WeCom >= 2.4.5
 *
 * @example
 * ```ts
 * ww.shareWechatMessage({
 *   title: '企业微信',
 *   desc: '让每个企业都有自己的微信',
 *   link: 'https://work.weixin.qq.com/',
 *   imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
 * })
 * ```
 */
export declare function shareWechatMessage(params: APIParams<{
    /**
     * 分享标题
     */
    title: string;
    /**
     * 分享描述
     */
    desc: string;
    /**
     * 分享链接
     */
    link: string;
    /**
     * 分享图标
     */
    imgUrl: string;
    /**
     * @compat WeCom >= 4.0.20
     * 是否开启id转译, 1 为开启,0 为关闭,默认为0
     * 仅供第三方应用使用
     * 必须使用应用身份进行注册
     */
    enableIdTrans?: number;
}>): Promise<CommonResult>;
/**
 * 自定义「分享到朋友圈」及「分享到QQ空间」按钮的分享内容。
 *
 * @compat WeChat
 */
export declare function updateTimelineShareData(params?: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享链接
     *
     * 该链接的域名必须与企业某个应用的可信域名一致
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
}>): Promise<CommonResult>;
/**
 * 自定义「分享给朋友」及「分享到QQ」按钮的分享内容。
 *
 * @compat WeChat
 */
export declare function updateAppMessageShareData(params?: APIParams<{
    /**
     * 分享标题
     */
    title?: string;
    /**
     * 分享描述
     */
    desc?: string;
    /**
     * 分享链接
     *
     * 该链接的域名必须与企业某个应用的可信域名一致
     */
    link?: string;
    /**
     * 分享图标
     */
    imgUrl?: string;
}>): Promise<CommonResult>;
/**
 * 批量添加卡券。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#批量添加卡券接口
 */
export declare function addCard(params: APIParams<{
    /**
     * 需要添加的卡券列表
     */
    cardList: Array<{
        cardId: string;
        cardExt: string;
    }>;
}, {
    /**
     * 添加的卡券列表信息
     */
    cardList: Array<{
        cardId: string;
        cardExt: string;
        isSuccess: boolean;
    }>;
}>): Promise<CommonResult & {
    /**
     * 添加的卡券列表信息
     */
    cardList: Array<{
        cardId: string;
        cardExt: string;
        isSuccess: boolean;
    }>;
}>;
/**
 * 拉取适用卡券列表并获取用户选择信息。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#拉取适用卡券列表并获取用户选择信息
 */
export declare function chooseCard(params: APIParams<{
    /**
     * 门店Id
     */
    shopId: string;
    /**
     * 卡券类型
     */
    cardType: string;
    /**
     * 卡券Id
     */
    cardId: string;
    /**
     * 卡券签名时间戳
     */
    timestamp: number | string;
    /**
     * 卡券签名随机串
     */
    nonceStr: string;
    /**
     * 签名方式
     *
     * @default 'SHA1'
     */
    signType: string;
    /**
     * 卡券签名
     */
    cardSign: string;
}, {
    cardList: Array<IAnyObject>;
}>): Promise<CommonResult & {
    cardList: Array<IAnyObject>;
}>;
/**
 * 查看微信卡包中的卡券。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#查看微信卡包中的卡券接口
 */
export declare function openCard(params: APIParams<{
    /**
     * 需要打开的卡券列表
     */
    cardList: Array<{
        cardId: string;
        code: string;
    }>;
}, IAnyObject>): Promise<CommonResult & IAnyObject>;
/**
 * 核销并分享卡券。
 *
 * @deprecated
 */
export declare function consumeAndShareCard(params: APIParams<{
    cardId: string;
    code: string;
}, IAnyObject>): Promise<CommonResult & IAnyObject>;
export declare enum ProductViewType {
    normal = 0,// 默认值,普通商品详情页
    scan = 1
}
/**
 * 跳转微信商品页。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#跳转微信商品页接口
 */
export declare function openProductSpecificView(params: APIParams<{
    /**
     * 商品id
     */
    productId: string;
    /**
     * 商品页类型
     *
     * @default 0
     */
    viewType?: ProductViewType;
    /** */
    extInfo?: any;
}, IAnyObject>): Promise<CommonResult & IAnyObject>;
export interface WxPayParams {
    /**
     * 支付签名时间戳
     *
     * 注意微信 jssdk 中的所有使用 timestamp 字段均为小写。但最新版的支付后台生成签名使用的 timeStamp 字段名需大写其中的 S 字符
     */
    timestamp: number | string;
    /**
     * 支付签名随机串
     *
     * 不长于 32 位
     */
    nonceStr: string;
    /**
     * 统一支付接口返回的 prepay_id 参数值
     *
     * 提交格式如:prepay_id=\*\*\*)
     */
    package: string;
    /**
     * 签名方式
     *
     * 使用新版支付需传入'MD5'
     *
     * @default 'SHA1'
     */
    signType: string;
    /**
     * 支付签名
     */
    paySign: string;
}
/**
 * 发起一个微信支付请求。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#发起一个微信支付请求
 */
export declare function chooseWXPay(params: APIParams<WxPayParams, IAnyObject>): Promise<CommonResult & IAnyObject>;
/**
 * 领取企业红包。
 */
export declare function openEnterpriseRedPacket(params: APIParams<WxPayParams, IAnyObject>): Promise<CommonResult & IAnyObject>;
declare enum DiscoverDeviceType {
    /**
     * 识别传递的 qrcode_url
     *
     * 如果是正确的链接,则直接进入到设备详情
     */
    qrcode = "qrcode",
    /**
     * 进入蓝牙发现的列表页,进行搜索识别
     */
    bluetooth = "bluetooth",
    /**
     * 进入输入 sn 流程
     *
     * 若传入 sn,则直接进入设备详情
     */
    input = "input",
    /**
     * 进入选择添加设备方式列表
     */
    choose = "choose"
}
/**
 * 添加设备。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 发起用户需要有设备添加权限(超级管理员/设备管理员)
 *
 * @compat WeCom iOS, Android >= 4.0.18
 *
 * @example
 * ```ts
 * ww.addDevice({
 *   type: 'qrcode',
 *   qrcode_url: 'https://open.work.weixin.qq.com/connect?xxx',
 * })
 * ```
 */
export declare function addDevice(params: APIParams<{
    /**
     * 设备发现方式
     */
    type: DiscoverDeviceType;
    /**
     * 设备静态 / 动态二维码链接
     *
     * 当 type 为 qrcode 时必填
     */
    qrcode_url?: string;
    /**
     * 设备 SN 码
     *
     * 当 type 为 sn 时选填
     */
    sn?: string;
}>): Promise<CommonResult>;
/**
 * 判断当前客户端版本是否支持指定 JS 接口。
 *
 * @example
 * ```ts
 * ww.checkJsApi({
 *   jsApiList: ['chooseImage']
 * })
 * ```
 */
export declare function checkJsApi(params: APIParams<{
    /**
     * JS 接口列表
     */
    jsApiList: string[];
}, {
    /**
     * 检查结果
     *
     * 以键值对的形式返回,接口可用时为 true,不可用为 false
     */
    checkResult: Record<string, boolean>;
}>): Promise<CommonResult & {
    /**
     * 检查结果
     *
     * 以键值对的形式返回,接口可用时为 true,不可用为 false
     */
    checkResult: Record<string, boolean>;
}>;
/**
 * 查看其他成员某段时间内日程中的闲忙状态。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用可见范围内
 * - 应用需具有日程使用权限
 *
 * @compat WeCom >= 4.0.20
 *
 * @example
 * ```ts
 * ww.checkSchedule({
 *   start_time: 1667232000,
 *   end_time: 1667318400,
 *   users: ['jack', 'jason']
 * })
 * ```
 */
export declare function checkSchedule(params: APIParams<{
    /**
     * 开始时间,unix 时间戳
     */
    start_time: number;
    /**
     * 结束时间,unix 时间戳
     */
    end_time: number;
    /**
     * 成员 userid 列表
     *
     * 第三方应用与代开发应用须传入 open_userid 列表,不填或列表为空则仅查看用户本人的日程闲忙状态
     */
    users?: string[];
}>): Promise<CommonResult>;
/**
 * 拉起电子发票列表。
 *
 * @compat WeCom iOS, Android >= 2.1.0
 *
 * @example
 * ```ts
 * ww.chooseInvoice({
 *   timestamp: timestamp,
 *   nonceStr: nonceStr,
 *   signType: signType,
 *   cardSign: cardSign
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | choose_invoice:ok | 执行成功 |
 * | choose_invoice: fail | 选取发票失败 |
 * | choose_invoice: cancel | 选取发票取消 |
 */
export declare function chooseInvoice(params: APIParams<{
    /**
     * 签名时间戳
     */
    timestamp: number;
    /**
     * 签名随机串
     */
    nonceStr: string;
    /**
     * 签名
     */
    cardSign: string;
    /**
     * 签名类型
     *
     * @default 'SHA1'
     */
    signType?: string;
}, {
    /**
     * 用户选中的发票列表
     */
    choose_invoice_info: Array<{
        card_id: string;
        encrypt_code: string;
        app_id: string;
    }>;
}>): Promise<CommonResult & {
    /**
     * 用户选中的发票列表
     */
    choose_invoice_info: Array<{
        card_id: string;
        encrypt_code: string;
        app_id: string;
    }>;
}>;
/**
 * 跳转到认领班级的界面。
 *
 * @compat WeCom >= 3.1.8
 *
 * @limit 本接口必须使用应用身份进行注册
 *
 * @example
 * ```ts
 * ww.claimClassAdmin()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | claimClassAdmin:ok | 执行成功 |
 * | claimClassAdmin:fail no permission | 应用身份鉴权失败 |
 * | claimClassAdmin:fail user not in allow list | 当前成员不在应用可见范围 |
 */
export declare function claimClassAdmin(params?: APIParams<IEmptyObject, {
    /**
     * 认领的班级部门 ID 列表
     */
    departmentIds: string[];
}>): Promise<CommonResult & {
    /**
     * 认领的班级部门 ID 列表
     */
    departmentIds: string[];
}>;
export interface TextMessage {
    /**
     * 消息类型
     */
    msgtype: "text";
    text: {
        /**
         * 文本内容
         */
        content: string;
    };
}
export interface ImageMessage {
    /**
     * 消息类型
     */
    msgtype: "image";
    image: {
        /**
         * 图片的素材 ID
         *
         * 可以通过[素材管理](#90253)接口获得,暂不支持公众平台的 mediaid
         */
        mediaid?: string;
        /**
         * 图片的 url,跟图片素材 ID 填其中一个即可
         */
        imgUrl?: string;
    };
}
export interface LinkMessage {
    /**
     * 消息类型
     */
    msgtype: "link";
    link: {
        /**
         * H5消息标题
         */
        title?: string;
        /**
         * H5消息封面图片URL
         */
        imgUrl?: string;
        /**
         * H5消息摘要
         */
        desc?: string;
        /**
         * H5消息页面url
         */
        url: string;
    };
}
export interface MiniprogramMessage {
    /**
     * 消息类型
     *
     * @compat WeCom iOS, Android, PC >= 3.1.0; WeCom Mac >= 4.1.26
     */
    msgtype: "miniprogram";
    miniprogram: {
        /**
         * 小程序的appid
         */
        appid: string;
        /**
         * 小程序消息的title
         */
        title: string;
        /**
         * 小程序消息的封面图,必须带 http 或 https 协议头
         */
        imgUrl: string;
        /**
         * 小程序消息打开后的路径,注意要以 `.html` 作为后缀
         */
        page: string;
    };
}
export interface VideoMessage {
    /**
     * 消息类型
     */
    msgtype: "video";
    video: {
        /**
         * 视频的素材 ID
         *
         * 可以通过[素材管理](#90253)接口获得,暂不支持公众平台的 mediaid
         */
        mediaid: string;
    };
}
export interface FileMessage {
    /**
     * 消息类型
     */
    msgtype: "file";
    file: {
        /**
         * 文件素材 ID
         *
         * 可以通过[素材管理](#90253)接口获得,暂不支持公众平台的 mediaid
         */
        mediaid: string;
    };
}
export interface NewsMessage {
    /**
     * 消息类型
     */
    msgtype: "news";
    news: {
        /**
         * 页面 URL
         */
        link: string;
        /**
         * 卡片标题
         */
        title: string;
        /**
         * 卡片摘要
         */
        desc: string;
        /**
         * 封面图片URL
         */
        imgUrl: string;
    };
}
export interface MenuMessage {
    /**
     * 消息类型
     *
     * @compat WeCom iOS, Android >= 3.1.12; WeCom PC >= 3.1.20
     *
     * @limit
     * 仅支持从客服工具栏进入的页面调用, 即`entry`值必须为`single_kf_tools`
     */
    msgtype: "msgmenu";
    msgmenu: {
        /**
         * 起始文本
         */
        head_content: string;
        /**
         * 菜单项配置列表
         */
        list: MenuMessageItem[];
    };
}
export interface ShopMessage {
    /**
     * 消息类型
     *
     * @compat WeCom >= 4.1.6
     *
     * @limit
     * 仅支持从客服工具栏进入的页面调用, 即`entry`值必须为`single_kf_tools`
     *
     */
    msgtype: "channels_shop_product";
    /**
     * 商品及店铺信息
     * 参数可通过[获取商品接口](https://developers.weixin.qq.com/doc/channels/API/product/get)和[获取店铺基本信息接口](https://developers.weixin.qq.com/doc/channels/API/basics/getbasicinfo)获取
     */
    channelsShopProduct: {
        /**
         * 商品ID
         */
        productId: string;
        /**
         * 小店ID
         */
        shopAppId: string;
        /**
         * 商品图像
         */
        imgUrl: string;
        /**
         * 商品名
         */
        title: string;
        /**
         * 价格区间最小值(单位分) (销售价)
         */
        sellingPrice: string;
        /**
         * 视频号店铺头像URL
         */
        shopImgUrl: string;
        /**
         * 视频号店铺名称
         */
        shopNickname: string;
    };
}
export type MenuMessageItem = ClickMenuItem | ViewMenuItem | MiniprogramMenuItem;
export interface ClickMenuItem {
    /**
     * 菜单类型
     */
    type: "click";
    click: {
        /**
         * 菜单 ID
         */
        id: string;
        /**
         * 菜单显示内容
         */
        content: string;
    };
}
export interface ViewMenuItem {
    /**
     * 菜单类型
     */
    type: "view";
    view: {
        /**
         * 点击后跳转的链接
         */
        url: string;
        /**
         * 菜单显示内容
         */
        content: string;
    };
}
export interface MiniprogramMenuItem {
    /**
     * 菜单类型
     */
    type: "miniprogram";
    miniprogram: {
        /**
         * 小程序的 appid
         */
        appid: string;
        /**
         * 小程序消息打开后的路径
         */
        page: string;
        /**
         * 小程序消息的 title
         */
        content: string;
    };
}
/**
 * 向用户申请给指定范围发送消息。
 *
 * 调用接口后,用户可在选人界面对群聊范围进行修改,当创建群聊成功时会返回新建的群聊 ID。
 *
 * @limit
 * - 仅第三方应用(非通讯录应用)与代开发应用可调用
 * - 本接口必须使用应用身份进行注册
 *
 * @compat WeCom >= 3.1.8
 *
 * @example
 * ```ts
 * ww.createChatWithMsg({
 *   selectedOpenUserIds: ['zhangsan','lisi'],
 *   selectedTickets: ['tick1','token2'],
 *   chatName: 'discussName',
 *   msg: {
 *     msgtype: 'link',
 *     link: {
 *       title: 'title1',
 *       desc: 'desc1',
 *       url: 'link1',
 *       imgUrl: 'imgurl1'
 *     }
 *   }
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | createChatWithMsg:ok | 执行成功 |
 * | createChatWithMsg:fail_unsupported_msgtype | msgtype不合法 |
 * | createChatWithMsg:fail_msg_link_missing_url | msg.link.url未传入 |
 */
export declare function createChatWithMsg(params: APIParams<{
    /**
     * 群聊指定的用户 OpenUserID 列表
     */
    selectedOpenUserIds?: string;
    /**
     * 群聊指定的 selectedTicket 列表
     *
     * 可通过 selectPrivilegedContact 接口获取
     */
    selectedTickets?: string[];
    /**
     * 新建群聊指定的群名
     */
    chatName: string;
    /**
     * 发送的链接消息
     */
    msg?: LinkMessage;
}, {
    /**
     * 新建群聊时返回对应的群聊 ID
     *
     * 当发送的范围只有 1 人时,不会新建群聊,此时不返回 chatId
     */
    chatId?: string;
}>): Promise<CommonResult & {
    /**
     * 新建群聊时返回对应的群聊 ID
     *
     * 当发送的范围只有 1 人时,不会新建群聊,此时不返回 chatId
     */
    chatId?: string;
}>;
/**
 * 创建企业互联/上下游会话。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 企业必须开启互联群功能
 * - 仅局校互联和上下游企业可调用
 * - 当前成员必须在应用的可见范围
 * - 群成员人数不能超过 2000 人
 * - 如果创建的会话有外部联系人,群成员人数不能超过 40 人
 * - 当前成员为下游企业成员时,需要打开上下游空间中的“允许外部单位之间互相查看”配置,群成员中才可以包含其他下游企业成员
 *
 * @compat WeCom iOS, Android, PC >= 3.1.8
 *
 * @example
 * ```ts
 * ww.createCorpGroupChat({
 *   groupName: '讨论组',
 *   userIds: ['lisi', 'lisi2'],
 *   openUserIds: ['wabc3', 'wbcde'],
 *   externalUserIds: ['exid1', 'exid2'],
 *   corpGroupUserIds: [
 *     {
 *       corpId: 'ww3333',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     }
 *   ]
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | createCorpGroupChat:ok | 执行成功 |
 * | createCorpGroupChat:fail no permission | 应用签名校验失败 |
 * | createCorpGroupChat:fail exceed user id list size | 超过人数上限 |
 * | createCorpGroupChat:fail invalid parameter | 参数不合法 |
 * | createCorpGroupChat:fail need open corp group chat | 企业未开启企业互联群功能 |
 * | createCorpGroupChat:fail exceed external user id list size | 超过包含外部联系人群人数上限 |
 */
export declare function createCorpGroupChat(params: APIParams<{
    /**
     * 会话名称
     *
     * 创建单聊时可以忽略
     */
    groupName?: string;
    /**
     * 参与会话的企业成员列表
     *
     * @limit
     * 仅自建应用使用
     */
    userIds?: string[];
    /**
     * 参与会话的企业成员列表
     *
     * @limit
     * 仅第三方应用使用
     */
    openUserIds?: string[];
    /**
     * 参与会话的外部联系人列表
     *
     * @limit
     * 与发起人需要有好友关系
     *
     * @compat WeCom >= 3.1.20
     */
    externalUserIds?: string[];
    /**
     * 参与会话的互联企业成员列表
     *
     * @compat WeCom >= 3.1.20
     */
    corpGroupUserIds?: Array<{
        /**
         * 企业Corp ID
         */
        corpId: string;
        /**
         * 成员 ID
         *
         * @limit
         * 仅自建应用使用
         */
        userId?: string;
        /**
         * 成员OpenUser ID
         *
         * @limit
         * 仅第三方应用使用
         */
        openUserId?: string;
    }>;
}, {
    /**
     * 创建的群聊 ID
     */
    chatId: string;
}>): Promise<CommonResult & {
    /**
     * 创建的群聊 ID
     */
    chatId: string;
}>;
export declare enum CreateExternalPaymentType {
    /**
     * 在聊天中收款
     */
    chat = 0,
    /**
     * 收款码收款
     */
    qrcode = 1
}
/**
 * 发起对外收款。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 所使用的应用必须具有对外收款权限
 * - 发起的用户必须在应用可见范围并实名
 * - 允许第三方应用、代开发应用和自建应用调用
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```ts
 * ww.createExternalPayment({
 *   paymentType: 0,
 *   totalFee: 300,
 *   description: '可乐一罐'
 * })
 * ```
 */
export declare function createExternalPayment(params?: APIParams<{
    /**
     * 收款方式
     *
     * 不填默认为在聊天中收款。
     */
    paymentType?: CreateExternalPaymentType;
    /**
     * 收款金额
     *
     * 单位为分,允许范围 1~5,000,000 分
     */
    totalFee?: number;
    /**
     * 收款说明
     *
     * “在聊天中收款” 不超过32个字,“收款码收款”不超过16个字。若为空或者超出最大长度,唤起收款页面时,客户端会忽略该字段,由用户填写。
     */
    description?: string;
}, {
    /**
     * 收款项目 ID
     *
     * 可使用该 ID 获取[收款项目的商户单号](#39973)
     */
    paymentId: string;
}>): Promise<CommonResult & {
    /**
     * 收款项目 ID
     *
     * 可使用该 ID 获取[收款项目的商户单号](#39973)
     */
    paymentId: string;
}>;
/**
 * 发起班级收款。
 *
 * 用于老师对学生家长发起付款请求,接口调用成功后会通过家校通知发送付款小程序给家长。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 所使用的应用必须具有对外收款权限
 * - 仅支持配置在家长可使用范围内的应用
 * - 企业必须已验证或者已认证
 * - 发起的用户必须在应用可见范围并实名
 * - 发起的用户需在个人微信零钱账户的可用范围内
 *
 * @compat WeCom iOS, Android, PC >= 3.1.10
 *
 * @note
 * - 用户可以手动调整收款金额,收款项目和收款范围
 * - 通过接口发起的收款,默认收款账户为“我的微信零钱账户”,且不可修改
 * - 若用户未授权个人付款码权限,会唤起授权付款码权限页面,授权完成返回页面后会返回错误信息 `'require authorize the payment qr code'`。用户授权完成后可引导用户重新发起收款
 *
 * @example
 * ```ts
 * ww.createSchoolPayment({
 *   projectName: '1班班费',
 *   amount: 100,
 *   payers: {
 *     students: ['zhagnshan', 'lisi'],
 *     departments: [1, 2]
 *   }
 * })
 * ```
 */
export declare function createSchoolPayment(params: APIParams<{
    /**
     * 收款项目名称
     *
     * 最多 32 个字。若为空或者超出最大长度,唤起原生收款页面时,客户端会忽略该字段,由用户填写
     */
    projectName?: string;
    /**
     * 收款金额
     *
     * 每个学生需付费的金额,单位为分,限额 100000,若非法客户端会忽略该字段
     */
    amount?: number;
    /**
     * 收款范围
     *
     * 传入的收款范围若不在老师管理的范围,客户端会过滤掉不展示范围外的数据
     *
     * @limit
     * 收款范围内展开的学生个数不能超过 1000 人
     */
    payers?: {
        /**
         * 需要收款的学生列表
         */
        students: string[];
        /**
         * 需要收款的家校通讯录部门列表,支持班级、年级、校区
         */
        departments: number[];
    };
}, {
    /**
     * 收款项目 ID,可使用该 ID 调用[获取学生付款结果](#94470)接口
     */
    paymentId: string;
}>): Promise<CommonResult & {
    /**
     * 收款项目 ID,可使用该 ID 调用[获取学生付款结果](#94470)接口
     */
    paymentId: string;
}>;
/**
 * 添加设备。
 *
 * @deprecated 请使用 addDevice 接口
 *
 * @limit
 * 调用者必须为企业超级管理员
 *
 * @compat WeCom iOS, Android >= 2.5.8
 *
 * @example
 * ```ts
 * ww.discoverDevice({
 *   type: 'qrcode',
 *   qrcode_url: 'https://open.work.weixin.qq.com/connect?xxx'
 * })
 * ```
 */
export declare function discoverDevice(params: APIParams<{
    /**
     * 设备发现方式
     */
    type: DiscoverDeviceType;
    /**
     * 设备静态 / 动态二维码链接
     *
     * 当 type 为 qrcode 时必填
     */
    qrcode_url?: string;
}>): Promise<CommonResult>;
/**
 * 加入视频会议。
 *
 * @limit
 * 只能加入同企业硬件创建的视频会议。
 *
 * @compat WeCom >= 2.5.0
 *
 * @example
 * ```ts
 * ww.enterHWOpenTalk({
 *   code: code,
 *   ticket: ticket
 * })
 * ```
 */
export declare function enterHWOpenTalk(params: APIParams<{
    /**
     * 会议码,从对应的视频会议硬件上获取
     */
    code: string;
    /**
     * 会议码票据,调用方可以根据会议码生成对应的会议码票据
     *
     * 此票据会在调用 `ww.queryCurrHWOpenTalk` 时返回,便于换回对应的会议码
     *
     * 调用方需要记录票据到会议码的映射关系
     */
    ticket: string;
}>): Promise<CommonResult>;
/**
 * 跳转认证界面。
 *
 * @compat WeCom iOS, Android >= 2.8.7
 *
 * @example
 * ```ts
 * ww.enterpriseVerify()
 * ```
 */
export declare function enterpriseVerify(params?: APIParams): Promise<CommonResult>;
export interface SelectedDataItem {
    /**
     * 表示选项的唯一识别 ID
     */
    key: string;
    /**
     * 选项展示给用户的名字
     */
    value: string;
}
/**
 * 获取 saveApprovalSelectedItems 保存的审批选项。
 *
 * 当用户打开网页后,应该先调用一次该接口获取用户已经选择的数据作为初始数据。获取到初始数据后,应该恢复已经选择的选项。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 所签名的应用必须具有审批权限
 *
 * @note
 * - 网页应该做好深色模式适配
 * - 接口仅用于审批设置外部选项场景,请勿用作其他场景
 *
 * @compat WeCom >= 4.0.18
 *
 * @example
 * ```ts
 * ww.getApprovalSelectedItems({
 *   key: 'key'
 * })
 * ```
 */
export declare function getApprovalSelectedItems(params: APIParams<{
    /**
     * 从 URL 获取的 key
     */
    key: string;
}, {
    /**
     * 选中的选项
     */
    selectedData: SelectedDataItem[];
}>): Promise<CommonResult & {
    /**
     * 选中的选项
     */
    selectedData: SelectedDataItem[];
}>;
export declare enum EntryType {
    /**
     * 从联系人详情进入
     */
    contact_profile = "contact_profile",
    /**
     * 从单聊会话的工具栏进入
     */
    single_chat_tools = "single_chat_tools",
    /**
     * 从群聊会话的工具栏进入
     */
    group_chat_tools = "group_chat_tools",
    /**
     * 从会话的聊天附件栏进入
     *
     * @compat WeCom >= 3.1.6
     */
    chat_attachment = "chat_attachment",
    /**
     * 从微信客服的工具栏进入
     *
     * @compat WeCom >= 3.1.10
     */
    single_kf_tools = "single_kf_tools",
    /**
     * 上下游单聊会话的工具栏
     *
     * @compat WeCom >= 4.0.8
     */
    chain_single_chat_tools = "chain_single_chat_tools",
    /**
     * 上下游群聊会话的工具栏
     *
     * @compat WeCom >= 4.0.8
     */
    chain_group_chat_tools = "chain_group_chat_tools",
    /**
     * 从内部群群看板进入
     *
     * @compat WeCom >= 4.1.36
     */
    internal_group_chat_board = "internal_group_chat_board",
    /**
     * 除以上场景之外进入,例如工作台,聊天会话等
     */
    normal = "normal"
}
/**
 * 获取当前页面打开场景。
 *
 * @note
 * 调用该接口可以判断用户是从哪个入口打开页面,从而决定是否可以调用客户联系相关的接口。
 *
 * @compat WeCom >= 3.0.24
 *
 * @example
 * ```ts
 * ww.getContext()
 * ```
 */
export declare function getContext(params?: APIParams<IEmptyObject, {
    /**
     * 进入页面的场景类型
     */
    entry: EntryType;
    /**
     * 从设置了 `withShareTicket: true` 的消息进入时返回该字段,用于私密分享
     */
    shareTicket?: string;
}>): Promise<CommonResult & {
    /**
     * 进入页面的场景类型
     */
    entry: EntryType;
    /**
     * 从设置了 `withShareTicket: true` 的消息进入时返回该字段,用于私密分享
     */
    shareTicket?: string;
}>;
/**
 * 页面在聊天工具栏中打开时,获取当前上下游互联群的群 ID.
 *
 * @compat WeCom >= 4.0.12
 *
 * @limit
 * - 仅支持上下游聊天工具栏中进入的页面调用,即 getContext 返回 `entry` 为 `chain_single_chat_tools` 或 `chain_group_chat_tools` 的场景
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用的可见范围
 *
 * @example
 * ```
 * ww.getCurCorpGroupChat()
 * ```
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | getCurCorpGroupChat:ok| 执行成功 |
 * | getCurCorpGroupChat:no permission | 应用身份鉴权失败 |
 * | getCurCorpGroupChat:without context of corpgroup contact | 当前页面入口不支持调用 |
 */
export declare function getCurCorpGroupChat(params?: APIParams<IEmptyObject, {
    /**
     * 当前互联群的群 ID
     */
    chatId: string;
}>): Promise<CommonResult & {
    /**
     * 当前互联群的群 ID
     */
    chatId: string;
}>;
/**
 * 页面在上下游聊天工具栏中打开时,获取当前上下游联系人用户 ID。
 *
 * @compat WeCom >= 4.0.8
 *
 * @limit
 * - 仅支持上下游聊天工具栏中进入的页面调用,即 getContext 返回 `entry` 为 `chain_single_chat_tools` 或 `chain_group_chat_tools` 的场景
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用的可见范围
 *
 * @example
 * ```
 * ww.getCurCorpGroupContact()
 * ```
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | getCurCorpGroupContact:ok| 执行成功 |
 * | getCurCorpGroupContact:no permission | 应用身份鉴权失败 |
 * | getCurCorpGroupContact:without context of corpgroup contact | 当前页面入口不支持调用 |
 */
export declare function getCurCorpGroupContact(params: APIParams<IEmptyObject, {
    /**
     * 当前联系人的企业 ID
     */
    corpId: string;
    /**
     * 当前联系人用户 ID
     */
    userId: string;
}>): Promise<CommonResult & {
    /**
     * 当前联系人的企业 ID
     */
    corpId: string;
    /**
     * 当前联系人用户 ID
     */
    userId: string;
}>;
/**
 * 获取当前客户群的群 ID。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 从客户群或班级群的聊天工具栏进入页面时才可成功调用该接口
 * - 不同的入口对应用及用户有相应的限制
 *   | 入口 | getContext 接口返回的 entry 值 | 自建应用 | 第三方应用 | 用户 | 兼容性 |
 *   | --- | --- | --- | --- | --- | --- |
 *   | 外部群聊工具栏 | group_chat_tools | 需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用) | 需有“企业客户权限->客户基础信息”权限 | 配置了[客户联系功能](#13473/配置可使用客户联系功能的成员) | 企业微信 2.8.17 |
 *   | 班级群的聊天工具栏 | group_chat_tools | 所有 | 需有「家校沟通」使用权限 | 所有 | 企业微信 3.0.36 |
 *   | 学生群的聊天工具栏 | group_chat_tools | 所有 | 需有「家校沟通」使用权限 | 所有 | 企业微信 4.0.8 |
 *
 * @compat WeCom >= 2.8.17
 *
 * @example
 * ```ts
 * ww.getCurExternalChat()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | getCurExternalChat:ok | 执行成功 |
 * | getCurExternalChat:fail no permission | 应用签名校验失败,或签名所使用的应用不满足权限要求 |
 * | getCurExternalChat:fail without context of external contact | 当前页面入口不支持调用 |
 */
export declare function getCurExternalChat(params?: APIParams<IEmptyObject, {
    /**
     * 当前客户群的群 ID
     */
    chatId: string;
}>): Promise<CommonResult & {
    /**
     * 当前客户群的群 ID
     */
    chatId: string;
}>;
/**
 * 获取当前外部联系人 userId。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 不同的入口对应用及用户有相应的限制,目前支持的入口有联系人详情页、外部单聊工具栏
 *   | getContext 接口返回的 entry 值 | 自建应用 | 第三方应用 | 用户 | 支持的最低版本 |
 *   | --- | --- | --- | --- | --- |
 *   | contact_profile | [客户联系功能权限](#13473/配置可使用客户联系接口的应用) | 需有“企业客户权限->客户基础信息”权限 | 配置了|[客户联系功能](#13473/配置可使用客户联系功能的成员) | 企业微信 2.5.8 |
 *   | single_chat_tools | [客户联系功能权限](#13473/配置可使用客户联系接口的应用) | 需有“企业客户权限->客户基础信息”权限 | 配置了|[客户联系功能](#13473/配置可使用客户联系功能的成员) | 企业微信 2.8.10 |
 *   | single_kf_tools | 所有 | 需有“微信客服权限->获取基础信息”权限 | 所有 | 企业微信 3.1.10 |
 *
 * @compat WeCom >= 2.5.8
 *
 * @example
 * ```ts
 * ww.getCurExternalContact()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | getCurExternalContact:ok | 执行成功 |
 * | getCurExternalContact:fail no permission | 应用签名校验失败或应用不满足权限条件 |
 * | getCurExternalContact:fail without context of external contact | 当前页面入口不支持调用 |
 */
export declare function getCurExternalContact(params?: APIParams<IEmptyObject, {
    /**
     * 当前外部联系人的 userId
     */
    userId: string;
}>): Promise<CommonResult & {
    /**
     * 当前外部联系人的 userId
     */
    userId: string;
}>;
/**
 * 获取私密消息信息。
 *
 * @compat WeCom >= 3.1.8
 *
 * @limit
 * 本接口必须使用应用身份进行注册
 *
 * @example
 * ```ts
 * ww.getShareInfo({
 *   shareTicket: 'xxx'
 * })
 * ```
 */
export declare function getShareInfo(params: APIParams<{
    /**
     * getContext 接口返回的 shareTicket
     */
    shareTicket: string;
}, {
    /**
     * 转发信息的加密数据
     */
    encryptedData: string;
    /**
     * 加密算法的初始向量
     */
    iv: string;
}>): Promise<CommonResult & {
    /**
     * 转发信息的加密数据
     */
    encryptedData: string;
    /**
     * 加密算法的初始向量
     */
    iv: string;
}>;
/**
 * 页面在聊天附件栏中打开时,隐藏聊天附件栏的发送按钮。开发者可以通过[分享消息到当前会话](#sendChatMessage)接口灵活适配对页面或页面中具体内容的转发。
 *
 * @limit
 * - 仅支持聊天附件栏进入的页面调用,即 getContext 返回 `entry` 为 `chat_attachment` 的场景
 * - 本接口必须使用应用身份进行注册
 *
 * @compat WeCom >= 3.1.6
 *
 * @example
 * ```
 * ww.hideChatAttachmentMenu({
 *  menuList: ["sendMessage"]
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | hideChatAttachmentMenu:ok | 执行成功 |
 * | hideChatAttachmentMenu:invalid menuList | menuList不合法 |
 * | hideChatAttachmentMenu:without context of chat_attachment | 未在聊天附件栏打开场景下调用 |
 */
export declare function hideChatAttachmentMenu(params: APIParams<{
    /**
     * 要隐藏的菜单项
     *
     * 目前只有 'sendMessage'
     */
    menuList: string[];
}>): Promise<CommonResult>;
/**
 * 跳转到小程序。
 *
 * @note
 * 打开小程序时如果需要关闭页面,需同步调用 closeWindow,不推荐用 setTimeout 延迟关闭。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 跳转的小程序必须属于页面所属的企业
 * - 跳转的小程序必须已关联到工作台
 * - 应用必须与要跳转的小程序应用同属于一个企业
 * - 跳转的小程序必须已经关联到工作台
 *
 * @compat WeCom >= 3.0.36
 *
 * @example
 * ```ts
 * ww.launchMiniprogram({
 *   appid: 'wx062f7a5507909000',
 *   path: 'pages/home/index'
 * })
 * ```
 */
export declare function launchMiniprogram(params: APIParams<{
    /**
     * 跳转的小程序 appid
     */
    appid: string;
    /**
     * 跳转的小程序内页面路径及参数
     */
    path?: string;
}>): Promise<CommonResult>;
/**
 * 在企业微信内快速跳转到添加客户的界面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置了客户联系功能
 *
 * @compat WeCom iOS, Android >= 3.0.36
 *
 * @example
 * ```ts
 * ww.navigateToAddCustomer()
 * ```
 */
export declare function navigateToAddCustomer(params?: APIParams): Promise<CommonResult>;
/**
 * 进入微信客服消息界面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有“微信客服->获取基础信息”权限
 * - 当前企业须已开启「微信客服」应用
 * - 当前成员须是指定客服账号的坐席
 *
 * @compat WeCom iOS, Android, PC >= 3.1.12
 *
 * @example
 * ```ts
 * ww.navigateToKfChat({
 *   openKfId: 'wkAJ2GCAAAZSfhHCt7IFSvLKtMPxyAAA',
 *   externalUserId: 'wmAJ2GCAAAZSfhHCt7IFSvLKtMPxyBBB'
 * })
 * ```
 */
export declare function navigateToKfChat(params: APIParams<{
    /**
     * 客服账号 ID
     */
    openKfId: string;
    /**
     * 微信客户 ID
     *
     * 若没指定,则跳转到客服账号的消息列表界面
     *
     * @compat WeCom >= 3.1.18
     */
    externalUserId?: string;
}>): Promise<CommonResult>;
/**
 * 共享收货地址。
 *
 * @see https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#共享收货地址接口
 */
export declare function openAddress(params?: APIParams<IEmptyObject, {
    /**
     * 收货人姓名
     */
    userName: string;
    /**
     * 邮编
     */
    postalCode: string;
    /**
     * 国标收货地址第一级地址(省)
     */
    provinceName: string;
    /**
     * 国标收货地址第二级地址(市)
     */
    cityName: string;
    /**
     * 国标收货地址第三级地址(国家)
     */
    countryName: string;
    /**
     * 详细收货地址信息
     */
    detailInfo: string;
    /**
     * 收货地址国家码
     */
    nationalCode: string;
    /**
     * 收货人手机号码
     */
    telNumber: string;
}>): Promise<CommonResult & {
    /**
     * 收货人姓名
     */
    userName: string;
    /**
     * 邮编
     */
    postalCode: string;
    /**
     * 国标收货地址第一级地址(省)
     */
    provinceName: string;
    /**
     * 国标收货地址第二级地址(市)
     */
    cityName: string;
    /**
     * 国标收货地址第三级地址(国家)
     */
    countryName: string;
    /**
     * 详细收货地址信息
     */
    detailInfo: string;
    /**
     * 收货地址国家码
     */
    nationalCode: string;
    /**
     * 收货人手机号码
     */
    telNumber: string;
}>;
/**
 * 打开应用评价页面。
 *
 * 第三方应用可以使用该接口提供按钮,让用户快速打开应用评价页面。
 *
 * @compat WeCom iOS, Android, PC >= 4.0.2
 *
 * @limit
 * - 本接口必须使用应用身份进行注册,
 * - 仅第三方应用可调用
 * - 对成员授权的应用,当前用户在应用可见范围内,可以进行应用评价
 * - 管理员授权的应用,当前用户在可见范围内,或者当前用户为超管或有应用管理权限的分管,可以进行应用评价
 *
 * @example
 * ```
 * ww.openAppComment()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | openAppComment:ok| 执行成功 |
 * | openAppComment:fail:no permission | 调用人身份不符合 |
 * | openAppComment:fail:unknown app | 应用信息获取失败 |
 * | openAppComment:fail:unsupported app type | 应用类型不符合要求 |
 * | openAppComment:fail | 其它错误 |
 */
export declare function openAppComment(params?: APIParams): Promise<CommonResult>;
/**
 * 获取设备数据授权。
 *
 * 唤起设备选择列表,企业管理员选择设备后,应用可以通过云端接口获取到设备上报的数据。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有智慧硬件接口权限
 * - 仅第三方应用使用
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```ts
 * ww.openAppDeviceDataAuth()
 * ```
 */
export declare function openAppDeviceDataAuth(params?: APIParams): Promise<CommonResult>;
export declare enum OpenAppManagePageType {
    /**
     * 应用权限详情页
     */
    permission = "permission",
    /**
     * 数据与智能专区权限授权页
     *
     * 需要满足:
     *
     * - 企业访问者身份为超级管理员
     * - 应用需要满足勾选了“数据与智能专区权限”(注:该权限目前灰度开放)
     * - 应用类型为第三方应用/代开发应用(注:不支持上下游共享应用)
     */
    datazone_permission = "datazone_permission"
}
/**
 * 打开应用管理页面。
 *
 * 应用可以使用该接口提供按钮,让企业管理员快速打开应用的管理页面。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前用户需要是企业超级管理员,或具有应用管理权限
 *
 * @compat WeCom >= 4.0.2
 *
 * @example
 * ```
 * ww.openAppManage({
 *      page: "permission",
 *      suiteId: "wwabcdefghijk",
 *    })
 * ```
 */
export declare function openAppManage(params?: APIParams<{
    /**
     * 指定跳转的页面地址,不指定时跳转至应用管理首页
     */
    page?: OpenAppManagePageType;
    /**
     * 指定跳转的关联应用
     *
     * - 不指定时,表示为跳转到 agentConfig 注册应用的管理页
     * - 指定时,表示为跳转的其他应用管理页,目前仅支持会话内容存档应用
     *
     * @limit
     * 服务商应用调用时,指定的 suiteid 必须为同服务商的应用,应用与当前企业需要有授权关系,且当前用户必须是企业超级管理员。
     */
    suiteId?: string;
}>): Promise<CommonResult>;
/**
 * 进入应用购买页面。
 *
 * 第三方应用可以使用该接口提供按钮,让用户可快速进入应用购买流程。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前用户应在应用的可见范围内
 * - 仅第三方应用可调用
 *
 * @compat WeCom >= 4.1.6
 *
 * @example
 * ```
 * ww.openAppPurchase()
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | openAppPurchase:ok | 执行成功 |
 * | openAppPurchase:fail:no permission | 应用签名校验失败,或成员不在应用的可见范围内 |
 * | openAppPurchase:fail | 其它错误 |
 */
export declare function openAppPurchase(params: APIParams<IEmptyObject>): Promise<CommonResult>;
export declare enum EnvVersion {
    release = "release",// 正式版
    trial = "trial",// 体验版
    develop = "develop"
}
/**
 * 商户小程序跳转微信支付分小程序。
 *
 * @see https://pay.weixin.qq.com/wiki/doc/apiv3/payscore.php?chapter=29_3&index=3
 */
export declare function openBusinessView(params: APIParams<{
    /**
     * 固定配置:wxpayScoreEnable
     */
    businessType: "wxpayScoreEnable";
    /**
     * 使用 querystring 方式传递参数
     *
     * 格式为 key=value&key2=value2,其中 value、value2 需要进行 url encode 处理
     */
    queryString?: string;
    /** */
    envVersion?: string;
}, {
    /** */
    extraData?: IAnyObject;
}>): Promise<CommonResult & {
    /** */
    extraData?: IAnyObject;
}>;
/**
 * 查看设备。
 *
 * @limit
 * 调用者必须拥有指定 deviceSn 的管理权限。
 *
 * @note
 * 若开发者需要在 web 端引导跳转设备管理,可以构造链接跳转:`https://work.weixin.qq.com/wework_admin/frame#hardware/device?sn={{DEVICESN}}`。
 *
 * @compat WeCom iOS, Android >= 2.8.2
 *
 * @example
 * ```ts
 * ww.openDeviceProfile({
 *   deviceSn: 'QYWX001'
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | openDeviceProfile:ok | 执行成功 |
 * | openDeviceProfile:fail_device_permission_denied | 管理员无设备管理权限 |
 * | openDeviceProfile:fail_device_not_found | 不存在此设备 |
 */
export declare function openDeviceProfile(params: APIParams<{
    /**
     * 已绑定的设备SN
     */
    deviceSn: string;
}>): Promise<CommonResult>;
/**
 * 打开会话。
 *
 * @limit
 * - 内部群最多 2000 人,外部群最多 500 人
 * - 若创建的会话包含微信联系人,群成员人数不能超过 40 人
 * - 第三方应用与代开发应用必须使用应用身份进行注册
 *
 * @compat WeCom >= 2.0.0
 *
 * @example
 * ```ts
 * ww.openEnterpriseChat({
 *   groupName: '讨论组',
 *   userIds: [
 *     'zhangsan',
 *     'lisi'
 *   ],
 *   externalUserIds: [
 *     'wmEAlECwAAHrbWYDOK5u3Bf13xlYDAAA',
 *     'wmEAlECwAAHibWYDOK5u3Af13xlYDAAA'
 *   ]
 * })
 * ```
 */
export declare function openEnterpriseChat(params?: APIParams<{
    /**
     * 会话名称,创建单聊时可以忽略
     */
    groupName?: string;
    /**
     * 参与会话的企业成员列表
     */
    userIds?: string | string[];
    /**
     * 参与会话的外部联系人列表
     *
     * 通过 selectExternalContact 接口获得
     *
     * @compat WeCom >= 2.4.20
     */
    externalUserIds?: string | string[];
    /**
     * 打开已有会话的 chatId
     *
     * 目前仅支持打开客户群,若传入则忽略其他参数
     *
     * 使用该参数必须使用应用身份注册
     *
     * @compat WeCom >= 3.0.36
     */
    chatId?: string;
}, {
    /**
     * 当前群聊 ID
     *
     * 使用应用身份注册的场景下返回
     *
     * @compat WeCom >= 3.0.36
     */
    chatId: string;
}>): Promise<CommonResult & {
    /**
     * 当前群聊 ID
     *
     * 使用应用身份注册的场景下返回
     *
     * @compat WeCom >= 3.0.36
     */
    chatId: string;
}>;
/**
 * 打开已有群聊并可选发送一条链接消息(link消息)。支持打开企业内部群、外部群、互联群。
 *
 * @compat WeCom >= 3.1.8
 *
 * @limit
 * 本接口必须使用应用身份进行注册
 *
 * @example
 * ```ts
 * ww.openExistedChatWithMsg({
 *   chatId: 'chatId123',
 *   msg: {
 *     msgtype: 'link',
 *     link: {
 *       title: 'title1',
 *       desc: 'desc1',
 *       url: 'link1',
 *       imgUrl: 'imgurl1'
 *     }
 *   }
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | openExistedChatWithMsg:ok | 执行成功 |
 * | openExistedChatWithMsg:fail_unsupported_msgtype | msgtype不合法 |
 * | openExistedChatWithMsg:fail_msg_link_missing_url | msg.link.url未传入 |
 */
export declare function openExistedChatWithMsg(params: APIParams<{
    /**
     * 打开的群聊 ID
     */
    chatId: string;
    /**
     * 发送的链接消息。不传则表示仅进入群聊,不发消息
     *
     * @compat WeCom iOS, Android >= 3.1.8; WeCom PC, Mac >= 4.0.2
     */
    msg?: LinkMessage;
}>): Promise<CommonResult>;
/**
 * 进入应用客服会话。
 *
 * 第三方应用可以使用该接口提供按钮,让用户快速打开应用客服的会话。。
 *
 * @compat WeCom iOS, Android >= 3.1.18; WeCom PC, Mac >= 4.1.6
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 仅第三方应用可调用
 * - 第三方应用需要提前配置客服
 * - 当前用户需要有添加外部联系人权限
 *
 * @example
 * ```
 * ww.openThirdAppServiceChat()
 * ```
 */
export declare function openThirdAppServiceChat(params?: APIParams): Promise<CommonResult>;
export declare enum OpenUserProfileType {
    /**
     * 企业成员
     */
    internal = 1,
    /**
     * 外部联系人
     */
    external = 2
}
/**
 * 唤起成员或外部联系人的个人信息页面。
 *
 * @compat WeCom >= 2.4.20
 *
 * @limit
 * - 第三方应用调用时,需使用应用身份进行注册
 *
 * @example
 * ```ts
 * ww.openUserProfile({
 *   type: 1,
 *   userid: 'wmEAlECwAAHrbWYDetiu3Af13xlYDAAA'
 * })
 * ```
 */
export declare function openUserProfile(params: APIParams<{
    /**
     * 用户类型
     */
    type: OpenUserProfileType;
    /**
     * 企业成员或外部联系人的用户 ID
     */
    userid: string;
}>): Promise<CommonResult>;
export declare enum PrintFileIdType {
    /**
     * mediaid
     */
    mediaid = 1,
    /**
     * url
     */
    url = 2,
    /**
     * localId
     *
     * 可通过以下方式获得:
     * 1. [从会话选择文件](#34301)
     * 2. [拍照或从手机相册中选图接口](#14915)
     */
    localId = 4
}
/**
 * 发起文件打印。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有“设备信息-打印扫描设备-发起文件打印权限”授权
 * - 当前触发调用人员身份需要在应用的可见范围内
 * - 当前企业有安装企业微信打印设备
 * - 仅第三方应用使用
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```ts
 * ww.printFile({
 *   fileId: 'fileId',
 *   fileIdType: 1,
 *   fileName: 'fileName.jpg'
 * })
 * ```
 */
export declare function printFile(params: APIParams<{
    /**
     * 文件 ID
     *
     * 可以是 media_id、文件下载 url 或本地文件路径
     */
    fileId: string;
    /**
     * 文件 ID 类型
     */
    fileIdType: PrintFileIdType;
    /**
     * 文件名
     *
     * 仅当 fileIdType 为 mediaid 或 url 时需要传入
     */
    fileName?: string;
}, {
    /**
     * 调用结果
     */
    result: {
        /**
         * 打印任务 ID
         */
        jobId: string;
    };
}>): Promise<CommonResult & {
    /**
     * 调用结果
     */
    result: {
        /**
         * 打印任务 ID
         */
        jobId: string;
    };
}>;
export declare enum InTalkType {
    /**
     * 当前不在任何通话中
     */
    None = "None",
    /**
     * 视频会议中
     */
    HWOpenTalk = "HWOpenTalk",
    /**
     * voip通话中
     */
    VoIP = "VoIP",
    /**
     * 系统通话中
     */
    SystemCall = "SystemCall"
}
/**
 * 查询当前是否在视频会议。
 *
 * @compat WeCom >= 2.5.0
 *
 * @example
 * ```ts
 * ww.queryCurrHWOpenTalk()
 * ```
 */
export declare function queryCurrHWOpenTalk(params?: APIParams<IEmptyObject, {
    /**
     * 当前通话的类型
     */
    inTalkType: InTalkType;
    /**
     * 如果当前通话类型为视频会议,会将当前会议码票据(enterHWOpenTalk 中携带的 ticket)回传
     */
    ticket: string;
}>): Promise<CommonResult & {
    /**
     * 当前通话的类型
     */
    inTalkType: InTalkType;
    /**
     * 如果当前通话类型为视频会议,会将当前会议码票据(enterHWOpenTalk 中携带的 ticket)回传
     */
    ticket: string;
}>;
/**
 * 发起退款。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有对外收款权限
 * - 发起的用户必须在应用可见范围并实名
 * - 只允许退款由应用本身发起的收款
 *
 * @compat WeCom >= 4.0.12
 *
 * @example
 * ```ts
 * ww.refundExternalPayment({
 *   paymentId: 'xxxx',
 *   outTradeNo: 'yyyy',
 *   refundFee: 100,
 *   refundComment: '7天无理由退货'
 * })
 * ```
 */
export declare function refundExternalPayment(params: APIParams<{
    /**
     * 收款项目 ID,在[发起对外收款](#39955)中返回
     */
    paymentId: string;
    /**
     * 收款单号,每笔支付对应一个商户单号
     */
    outTradeNo: string;
    /**
     * 退款金额
     *
     * 单位为分,要求低于该次付款的金额,要求低于该次付款的金额。若为空,将退回该次付款的全额
     */
    refundFee?: number;
    /**
     * 退款说明,不超过32个字,可为空。若为空或者超出最大长度,唤起退款页面时,客户端会忽略该字段,由用户填写
     */
    refundComment?: string;
}>): Promise<CommonResult>;
/**
 * 保存用户选择的审批选项。
 *
 * 用户在网页中修改审批选项时,调用该接口保存用户的选择。
 *
 * @note
 * - 接口仅用于审批设置外部选项场景,请勿用作其他场景
 * - 网页应该做好深色模式适配
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有审批权限
 *
 * @compat WeCom >= 4.0.18
 *
 * @example
 * ```ts
 * ww.saveApprovalSelectedItems({
 *   key: 'key',
 *   selectedData: [
 *     {
 *       key: 'item-1',
 *       value: '选项1'
 *     },
 *     {
 *       key: 'item-2',
 *       value: '选项2'
 *     }
 *   ]
 * })
 * ```
 */
export declare function saveApprovalSelectedItems(params: APIParams<{
    /**
     * 从 URL 中获取到的 key
     */
    key: string;
    /**
     * 选中的选项
     */
    selectedData: SelectedDataItem[];
}>): Promise<CommonResult>;
export declare enum ScanQRCodeType {
    /**
     * 扫描二维码
     */
    qrCode = "qrCode",
    /**
     * 扫描条形码
     */
    barCode = "barCode"
}
/**
 * 调起企业微信扫一扫。
 *
 * @example
 * ```ts
 * ww.scanQRCode({
 *   needResult: true,
 *   scanType: ['qrCode']
 * })
 * ```
 */
export declare function scanQRCode(params?: APIParams<{
    /**
     * 扫描结果是否由企业微信处理
     *
     * 为 false 时直接返回扫描结果
     *
     * @default false
     */
    needResult?: boolean;
    /**
     * 扫码类型
     */
    scanType?: ScanQRCodeType[];
}, {
    /**
     * 扫码结果,needResult为true时返回
     */
    resultStr?: string;
}>): Promise<CommonResult & {
    /**
     * 扫码结果,needResult为true时返回
     */
    resultStr?: string;
}>;
export declare enum InputCorpGroupContactMode {
    /**
     * 单选
     */
    single = "single",
    /**
     * 多选
     */
    multi = "multi"
}
export declare enum InputCorpGroupContactType {
    /**
     * 选择部门
     */
    department = "department",
    /**
     * 选择成员
     */
    user = "user"
}
export interface InputExternalDepartment {
    /**
     * Corp ID
     */
    corpId: string;
    /**
     * 部门 ID
     */
    departmentId: string;
}
export interface InputExternalUser {
    /**
     * Corp ID
     */
    corpId: string;
    /**
     * 成员 ID
     */
    userId?: string;
    /**
     * 成员 OpenUserID
     */
    openUserId?: string;
}
export interface OutputDepartment {
    /**
     * 部门 ID
     */
    id: string;
}
export interface OutputUser {
    /**
     * 成员 ID,仅自建应用返回
     */
    id?: string;
    /**
     * 成员 OpenUserID,仅第三方应用返回
     */
    openUserId?: string;
}
export interface OutputExternalDepartment {
    /**
     * Corp ID
     */
    corpId: string;
    /**
     * 部门 ID
     */
    id: string;
}
export interface OutputExternalUser {
    /**
     * Corp ID
     */
    corpId: string;
    /**
     * 成员 ID,仅自建应用返回
     */
    id?: string;
    /**
     * 成员 OpenUserID,仅第三方应用返回
     */
    openUserId?: string;
}
/**
 * 企业互联/上下游选人
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 该接口仅可选择应用可见范围内的成员和部门
 *
 * @compat WeCom iOS, Android, PC >= 3.1.6
 *
 * @note
 * 自建应用调用该接口时userid返回的是企业内部的userid,对于服务商该字段返回的是open_userid,同一个服务商,不同应用获取到企业内同一个成员的open_userid是相同的,最多64个字节
 *
 * @example
 * ```ts
 * ww.selectCorpGroupContact({
 *   fromDepartmentId: -1,
 *   mode: 'single',
 *   type: ['department', 'user'],
 *   selectedDepartmentIds: ['2','3'],
 *   selectedUserIds: ['lisi','lisi2'],
 *   selectedOpenUserIds: ['wabc3','wbcde'],
 *   selectedChainDepartmentIds: [
 *     {
 *       corpId: 'ww3333',
 *       departmentId: '2'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       departmentId: '3'
 *     }
 *   ],
 *   selectedChainUserIds: [
 *     {
 *       corpId: 'ww3333',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     }
 *   ],
 *   selectedCorpGroupDepartmentIds: [
 *     {
 *       corpId: 'ww3333',
 *       departmentId: '2'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       departmentId: '3'
 *     }
 *   ],
 *   selectedCorpGroupUserIds: [
 *     {
 *       corpId: 'ww3333',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     }
 *   ]
 * })
 * ```
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | selectCorpGroupContact:ok | 执行成功 |
 * | selectCorpGroupContact:fail no permission | 应用身份鉴权失败 |
 *
 */
export declare function selectCorpGroupContact(params: APIParams<{
    /**
     * 从指定的部门开始展示
     *
     * - -1 表示从自己所在部门开始
     * - 0 表示从最上层开始
     *
     * 移动端,当需要展开的部门不在应用可见范围内,则从应用的可见范围开始展开
     */
    fromDepartmentId: number;
    /**
     * 选择模式
     */
    mode: InputCorpGroupContactMode;
    /**
     * 选择限制类型,指定一个或者多个
     */
    type: InputCorpGroupContactType[];
    /**
     * 已选部门 ID 列表,用于多次选人时可重入
     */
    selectedDepartmentIds?: string[];
    /**
     * 已选用户 ID 列表,用于多次选人时可重入
     * 仅自建应用使用,第三方应用会忽略该字段
     */
    selectedUserIds?: string[];
    /**
     * 已选用户 OpenUserID 列表,用于多次选人时可重入
     * 仅第三方应用使用,自建应用会忽略该字段
     */
    selectedOpenUserIds?: string[];
    /**
     * 已选上下游部门列表,用于多次选人时可重入
     *
     * @compat WeCom >= 3.1.20
     */
    selectedChainDepartmentIds?: InputExternalDepartment[];
    /**
     * 已选上下游用户列表,用于多次选人时可重入
     *
     * @compat WeCom >= 3.1.20
     */
    selectedChainUserIds?: InputExternalUser[];
    /**
     * 已选企业互联部门列表,用于多次选人时可重入
     */
    selectedCorpGroupDepartmentIds?: InputExternalDepartment[];
    /**
     * 已选企业互联用户列表
     */
    selectedCorpGroupUserIds?: InputExternalUser[];
}, {
    result: {
        /**
         * 已选的部门列表
         */
        departmentList: OutputDepartment[];
        /**
         * 已选的成员列表
         */
        userList: OutputUser[];
        /**
         * 已选企业互联部门列表
         */
        corpGroupDepartmentList: OutputExternalDepartment[];
        /**
         * 已选企业互联用户列表
         */
        corpGroupUserList: OutputExternalUser[];
        /**
         * 已选上下游部门列表
         *
         * @compat WeCom >= 3.1.20
         */
        chainDepartmentList: OutputExternalDepartment[];
        /**
         * 已选上下游用户列表
         *
         * @compat WeCom >= 3.1.20
         */
        chainUserList: OutputExternalUser[];
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 已选的部门列表
         */
        departmentList: OutputDepartment[];
        /**
         * 已选的成员列表
         */
        userList: OutputUser[];
        /**
         * 已选企业互联部门列表
         */
        corpGroupDepartmentList: OutputExternalDepartment[];
        /**
         * 已选企业互联用户列表
         */
        corpGroupUserList: OutputExternalUser[];
        /**
         * 已选上下游部门列表
         *
         * @compat WeCom >= 3.1.20
         */
        chainDepartmentList: OutputExternalDepartment[];
        /**
         * 已选上下游用户列表
         *
         * @compat WeCom >= 3.1.20
         */
        chainUserList: OutputExternalUser[];
    };
}>;
export declare enum SelectEnterpriseContactMode {
    /**
     * 单选
     */
    single = "single",
    /**
     * 多选
     */
    multi = "multi"
}
export declare enum SelectEnterpriseContactType {
    /**
     * 选择部门
     */
    department = "department",
    /**
     * 选择成员
     */
    user = "user"
}
/**
 * 选择通讯录成员。
 *
 * @compat WeCom >= 1.3.11; WeChat iOS, Android >= 6.5.10
 *
 * @example
 * ```ts
 * ww.selectEnterpriseContact({
 *   fromDepartmentId: -1,
 *   mode: 'multi',
 *   type: ['department', 'user'],
 *   selectedDepartmentIds: ['2', '3'],
 *   selectedUserIds: ['lisi', 'lisi2']
 * })
 * ```
 */
export declare function selectEnterpriseContact(params: APIParams<{
    /**
     * 从指定的部门开始展示
     *
     * - -1 表示从自己所在部门开始
     * - 0 表示从最上层开始
     */
    fromDepartmentId: number;
    /**
     * 选择模式
     */
    mode: SelectEnterpriseContactMode;
    /**
     * 选择限制类型
     *
     * 指定 department、user 中的一个或者多个
     */
    type: SelectEnterpriseContactType[];
    /**
     * 已选部门 ID 列表
     */
    selectedDepartmentIds?: string[];
    /**
     * 已选用户 ID 列表
     */
    selectedUserIds?: string[];
}, {
    result: {
        /**
         * 已选的部门列表
         */
        departmentList: Array<{
            /**
             * 部门 ID
             */
            id: string;
            /**
             * 部门名称,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            name: string;
        }>;
        /**
         * 已选的成员列表
         */
        userList: Array<{
            /**
             * 成员 ID
             */
            id: string;
            /**
             * 成员名称,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            name: string;
            /**
             * 成员头像,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            avatar: string;
        }>;
    };
}>): Promise<CommonResult & {
    result: {
        /**
         * 已选的部门列表
         */
        departmentList: Array<{
            /**
             * 部门 ID
             */
            id: string;
            /**
             * 部门名称,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            name: string;
        }>;
        /**
         * 已选的成员列表
         */
        userList: Array<{
            /**
             * 成员 ID
             */
            id: string;
            /**
             * 成员名称,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            name: string;
            /**
             * 成员头像,从2019年12月30日起,对新创建第三方应用不再返回,2020年6月30日起,对所有历史第三方应用不再返回,第三方页面需要通过[通讯录展示组件](#17172)来展示名字。
             */
            avatar: string;
        }>;
    };
}>;
export declare enum SelectExternalContactType {
    /**
     * 展示全部外部联系人列表
     */
    all = 0,
    /**
     * 仅展示未曾选择过的外部联系人
     */
    unselected = 1
}
/**
 * 唤起该成员的外部联系人列表,并返回员工选择的外部联系人的 userId。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用须配置[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置[客户联系功能](#13473/开始开发)
 *
 * @compat WeCom >= 2.4.20
 *
 * @example
 * ```ts
 * ww.selectExternalContact({
 *   filterType: 0
 * })
 * ```
 */
export declare function selectExternalContact(params?: APIParams<{
    /**
     * 展示列表类型
     *
     * @compat WeCom >= 2.4.22
     */
    filterType?: SelectExternalContactType;
}, {
    /**
     * 外部联系人 userId 列表
     */
    userIds: string[];
}>): Promise<CommonResult & {
    /**
     * 外部联系人 userId 列表
     */
    userIds: string[];
}>;
export declare enum SelectPrivilegedContactMode {
    /**
     * 单选
     */
    single = "single",
    /**
     * 多选
     */
    multi = "multi"
}
/**
 * 返回 ticket 的选人接口。
 *
 * 用于第三方应用唤起选择企业通讯录成员,用户选择的范围区分成两部分回传给第三方应用:
 *
 * 1. 过滤应用可见范围后的 openUserId 列表
 * 2. 完整列表的 ticket,ticket 后续可用于[创建群聊](#30292) 或者[发送模板消息](#94515)
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 仅第三方应用(非通讯录应用)可调用
 *
 * @compat WeCom >= 3.1.8
 *
 * @example
 * ```ts
 * ww.selectPrivilegedContact({
 *   fromDepartmentId: -1,
 *   mode: 'multi',
 *   selectedContextContact: 1
 *   selectedOpenUserIds: ['xxx', 'yyy'],
 *   selectedTickets: ['ticket1', 'ticket2']
 * })
 * ```
 */
export declare function selectPrivilegedContact(params: APIParams<{
    /**
     * 从指定的部门开始展示
     *
     * - -1 表示从自己所在部门开始
     * - 0 表示从最上层开始
     */
    fromDepartmentId: number;
    /**
     * 选择模式
     */
    mode: SelectPrivilegedContactMode;
    /**
     * 是否勾选当前环境的参与者
     *
     * 例如在群「+」号打开,默认勾选当前群成员
     */
    selectedContextContact: boolean;
    /**
     * 已选用户 OpenID 列表
     *
     * 仅在 mode 为 multi 时支持
     *
     * @compat WeCom >= 3.1.12
     */
    selectedOpenUserIds?: string;
    /**
     * 已选Ticket列表
     *
     * 仅在 mode 为 multi 时支持
     *
     * @compat WeCom >= 3.1.12
     */
    selectedTickets?: string[];
}, {
    /**
     * 当调用成功时返回,对应用户选择的内容
     */
    result: {
        /**
         * 对应用户的选择集合凭证
         */
        selectedTicket: string;
        /**
         * ticket 的有效时长
         *
         * 单位为秒,默认为 7 天
         */
        expiresIn: number;
        /**
         * 选择的用户数
         */
        selectedUserCount: string;
        /**
         * 选择的可见范围内的用户列表
         */
        userList: Array<{
            openUserId: string;
        }>;
    };
}>): Promise<CommonResult & {
    /**
     * 当调用成功时返回,对应用户选择的内容
     */
    result: {
        /**
         * 对应用户的选择集合凭证
         */
        selectedTicket: string;
        /**
         * ticket 的有效时长
         *
         * 单位为秒,默认为 7 天
         */
        expiresIn: number;
        /**
         * 选择的用户数
         */
        selectedUserCount: string;
        /**
         * 选择的可见范围内的用户列表
         */
        userList: Array<{
            openUserId: string;
        }>;
    };
}>;
export interface SendChatMessageCommonParams {
    /**
     * 发送完成后进入会话
     *
     * @compat WeCom >= 3.1.10
     */
    enterChat?: boolean;
}
export interface SendChatMessageImageMessage {
    /**
     * 消息类型
     */
    msgtype: "image";
    image: {
        /**
         * 图片的素材 ID
         */
        mediaid?: string;
    };
}
export type SendChatMessage = TextMessage | SendChatMessageImageMessage | VideoMessage | FileMessage | NewsMessage | MiniprogramMessage | MenuMessage | ShopMessage;
/**
 * 从聊天工具栏或附件栏打开的页面中向当前会话发送消息
 *
 * @note
 * 消息格式支持文本(“text”),图片(“image”),视频(“video”),文件(“file”),H5(“news”),小程序(“miniprogram”),菜单消息(“msgmenu”)和视频号商品(“channels_shop_product”)
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 仅从特定入口进入页面才可调用,可通过 getContext 接口进行判断
 * - 不同的入口对应用及用户有相应的限制
 *   | getContext 接口返回的 entry 值 | 自建应用 | 第三方应用 | 用户 | 支持的最低版本 |
 *   | --- | --- | --- | --- | --- |
 *   | single_chat_tools | 需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用) | 需有“企业客户权限->客户基础信息”权限 | 配置了|[配置了客户联系功能](#13473/配置可使用客户联系功能的成员) | 企业微信 2.8.10 |
 *   | group_chat_tools | 需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用) | 需有“企业客户权限->客户基础信息”权限 | 配置了|[配置了客户联系功能](#13473/配置可使用客户联系功能的成员) | 企业微信 2.8.10 |
 *   | group_chat_tools | 所有 | 需有「家校沟通」使用权限 | 所有 | 企业微信 3.0.36 |
 *   | group_chat_tools | 所有 | 需有「家校沟通」使用权限 | 所有 | 企业微信 4.0.8 |
 *   | chat_attachment | 所有 | 所有 | 所有 | 企业微信 3.1.6(mac 端暂不支持) |
 *   | single_kf_tools | 所有 | 需有“微信客服权限->获取基础信息”权限 | 所有 | 企业微信 3.1.10 |
 * - 消息中的 mediaId 可通过[素材管理](#10112)接口获得,暂不支持公众平台的 mediaId
 *
 * @compat WeCom >= 2.8.10
 *
 * @example
 * ```ts
 * ww.sendChatMessage({
 *   msgtype: 'text',
 *   text: {
 *     content: '你好'
 *   }
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | sendChatMessage:ok | 执行成功 |
 * | claimClassAdmin:fail without context of external contact | 当前页面打开的场景不支持调用 |
 * | claimClassAdmin:fail no permission | 应用签名错误,或不满足权限要求 |
 * | claimClassAdmin:fail invalid imgUrl | 小程序消息封面图不合法 |
 */
export declare function sendChatMessage(params: APIParams<SendChatMessageCommonParams & SendChatMessage>): Promise<CommonResult>;
/**
 * 设置私密消息。
 *
 * @compat WeCom >= 3.1.8
 *
 * @limit
 * 本接口必须使用应用身份进行注册
 *
 * @example
 * ```ts
 * ww.setShareAttr({
 *   withShareTicket: true,
 *   state: 'STATE'
 * })
 * ```
 */
export declare function setShareAttr(params?: APIParams<{
    /**
     * 分享消息是否携带 share ticket
     */
    withShareTicket?: boolean;
    /**
     * 详见 [私密消息](#94495/state的作用)
     */
    state?: string;
}>): Promise<CommonResult>;
export type ShareToExternalAttachment = ImageMessage | LinkMessage | MiniprogramMessage | VideoMessage | FileMessage;
export interface ShareToExternalCompleteParams {
    /**
     * @compat WeCom >= 3.1.6
     */
    text?: {
        /**
         * 文本内容
         *
         * @limit
         * 最多支持 4000 字
         */
        content: string;
    };
    /**
     * @limit
     * 最多传入 9 个
     *
     * @compat WeCom >= 3.1.6
     */
    attachments?: ShareToExternalAttachment[];
}
export type ShareToExternalParams = ShareToExternalCompleteParams | NewsMessage["news"];
/**
 * 具有客户联系权限的企业成员,可通过该接口将文本内容和附件传递到客户群群发、发送到客户群。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置了[客户联系功能](#13473/配置可使用客户联系功能的成员)
 *
 * @note
 * - 为防止滥用,同一个成员每日向一个客户最多可群发一条消息,每次群发最多可选 2000 个最近活跃的客户群
 *
 * @compat WeCom >= 2.8.7
 *
 * @example
 * ```ts
 * // WeCom >= 3.1.6
 * ww.shareToExternalChat({
 *   chatIds: ["wr2GCAAAXAAAaWJHDDGasdadAAA","wr2GCAAAXBBBaWJHDDGasdadBBB"],
 *   text: {
 *     content: '企业微信'
 *   },
 *   attachments: [
 *     {
 *       msgtype: 'image',
 *       image: {
 *         imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png'
 *       }
 *     }
 *   ]
 * })
 * // 或者
 * ww.shareToExternalChat({
 *   title: '', // 消息的标题
 *   desc: '', // 消息的描述
 *   link: '', // 消息链接
 *   imgUrl: '' // 消息封面
 * })
 * ```
 */
export declare function shareToExternalChat(params: APIParams<ShareToExternalParams & {
    /**
     * 客户群ID
     * @compat WeCom iOS, Android, PC >= 4.1.10
     */
    chatIds?: string[];
}>): Promise<CommonResult>;
/**
 * 具有客户联系权限的企业成员,可通过该接口将文本内容和附件传递到群发助手、发送给客户。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置了[客户联系功能](#13473/配置可使用客户联系功能的成员)
 *
 * @note
 * - 为防止滥用,同一个成员每日向一个客户最多可群发一条消息,每次群发最多可选 20000 个客户
 *
 *
 * @compat WeCom >= 2.8.7
 *
 * @example
 * ```ts
 * // WeCom >= 3.1.6
 * ww.shareToExternalContact({
 *   externalUserIds: ["wr2GCAAAXAAAaWJHDDGasdadAAA","wr2GCAAAXBBBaWJHDDGasdadBBB"],
 *   text: {
 *     content: '企业微信'
 *   },
 *   attachments: [
 *     {
 *       msgtype: 'image',
 *       image: {
 *         imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png'
 *       }
 *     }
 *   ]
 * })
 *
 * // 或者
 * ww.shareToExternalContact({
 *   title: '', // 消息的标题
 *   desc: '', // 消息的描述
 *   link: '', // 消息链接
 *   imgUrl: '' // 消息封面
 * })
 * ```
 */
export declare function shareToExternalContact(params: APIParams<ShareToExternalParams & {
    /**
     * 客户列表
     * @compat WeCom iOS, Android, PC >= 4.1.10
     */
    externalUserIds?: string[];
}>): Promise<CommonResult>;
export type ShareToExternalMomentsAttachment = ImageMessage | LinkMessage | VideoMessage;
/**
 * 发表内容到客户朋友圈。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置了客户联系功能
 * - 当前成员必须在客户朋友圈使用范围
 * - 当前成员必须具备外部沟通管理成员使用权限
 *
 * @compat WeCom iOS, Android >= 3.1.12
 *
 * @example
 * ```ts
 * ww.shareToExternalMoments({
 *   text: {
 *     content: '企业微信'
 *   },
 *   attachments: [
 *     {
 *       msgtype: 'image',
 *       image: {
 *         imgUrl: 'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png'
 *       }
 *     }
 *   ]
 * })
 * ```
 */
export declare function shareToExternalMoments(params: APIParams<{
    /**
     * 文本消息
     */
    text?: {
        /**
         * 消息文本内容
         *
         * @limit
         * 最多支持 2000 字
         */
        content?: string;
    };
    /**
     * 附件
     *
     * @limit
     * 最多支持 9 张图片、1 个视频或 1 个链接
     */
    attachments?: Array<ShareToExternalMomentsAttachment>;
}>): Promise<CommonResult>;
/**
 * 发起无线投屏。
 *
 * @compat WeCom
 *
 * @limit
 * 仅支持第三方服务商接入。
 * 需要配合硬件设备使用,硬件接入流程参考 [无线投屏](#14789)。
 *
 * @example
 * ```ts
 * ww.startWecast()
 * ```
 */
export declare function startWecast(params?: APIParams): Promise<CommonResult>;
export declare enum OAType {
    /**
     * 发起审批
     */
    create_approval = "10001",
    /**
     * 查看审批详情
     */
    view_approval = "10002"
}
export declare enum OaExtDataType {
    /**
     * 链接
     */
    link = "link",
    /**
     * 文本
     */
    text = "text"
}
/**
 * 在应用页面中发起审批流程。之后审批流程的每次状态变化都会通知开发者,开发者可按需进行拓展开发。具体参见[审批流程引擎](#14584)。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用必须具有审批权限
 *
 * @compat WeCom >= 2.5.0
 *
 * @example
 * ```ts
 * ww.thirdPartyOpenPage({
 *   oaType: '10001',
 *   templateId: '46af67a118a6ebf000002',
 *   thirdNo: 'thirdNo',
 *   extData: {
 *     fieldList: [
 *       {
 *         type: 'text',
 *         title: '采购类型',
 *         value: '市场活动'
 *       },
 *       {
 *         type: 'link',
 *         title: '订单链接',
 *         value: 'https://work.weixin.qq.com'
 *       }
 *     ]
 *   }
 * })
 * ```
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | 已存在相同的审批编号 | oaType为10001时,传入的thirdNo已经被其他审批单占用。 |
 * | 审批申请不存在 | oaType为10002时,在历史记录中,传入的thirdNo对应的审批单不存在。 |
 * | 审批模板ID不正确 | 调用接口时传入了错误的templateId |
 * | 应用ID不正确 | 使用了错误的 agentId |
 */
export declare function thirdPartyOpenPage(params: APIParams<{
    /**
     * 操作类型
     */
    oaType: OAType;
    /**
     * 发起审批的模板 ID
     *
     * 可在第三方应用-审批接口中创建模板获取
     */
    templateId: string;
    /**
     * 审批单号
     *
     * 由开发者自行定义,不可重复
     */
    thirdNo: string;
    /**
     * 详情数据,用于审批详情页信息展示
     * 开发者可利用此特性,在发起审批时,传入需要申请人、审批人、抄送人看到的信息
     * 若需用户填写数据,可在自行使用表单收集,并传入exData中,用于展示
     */
    extData: {
        fieldList: Array<{
            /**
             * 标题
             */
            title?: string;
            /**
             * 字段类型
             *
             * link 类型仅在审批详情页展示
             */
            type?: OaExtDataType;
            /**
             * 字段值
             */
            value?: string;
        }>;
    };
}>): Promise<CommonResult>;
/**
 * 变更企业互联/上下游群成员
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 当前成员必须在应用的可见范围
 * - 仅支持往群里添加企业内部成员/企业互联成员
 * - 仅限企业互联/上下游企业可调用
 * - 当前成员为下游企业成员时,需要打开上下游空间中的“允许外部单位之间互相查看”配置才可以往群里添加其他下游企业成员
 *
 * @compat WeCom >= 3.1.8
 *
 * @example
 * ```ts
 * ww.updateCorpGroupChat({
 *   chatId: 'CHATID',
 *   userIdsToAdd: ['lisi', 'lisi2'],
 *   openUserIdsToAdd: ['wabc3', 'wbcde'],
 *   corpGroupUserIdsToAdd: [
 *     {
 *       corpId: 'ww3333',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     },
 *     {
 *       corpId: 'ww4444',
 *       userId: 'userid123',
 *       openUserId: 'wx1111'
 *     }
 *   ]
 * })
 * ```
 *
 * @throws
 * | errMsg | 说明 |
 * | --- | --- |
 * | updateCorpGroupChat:ok | 执行成功 |
 * | updateCorpGroupChat:fail no permission | 应用签名校验失败 |
 * | updateCorpGroupChat:fail exceed user id list size | 超过人数上限 |
 * | updateCorpGroupChat:fail invalid parameter | 参数不合法 |
 * | updateCorpGroupChat:fail unsupported chat | 不支持群类型 |
 */
export declare function updateCorpGroupChat(params: APIParams<{
    /**
     * 通过企业微信创建群聊接口返回的 chatId
     */
    chatId: string;
    /**
     * 新增的企业成员列表
     *
     * @limit
     * 仅自建应用使用
     */
    userIdsToAdd?: string;
    /**
     * 新增的企业成员列表
     *
     * @limit
     * 仅第三方应用使用
     */
    openUserIdsToAdd?: string;
    /**
     * 新增的互联企业成员列表
     */
    corpGroupUserIdsToAdd?: Array<{
        /**
         * 企业 CorpID
         */
        corpId: string;
        /**
         * 成员 ID
         *
         * @limit
         * 仅自建应用使用
         */
        userId?: string;
        /**
         * 成员 OpenUserID
         *
         * @limit
         * 仅第三方应用使用
         */
        openUserId?: string;
    }>;
}>): Promise<CommonResult>;
/**
 * 变更群成员。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 目前仅支持添加企业内部成员
 * - 仅支持客户群调用
 *
 * @compat WeCom iOS, Android, PC >= 3.0.36
 *
 * @example
 * ```ts
 * ww.updateEnterpriseChat({
 *   chatId: 'CHATID',
 *   userIdsToAdd: [
 *     'zhangsan',
 *     'lisi'
 *   ]
 * })
 * ```
 */
export declare function updateEnterpriseChat(params: APIParams<{
    /**
     * 通过企业微信创建群聊接口返回的 chatId
     */
    chatId: string;
    /**
     * 参与会话的企业成员列表
     */
    userIdsToAdd: string | string[];
}>): Promise<CommonResult>;
/**
 * 设置朋友圈封面与签名。
 *
 * @compat WeCom iOS, Android >= 3.1.12
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 应用需有[客户联系功能权限](#13473/配置可使用客户联系接口的应用)
 * - 当前成员必须配置了客户联系功能
 * - 当前成员必须在客户朋友圈使用范围
 * - 当前成员必须具备外部沟通管理成员使用权限
 *
 * @note
 * 同时设置了签名跟封面url,客户端更新顺序为先更新签名,再更新封面图url(封面图若不符合要求会让用户重新调整)。
 *
 * @example
 * ```ts
 * ww.updateMomentsSetting({
 *   signature: '个性签名',
 *   imgUrl: 'https://work.weixin.qq.com/'
 * })
 * ```
 */
export declare function updateMomentsSetting(params: APIParams<{
    /**
     * 个性签名
     *
     * 空字符串表示清空个性签名
     *
     * @limit
     * 最多支持 30 字
     */
    signature?: string;
    /**
     * 朋友圈封面
     *
     * 封面图建议为正方形,尺寸建议为 1125*1125 像素
     */
    imgUrl?: string;
}>): Promise<CommonResult>;
/**
 * 保持屏幕常亮。
 *
 * 在企业微信内打开 H5 页面时,调用该接口让屏幕保持常亮。
 *
 * @note
 * 仅在当前页面生效,离开页面后设置失效。
 *
 * @limit
 * - 本接口必须使用应用身份进行注册
 * - 成员必须在应用可见范围内
 *
 * @compat @compat WeCom iOS, Android >= 4.0.20
 *
 * @example
 * ```ts
 * ww.setKeepScreenOn({
 *  keepScreenOn: true,
 * })
 * ```
 */
export declare function setKeepScreenOn(params: APIParams<{
    /**
     * 是否保持常亮
     */
    keepScreenOn: boolean;
}>): Promise<CommonResult>;
/**
 * JSAPI 类型
 */
export type CommonJSAPI<TParams = any, TSucc = any, TFail = any> = (params: APIParams<TParams, TSucc, TFail>) => Promise<CommonResult & TSucc>;
/**
 * 获取指定 JS 接口参数类型
 */
export type JSAPIParams<T extends CommonJSAPI> = T extends CommonJSAPI<infer R> ? R : never;
/**
 * 获取指定 JS 接口返回值类型
 */
export type JSAPIResult<T extends CommonJSAPI> = T extends CommonJSAPI<any, any, infer R> ? R : never;
/**
 * 获取指定 JS 事件参数类型
 */
export type JSAPICallbackParams<T extends (callback: APICallback<any>) => any> = T extends (callback: APICallback<infer R>) => any ? R : never;
/**
 * 触发或等待 config、agentConfig 完成
 *
 * @example
 * ```ts
 * await ww.ensureConfigReady()
 * ```
 */
export declare function ensureConfigReady(): Promise<CorpConfigInfo> | Promise<AgentConfigInfo>;
/**
 * WeixinJSBridge 是否已注入到 window
 */
export declare let isWeixinJSBridgeReady: boolean;
/**
 * 等待 WeixinJSBridge 注入到 window
 */
export declare let onWeixinJSBridgeReady: Promise<void>;
/**
 * 监听 JSSDK 未定义的事件
 *
 * @example
 * ```ts
 * ww.on('onBeaconsInRange', res => {
 *   console.log(res)
 * })
 * ```
 *
 * @param name 事件名称
 * @param callback 监听回调
 */
export declare function on<TEvent>(name: string, callback: (event: TEvent) => void): Promise<void>;
/**
 * 调用 JSSDK 未定义的 JSAPI
 *
 * @example
 * ```ts
 * ww.invoke('openEnterpriseChat', params, res => {
 *   console.log(res)
 * })
 * ```
 *
 * @param name JSAPI 名称
 * @param params JSAPI 参数
 * @param callback 回调函数
 * @returns JSAPI 返回值
 */
export declare function invoke<TResult = CommonResult>(name: string, params?: any, callback?: (res: TResult) => void): Promise<TResult>;
/**
 * 获取 config 或 agentConfig 传入的相关参数
 *
 * 用于外部 sdk 调用私有方法
 */
export declare function getVerifyParams(): {
    appId: string | undefined;
    verifyAppId: string | undefined;
    verifySignType: string;
    verifyTimestamp: string;
    verifyNonceStr: string;
    verifySignature: string;
} | undefined;
/**
 * **注意:页面上需要提前引入 `jwxwork-1.0.0.js`:**
 *
 * ```html
 * <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js" referrerpolicy="origin"></script>
 * ```
 *
 * 初始化[通讯录展示组件](#91958)。
 *
 * 在该接口返回成功后,可以直接调用通讯录展示组件的相关方法。
 *
 * @example
 * ```ts
 * ww.initOpenData()
 * ```
 */
export declare function initOpenData(params?: CommonParams<AgentConfigResult>): Promise<CommonResult & AgentConfigResult>;
declare const PANEL_JSAPI: {
    readonly selectEnterpriseContact: typeof selectEnterpriseContact;
    readonly shareAppMessage: typeof shareAppMessage;
};
export type AsyncGetter<T> = T | (() => T | Promise<T>);
export interface InnerStyle {
    /**
     * 光标样式
     */
    cursor: string;
}
export interface JSAPIPanelOptions<TApi extends CommonJSAPI> {
    /**
     * 将 iframe 挂载在指定容器元素
     *
     * 参数可以是一个 DOM 元素或 CSS 选择器
     */
    el?: string | Element;
    /**
     * OAuth 登录后企业微信返回的 web_token
     */
    webToken?: string;
    /**
     * 自定义 iframe body 样式
     */
    styles?: InnerStyle;
    /**
     * JSAPI 参数
     *
     * 可传入一个函数,返回需要调用的 JSAPI 参数
     */
    params: AsyncGetter<JSAPIParams<TApi> & CommonParams<JSAPIResult<TApi>>>;
    /**
     * 错误回调
     */
    onError?: (error: CommonResult) => void;
}
/**
 * 创建 JSAPI 触发面板。
 *
 * 在非企业微信内置浏览器环境下,开发者可以创建 JSAPI 触发面板。当用户点击面板时,内置的 iframe 将调起用户本地的企业微信客户端并调用指定的 JSAPI。
 *
 * @param name 要调用的 JSAPI 名称
 *
 * @limit
 * - 应用必须经过 SSO 登录获取 web_token
 * - 用户必须登录了企业微信桌面端且当前用户身份和页面身份一致
 */
export declare function createJSAPIPanel<TName extends keyof typeof PANEL_JSAPI>(name: TName, options: JSAPIPanelOptions<(typeof PANEL_JSAPI)[TName]>): {
    /**
     * JSAPI 触发面板的 iframe 元素
     */
    el: HTMLIFrameElement;
    /**
     * 卸载 JSAPI 触发面板
     */
    unmount(): void;
};
export interface CreateOpenDataFrameFactoryParams {
    /**
     * 全局错误回调
     *
     * 企业微信环境内,获取登录态失败时触发
     *
     * @param error 错误信息
     */
    handleError?: (error: unknown) => void;
    /**
     * 全局错误回调
     *
     * @deprecated 请使用 `handleError 回调
     *
     * @param error 错误信息
     */
    onError?: (error: unknown) => void;
}
export type OpenDataFrameInstance<TData = Record<string, any>, TMethods = Record<string, any>> = TMethods & OpenDataFrameBuiltin<TData>;
export interface OpenDataFrameBuiltin<TData> {
    /**
     * 组件根元素
     */
    el: HTMLElement;
    /**
     * 组件初始数据
     */
    data: TData;
    /**
     * 更新组件数据
     *
     * @param partialData 这次要改变的数据
     */
    setData(partialData: Record<string, unknown>): Promise<void>;
    /**
     * 销毁 open-data frame 组件
     */
    dispose(): void;
}
export interface ModalInfo {
    /** 弹窗 iframe URL */
    modalUrl: string;
    /** 弹窗大小 */
    modalSize?: {
        width: number;
        height: number;
    };
}
export interface CreateOpenDataFrameParams<TData, TMethods> {
    /** 组件父元素 */
    el?: HTMLElement | string;
    /** 初始化数据 */
    data?: TData;
    /** 模板 */
    template: string;
    /** 样式表 */
    style?: string;
    /**
     * 视图挂载成功回调
     */
    handleMounted?: () => void;
    /**
     * 视图更新成功回调
     */
    handleUpdated?: () => void;
    /**
     * 通用错误回调
     *
     * @param error 错误信息
     */
    handleError?: (error: unknown) => void;
    /**
     * 弹窗处理回调
     *
     * @returns 是否由开发者自行创建弹窗 iframe
     */
    handleModal?: (info: ModalInfo) => Promise<boolean | void> | boolean | void;
    /**
     * 通用错误回调
     *
     * @deprecated 请使用 `handleError 回调
     *
     * @param error 错误信息
     */
    error?: (error: unknown) => void;
    /**
     * 方法列表
     */
    methods?: TMethods & ThisType<OpenDataFrameInstance<TData, TMethods>>;
    /**
     * 其他回调事件
     */
    [key: string]: any;
}
/**
 * 创建 open-data frame 工厂对象。
 *
 * @compat WeCom >= 4.0.20
 *
 * @example
 * ```ts
 * const factory = ww.createOpenDataFrameFactory()
 * const instance = factory.createOpenDataFrame(options)
 *
 * containerEl.appendChild(instance.el)
 * ```
 */
export declare function createOpenDataFrameFactory(params?: CreateOpenDataFrameFactoryParams): {
    /**
     * 创建 open-data frame 组件
     */
    createOpenDataFrame: <TData extends Record<string, any>, TMethods extends Record<string, (...args: unknown[]) => unknown>>(options: CreateOpenDataFrameParams<TData, TMethods>) => OpenDataFrameInstance<TData, TMethods>;
};
export interface SecurityGatewayConfirmModalOptions {
    /**
     * 确认 ID
     */
    confirmId: string;
    /**
     * 点击确认或关闭按钮的回调
     *
     * 仅在桌面端环境生效
     *
     * @compat PC, Mac
     */
    onClose?: () => void;
}
/**
 * 显示确认安全网关配置页面。
 *
 * 在桌面端页面以 iframe 弹窗的形式覆盖在页面上;在移动端页面将跳转至确认页面,返回后页面需要主动确认 confirm_id 的确认情况。
 */
export declare function showSecurityGatewayConfirmModal(options: SecurityGatewayConfirmModalOptions): {
    /**
     * 弹窗面板的 iframe 元素
     */
    el: HTMLIFrameElement;
    /**
     * 卸载弹窗面板
     */
    unmount(): void;
} | undefined;
export interface WWLoginOptions {
    /**
     * 登录组件挂载元素
     *
     * 可以指定 `DOM` 元素或 `CSS` 选择器
     */
    el?: string | Element;
    /**
     * 登录参数
     */
    params: WWLoginParams;
    /**
     * 获取企业微信桌面端登录状态回调
     */
    onCheckWeComLogin?: (event: WWLoginCheckLoginResp) => void;
    /**
     * 企业微信登录成功回调
     *
     * 需配置 `redirect_type=callback`
     */
    onLoginSuccess?: (res: WWLoginSuccessResp) => void;
    /**
     * 企业微信登录错误回调
     *
     * [登录相关错误码](#45752/附录)
     */
    onLoginFail?: (res: WWLoginErrorResp) => void;
    /**
     * 打开企业微信客户端成功回调
     */
    onOpenInWecom?: () => void;
}
export interface WWLoginParams {
    /**
     * 登录类型
     */
    login_type?: WWLoginType;
    /**
     * AppID
     *
     * 登录类型为企业自建应用/服务商代开发应用时填企业 `CorpID`,第三方登录时填[登录授权 `SuiteID`](#45846/开启网页授权登录)
     */
    appid: string;
    /**
     * 企业自建应用/服务商代开发应用 `AgentID`
     */
    agentid?: string;
    /**
     * 登录成功重定向 `url`
     *
     * 无需进行 `URLEncode`
     */
    redirect_uri: string;
    /**
     * 登录 `state`
     *
     * 用于保持请求和回调的状态,授权请求后原样带回给企业。该参数可用于防止 `CSRF` 攻击(跨站请求伪造攻击),
     * 建议带上该参数,可设置为简单的随机数加 `session` 进行校验
     */
    state?: string;
    /**
     * 登录成功跳转类型
     */
    redirect_type?: WWLoginRedirectType;
    /**
     * 登录面板大小
     */
    panel_size?: WWLoginPanelSizeType;
    /**
     * 语言类型
     */
    lang?: WWLoginLangType;
    /**
     * 其他参数
     */
    [key: string]: any;
}
/**
 * 登录类型
 */
export declare enum WWLoginType {
    /**
     * [第三方应用登录](#45846)
     */
    serviceApp = "ServiceApp",
    /**
     * [企业自建应用登录](/document/path/98151)、[服务商代开发应用登录](/document/path/98173)
     */
    corpApp = "CorpApp"
}
/**
 * 语言类型
 */
export declare enum WWLoginLangType {
    /**
     * 中文
     */
    zh = "zh",
    /**
     * 英文
     */
    en = "en"
}
/**
 * 登录成功跳转类型
 */
export declare enum WWLoginRedirectType {
    /**
     * 默认 `top window` 顶层页面跳转
     */
    top = "top",
    /**
     * 通过 `onLoginSuccess` 回调用户授权 `code`,开发者自行处理跳转
     */
    callback = "callback",
    /**
     * 登录组件跳转
     */
    self = "self"
}
/**
 * 登录面板大小
 */
export declare enum WWLoginPanelSizeType {
    /**
     * 默认: 480x416px
     */
    middle = "middle",
    /**
     * 小尺寸: 320x380px
     */
    small = "small"
}
/**
 * 企业微信登录状态
 */
export interface WWLoginCheckLoginResp {
    /**
     * 企业微信桌面端是否已登录
     */
    isWeComLogin: boolean;
}
/**
 * 企业微信登录成功回调
 */
export interface WWLoginSuccessResp {
    /**
     * `Auth Code`
     */
    code: string;
}
/**
 * 企业微信登录错误回调
 */
export interface WWLoginErrorResp {
    /**
     * 错误码
     */
    errCode?: number;
    /**
     * 错误信息
     */
    errMsg?: string;
}
export interface WWLoginInstance {
    /**
     * 登录面板 `iframe` 元素
     */
    el: HTMLIFrameElement;
    /**
     * 卸载登录面板
     */
    unmount(): void;
}
/**
 * 初始化企业微信Web登录组件,创建登录面板。
 *
 * @example
 * ```ts
 * // 初始化登录组件
 * const wwLogin = ww.createWWLoginPanel({
 *   el: '#ww_login',
 *   params: {
 *     login_type: 'CorpApp',
 *     appid: 'wwbbb6a7b539f2xxxxx',
 *     agentid: '10000xx',
 *     redirect_uri: 'https://work.weixin.qq.com',
 *     state: 'loginState',
 *     redirect_type: 'callback',
 *   },
 *   onCheckWeComLogin({ isWeComLogin }) {
 *     console.log(isWeComLogin)
 *   },
 *   onLoginSuccess({ code }) {
 *     console.log({ code })
 *   },
 *   onLoginFail(err) {
 *     console.log(err)
 *   },
 * })
 * ```
 */
export declare function createWWLoginPanel(options: WWLoginOptions): WWLoginInstance;
export interface InvokeOptions {
    serialize?: boolean;
    transfer?: Transferable[];
    dropResult?: boolean;
}
export interface Ref {
    frame: object;
    invoke<TRes>(method: string, data: unknown, opts?: InvokeOptions): Promise<TRes>;
    subscribe<TData>(fn: (data: TData) => void): () => void;
}
export interface BindRes {
    width: number;
    height: number;
}
export declare class FrameCanvas {
    #private;
    constructor(ref: Ref, refId: number, info: BindRes);
    /**
     * canvas 元素宽度
     */
    get width(): number;
    set width(value: number);
    /**
     * canvas 元素高度
     */
    get height(): number;
    set height(value: number);
    /**
     * 通过 url 创建图片元素
     *
     * @param src 图片 url,只支持传入 data uri
     */
    createImage(src: string): HTMLImageElement;
    /**
     * 通过 ArrayBuffer 创建图片元素
     *
     * @param data 图片二进制数据
     * @param type 图片 MIME 类型
     */
    createImage(data: ArrayBuffer, type?: string): HTMLImageElement;
    /**
     * 获取 canvas 的上下文
     *
     * @param type 上下文类型,目前只支持 2d
     * @param attrs 渲染上下文配置
     */
    getContext(type: "2d", attrs?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D;
    /**
     * 添加事件监听器
     */
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    /**
     * 移除事件监听器
     */
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
}
/**
 * 获取 open-data frame 组件内的 canvas 元素。
 *
 * @param instance open-data frame 组件实例
 * @param refName 模板引用名称
 *
 * @example
 * ```ts
 * const canvas = await ww.getCanvas(frame, 'canvas')
 * const context = canvas.getContext('2d')
 * ```
 */
export declare function getCanvas(instance: OpenDataFrameInstance, refName: string): Promise<FrameCanvas | undefined>;
export interface FrameScrollToOptions {
    /**
     * 顶部距离
     */
    top?: number;
    /**
     * 左边界距离
     */
    left?: number;
}
export interface FrameScrollIntoViewOptions {
    /**
     * 定义垂直方向的对齐
     * @default 'start'
     */
    block?: "start" | "center" | "end" | "nearest";
    /**
     * 定义水平方向的对齐
     * @default 'nearest'
     */
    inline?: "start" | "center" | "end" | "nearest";
}
export interface ScrollViewContext {
    /**
     * 滚动至指定位置
     */
    scrollTo(options: FrameScrollToOptions): void;
    /**
     * 滚动至指定位置
     *
     * @param selector 元素选择器
     * @param options 滚动选项
     */
    scrollIntoView(selector: string, options?: FrameScrollIntoViewOptions): void;
}
/**
 * 创建 open-data frame 组件内指定 scroll-view 元素的上下文。
 *
 * @param instance open-data frame 组件实例
 * @param refName 模板引用名称
 *
 * @example
 * ```ts
 * const scrollView = await ww.createScrollViewContext(instance, 'scroll-view')
 *
 * scrollView.scrollTo({ top: 100 })
 * ```
 */
export declare function createScrollViewContext(instance: OpenDataFrameInstance, refName: string): Promise<ScrollViewContext | undefined>;
export interface NodeInfo {
    rect?: NodeRectInfo;
}
export interface NodeRectInfo {
    /**
     * 宽度
     */
    width: number;
    /**
     * 高度
     */
    height: number;
    /**
     * 上边界坐标
     */
    top: number;
    /**
     * 右边界坐标
     */
    right: number;
    /**
     * 下边界坐标
     */
    bottom: number;
    /**
     * 左边界坐标
     */
    left: number;
}
export interface GetNodeInfoFields {
    /**
     * 是否返回节点布局位置
     *
     * @default false
     */
    rect?: boolean;
}
/**
 * 获取节点的相关信息
 *
 * @param instance open-data frame 组件实例
 * @param refName 模板引用名称
 * @param fields 需要获取的字段
 *
 * @example
 * ```ts
 * ww.getNodeInfo(instance, 'node-ref')
 * ```
 */
export declare function getNodeInfo(instance: OpenDataFrameInstance, refName: string, fields: GetNodeInfoFields): Promise<NodeInfo | undefined>;
export interface GetSignatureOptions {
    /**
     * 用于签名的 jsapi ticket
     */
    ticket: string;
    /**
     * 生成签名的随机串
     */
    nonceStr?: string;
    /**
     * 生成签名的时间戳
     */
    timestamp?: number | string;
    /**
     * 当前页面的 URL
     */
    url?: string;
}
export interface GetSignatureResult {
    /**
     * 生成签名的时间戳
     */
    timestamp: number | string;
    /**
     * 生成签名的随机串
     */
    nonceStr: string;
    /**
     * jsapi 签名
     */
    signature: string;
}
/**
 * 根据 ticket 生成 jsapi 签名
 *
 * @param ticket 用于签名的 jsapi ticket
 */
export declare function getSignature(ticket: string): GetSignatureResult;
/**
 * 根据提供的参数生成 jsapi 签名
 */
export declare function getSignature(options: GetSignatureOptions): GetSignatureResult;
export declare const SDK_VERSION: string;
export declare const env: {
    isWeChat: boolean;
    isWeCom: boolean;
};
export declare const IS_WECOM_SDK = true;
 
export {};