@ecency/sdk 1.4.1 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ import { UseMutationOptions, MutationKey, QueryClient, QueryKey, InfiniteData, U
3
3
  import * as _hiveio_dhive from '@hiveio/dhive';
4
4
  import { Authority, SMTAsset, PrivateKey, AuthorityType, PublicKey, Operation, Client } from '@hiveio/dhive';
5
5
  import * as _hiveio_dhive_lib_chain_rc from '@hiveio/dhive/lib/chain/rc';
6
+ import { RCAccount } from '@hiveio/dhive/lib/chain/rc';
6
7
 
7
8
  interface AccountFollowStats {
8
9
  follower_count: number;
@@ -390,7 +391,10 @@ interface Payload$4 {
390
391
  profile: Partial<AccountProfile>;
391
392
  tokens: AccountProfile["tokens"];
392
393
  }
393
- declare function useAccountUpdate(username: string): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
394
+ declare function useAccountUpdate(username: string, accessToken: string | undefined, auth?: {
395
+ postingKey?: string | null;
396
+ loginType?: string | null;
397
+ }): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
394
398
 
395
399
  type Kind = "toggle-ignore" | "toggle-follow";
396
400
  declare function useAccountRelationsUpdate(reference: string | undefined, target: string | undefined, onSuccess: (data: Partial<AccountRelationship> | undefined) => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<{
@@ -404,13 +408,13 @@ interface Payload$3 {
404
408
  author: string;
405
409
  permlink: string;
406
410
  }
407
- declare function useBookmarkAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
411
+ declare function useBookmarkAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
408
412
 
409
- declare function useBookmarkDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
413
+ declare function useBookmarkDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
410
414
 
411
- declare function useAccountFavouriteAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
415
+ declare function useAccountFavouriteAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
412
416
 
413
- declare function useAccountFavouriteDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
417
+ declare function useAccountFavouriteDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
414
418
 
415
419
  interface Keys {
416
420
  owner: PrivateKey;
@@ -456,7 +460,7 @@ interface CommonPayload {
456
460
  email?: string;
457
461
  }
458
462
  type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError">;
459
- declare function useAccountUpdateRecovery(username: string | undefined, options: UpdateRecoveryOptions): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
463
+ declare function useAccountUpdateRecovery(username: string | undefined, code: string | undefined, options: UpdateRecoveryOptions): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
460
464
 
461
465
  interface Payload {
462
466
  currentKey: PrivateKey;
@@ -649,13 +653,10 @@ declare function getAccountFullQueryOptions(username: string | undefined): _tans
649
653
  };
650
654
  };
651
655
 
652
- /**
653
- * Get multiple accounts by usernames
654
- */
655
- declare function getAccountsQueryOptions(usernames: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<FullAccount[], Error, FullAccount[], (string | string[])[]>, "queryFn"> & {
656
- queryFn?: _tanstack_react_query.QueryFunction<FullAccount[], (string | string[])[], never> | undefined;
656
+ declare function getAccountsQueryOptions(usernames: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<FullAccount[], Error, FullAccount[], string[]>, "queryFn"> & {
657
+ queryFn?: _tanstack_react_query.QueryFunction<FullAccount[], string[], never> | undefined;
657
658
  } & {
658
- queryKey: (string | string[])[] & {
659
+ queryKey: string[] & {
659
660
  [dataTagSymbol]: FullAccount[];
660
661
  [dataTagErrorSymbol]: Error;
661
662
  };
@@ -771,7 +772,7 @@ declare function getAccountSubscriptionsQueryOptions(username: string | undefine
771
772
  };
772
773
  };
773
774
 
774
- declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
775
+ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
775
776
  queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
776
777
  } & {
777
778
  queryKey: (string | undefined)[] & {
@@ -780,7 +781,7 @@ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string |
780
781
  };
781
782
  };
782
783
 
783
- declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
784
+ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
784
785
  queryFn?: _tanstack_react_query.QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
785
786
  } & {
786
787
  queryKey: (string | undefined)[] & {
@@ -789,7 +790,7 @@ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string |
789
790
  };
790
791
  };
791
792
 
792
- declare function getAccountRecoveriesQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
793
+ declare function getAccountRecoveriesQueryOptions(username: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
793
794
  queryFn?: _tanstack_react_query.QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
794
795
  } & {
795
796
  queryKey: (string | undefined)[] & {
@@ -807,6 +808,15 @@ declare function getAccountPendingRecoveryQueryOptions(username: string | undefi
807
808
  };
808
809
  };
809
810
 
811
+ declare function getAccountReputationsQueryOptions(query: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountReputation[], Error, AccountReputation[], (string | number)[]>, "queryFn"> & {
812
+ queryFn?: _tanstack_react_query.QueryFunction<AccountReputation[], (string | number)[], never> | undefined;
813
+ } & {
814
+ queryKey: (string | number)[] & {
815
+ [dataTagSymbol]: AccountReputation[];
816
+ [dataTagErrorSymbol]: Error;
817
+ };
818
+ };
819
+
810
820
  declare const ACCOUNT_OPERATION_GROUPS: Record<OperationGroup, number[]>;
811
821
  declare const ALL_ACCOUNT_OPERATIONS: number[];
812
822
  type TxPage = Transaction[];
@@ -1049,6 +1059,51 @@ interface WaveTrendingTag {
1049
1059
  posts: number;
1050
1060
  }
1051
1061
 
1062
+ interface DraftMetadata {
1063
+ beneficiaries?: Array<{
1064
+ account: string;
1065
+ weight: number;
1066
+ }>;
1067
+ rewardType?: string;
1068
+ videos?: Record<string, any>;
1069
+ poll?: any;
1070
+ [key: string]: any;
1071
+ }
1072
+ interface Draft {
1073
+ body: string;
1074
+ created: string;
1075
+ modified: string;
1076
+ post_type: string;
1077
+ tags_arr: string[];
1078
+ tags: string;
1079
+ timestamp: number;
1080
+ title: string;
1081
+ _id: string;
1082
+ meta?: DraftMetadata;
1083
+ }
1084
+
1085
+ interface Schedule {
1086
+ _id: string;
1087
+ username: string;
1088
+ permlink: string;
1089
+ title: string;
1090
+ body: string;
1091
+ tags: string[];
1092
+ tags_arr: string;
1093
+ schedule: string;
1094
+ original_schedule: string;
1095
+ reblog: boolean;
1096
+ status: 1 | 2 | 3 | 4;
1097
+ message: string | null;
1098
+ }
1099
+
1100
+ interface UserImage {
1101
+ created: string;
1102
+ timestamp: number;
1103
+ url: string;
1104
+ _id: string;
1105
+ }
1106
+
1052
1107
  interface VoteHistoryPageParam {
1053
1108
  start: number;
1054
1109
  }
@@ -1078,6 +1133,15 @@ declare function getAccountVoteHistoryInfiniteQueryOptions<F>(username: string,
1078
1133
  };
1079
1134
  };
1080
1135
 
1136
+ declare function getProfilesQueryOptions(accounts: string[], observer?: string, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Profile[], Error, Profile[], (string | string[])[]>, "queryFn"> & {
1137
+ queryFn?: _tanstack_react_query.QueryFunction<Profile[], (string | string[])[], never> | undefined;
1138
+ } & {
1139
+ queryKey: (string | string[])[] & {
1140
+ [dataTagSymbol]: Profile[];
1141
+ [dataTagErrorSymbol]: Error;
1142
+ };
1143
+ };
1144
+
1081
1145
  type ProfileTokens = AccountProfile["tokens"];
1082
1146
  interface BuildProfileMetadataArgs {
1083
1147
  existingProfile?: AccountProfile;
@@ -1094,6 +1158,28 @@ declare function buildProfileMetadata({ existingProfile, profile, tokens, }: Bui
1094
1158
  */
1095
1159
  declare function parseAccounts(rawAccounts: any[]): FullAccount[];
1096
1160
 
1161
+ interface DynamicProps {
1162
+ hivePerMVests: number;
1163
+ base: number;
1164
+ quote: number;
1165
+ fundRewardBalance: number;
1166
+ fundRecentClaims: number;
1167
+ hbdPrintRate: number;
1168
+ hbdInterestRate: number;
1169
+ headBlock: number;
1170
+ totalVestingFund: number;
1171
+ totalVestingShares: number;
1172
+ virtualSupply: number;
1173
+ vestingRewardPercent: number;
1174
+ accountCreationFee: string;
1175
+ }
1176
+
1177
+ declare function votingPower(account: FullAccount): number;
1178
+ declare function powerRechargeTime(power: number): number;
1179
+ declare function downVotingPower(account: FullAccount): number;
1180
+ declare function rcPower(account: RCAccount): number;
1181
+ declare function votingValue(account: FullAccount, dynamicProps: DynamicProps, votingPowerValue: number, weight?: number): number;
1182
+
1097
1183
  declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, {
1098
1184
  operation: Operation;
1099
1185
  keyOrSeed: string;
@@ -1133,9 +1219,15 @@ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKey
1133
1219
  };
1134
1220
  };
1135
1221
 
1136
- declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"]): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
1222
+ declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, accessToken: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: {
1223
+ postingKey?: string | null;
1224
+ loginType?: string | null;
1225
+ }): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
1137
1226
 
1138
- declare function broadcastJson<T>(username: string | undefined, id: string, payload: T): Promise<any>;
1227
+ declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, accessToken?: string, auth?: {
1228
+ postingKey?: string | null;
1229
+ loginType?: string | null;
1230
+ }): Promise<any>;
1139
1231
 
1140
1232
  interface StoringUser {
1141
1233
  username: string;
@@ -1155,6 +1247,7 @@ declare const getRefreshToken: (username: string) => string | undefined;
1155
1247
 
1156
1248
  declare const CONFIG: {
1157
1249
  privateApiHost: string;
1250
+ imageHost: string;
1158
1251
  storage: Storage;
1159
1252
  storagePrefix: string;
1160
1253
  hiveClient: Client;
@@ -1176,6 +1269,11 @@ declare namespace ConfigManager {
1176
1269
  * @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
1177
1270
  */
1178
1271
  function setPrivateApiHost(host: string): void;
1272
+ /**
1273
+ * Set the image host
1274
+ * @param host - The image host URL (e.g., "https://images.ecency.com")
1275
+ */
1276
+ function setImageHost(host: string): void;
1179
1277
  /**
1180
1278
  * Set DMCA filtering lists
1181
1279
  * @param accounts - List of account usernames to filter (plain strings)
@@ -1206,22 +1304,6 @@ declare namespace EcencyQueriesManager {
1206
1304
  };
1207
1305
  }
1208
1306
 
1209
- interface DynamicProps {
1210
- hivePerMVests: number;
1211
- base: number;
1212
- quote: number;
1213
- fundRewardBalance: number;
1214
- fundRecentClaims: number;
1215
- hbdPrintRate: number;
1216
- hbdInterestRate: number;
1217
- headBlock: number;
1218
- totalVestingFund: number;
1219
- totalVestingShares: number;
1220
- virtualSupply: number;
1221
- vestingRewardPercent: number;
1222
- accountCreationFee: string;
1223
- }
1224
-
1225
1307
  declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
1226
1308
  queryFn?: _tanstack_react_query.QueryFunction<DynamicProps, string[], never> | undefined;
1227
1309
  } & {
@@ -1281,7 +1363,7 @@ declare function getTrendingTagsWithStatsQueryOptions(limit?: number): _tanstack
1281
1363
  };
1282
1364
  };
1283
1365
 
1284
- declare function getFragmentsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
1366
+ declare function getFragmentsQueryOptions(username: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
1285
1367
  queryFn?: _tanstack_react_query.QueryFunction<Fragment[], string[], never> | undefined;
1286
1368
  } & {
1287
1369
  queryKey: string[] & {
@@ -1308,6 +1390,24 @@ declare function getEntryActiveVotesQueryOptions(entry?: Entry$1): _tanstack_rea
1308
1390
  };
1309
1391
  };
1310
1392
 
1393
+ declare function getContentQueryOptions(author: string, permlink: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Entry$1, Error, Entry$1, string[]>, "queryFn"> & {
1394
+ queryFn?: _tanstack_react_query.QueryFunction<Entry$1, string[], never> | undefined;
1395
+ } & {
1396
+ queryKey: string[] & {
1397
+ [dataTagSymbol]: Entry$1;
1398
+ [dataTagErrorSymbol]: Error;
1399
+ };
1400
+ };
1401
+
1402
+ declare function getContentRepliesQueryOptions(author: string, permlink: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Entry$1[], Error, Entry$1[], string[]>, "queryFn"> & {
1403
+ queryFn?: _tanstack_react_query.QueryFunction<Entry$1[], string[], never> | undefined;
1404
+ } & {
1405
+ queryKey: string[] & {
1406
+ [dataTagSymbol]: Entry$1[];
1407
+ [dataTagErrorSymbol]: Error;
1408
+ };
1409
+ };
1410
+
1311
1411
  declare function getPostHeaderQueryOptions(author: string, permlink: string): Omit<_tanstack_react_query.UseQueryOptions<Entry$1 | null, Error, Entry$1 | null, string[]>, "queryFn"> & {
1312
1412
  initialData: Entry$1 | (() => Entry$1 | null) | null;
1313
1413
  queryFn?: _tanstack_react_query.QueryFunction<Entry$1 | null, string[]> | undefined;
@@ -1342,6 +1442,14 @@ declare function getDiscussionsQueryOptions(entry: Entry$1, order?: SortOrder, e
1342
1442
  [dataTagErrorSymbol]: Error;
1343
1443
  };
1344
1444
  };
1445
+ declare function getDiscussionQueryOptions(author: string, permlink: string, observer?: string, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Record<string, Entry$1> | null, Error, Record<string, Entry$1> | null, string[]>, "queryFn"> & {
1446
+ queryFn?: _tanstack_react_query.QueryFunction<Record<string, Entry$1> | null, string[], never> | undefined;
1447
+ } & {
1448
+ queryKey: string[] & {
1449
+ [dataTagSymbol]: Record<string, Entry$1> | null;
1450
+ [dataTagErrorSymbol]: Error;
1451
+ };
1452
+ };
1345
1453
 
1346
1454
  type PageParam$2 = {
1347
1455
  author: string | undefined;
@@ -1357,6 +1465,14 @@ declare function getAccountPostsInfiniteQueryOptions(username: string | undefine
1357
1465
  [dataTagErrorSymbol]: Error;
1358
1466
  };
1359
1467
  };
1468
+ declare function getAccountPostsQueryOptions(username: string | undefined, filter?: string, start_author?: string, start_permlink?: string, limit?: number, observer?: string, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Entry$1[], Error, Entry$1[], (string | number)[]>, "queryFn"> & {
1469
+ queryFn?: _tanstack_react_query.QueryFunction<Entry$1[], (string | number)[], never> | undefined;
1470
+ } & {
1471
+ queryKey: (string | number)[] & {
1472
+ [dataTagSymbol]: Entry$1[];
1473
+ [dataTagErrorSymbol]: Error;
1474
+ };
1475
+ };
1360
1476
 
1361
1477
  type PageParam$1 = {
1362
1478
  author: string | undefined;
@@ -1374,6 +1490,14 @@ declare function getPostsRankedInfiniteQueryOptions(sort: string, tag: string, l
1374
1490
  [dataTagErrorSymbol]: Error;
1375
1491
  };
1376
1492
  };
1493
+ declare function getPostsRankedQueryOptions(sort: string, start_author?: string, start_permlink?: string, limit?: number, tag?: string, observer?: string, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Entry$1[], Error, Entry$1[], (string | number)[]>, "queryFn"> & {
1494
+ queryFn?: _tanstack_react_query.QueryFunction<Entry$1[], (string | number)[], never> | undefined;
1495
+ } & {
1496
+ queryKey: (string | number)[] & {
1497
+ [dataTagSymbol]: Entry$1[];
1498
+ [dataTagErrorSymbol]: Error;
1499
+ };
1500
+ };
1377
1501
 
1378
1502
  interface BlogEntry {
1379
1503
  author: string;
@@ -1396,22 +1520,7 @@ declare function getReblogsQueryOptions(username?: string, activeUsername?: stri
1396
1520
  };
1397
1521
  };
1398
1522
 
1399
- interface Schedule {
1400
- _id: string;
1401
- username: string;
1402
- permlink: string;
1403
- title: string;
1404
- body: string;
1405
- tags: string[];
1406
- tags_arr: string;
1407
- schedule: string;
1408
- original_schedule: string;
1409
- reblog: boolean;
1410
- status: 1 | 2 | 3 | 4;
1411
- message: string | null;
1412
- }
1413
-
1414
- declare function getSchedulesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Schedule[], Error, Schedule[], (string | undefined)[]>, "queryFn"> & {
1523
+ declare function getSchedulesQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Schedule[], Error, Schedule[], (string | undefined)[]>, "queryFn"> & {
1415
1524
  queryFn?: _tanstack_react_query.QueryFunction<Schedule[], (string | undefined)[], never> | undefined;
1416
1525
  } & {
1417
1526
  queryKey: (string | undefined)[] & {
@@ -1420,30 +1529,7 @@ declare function getSchedulesQueryOptions(activeUsername: string | undefined): _
1420
1529
  };
1421
1530
  };
1422
1531
 
1423
- interface DraftMetadata {
1424
- beneficiaries?: Array<{
1425
- account: string;
1426
- weight: number;
1427
- }>;
1428
- rewardType?: string;
1429
- videos?: Record<string, any>;
1430
- poll?: any;
1431
- [key: string]: any;
1432
- }
1433
- interface Draft {
1434
- body: string;
1435
- created: string;
1436
- modified: string;
1437
- post_type: string;
1438
- tags_arr: string[];
1439
- tags: string;
1440
- timestamp: number;
1441
- title: string;
1442
- _id: string;
1443
- meta?: DraftMetadata;
1444
- }
1445
-
1446
- declare function getDraftsQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
1532
+ declare function getDraftsQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
1447
1533
  queryFn?: _tanstack_react_query.QueryFunction<Draft[], (string | undefined)[], never> | undefined;
1448
1534
  } & {
1449
1535
  queryKey: (string | undefined)[] & {
@@ -1452,14 +1538,7 @@ declare function getDraftsQueryOptions(activeUsername: string | undefined): _tan
1452
1538
  };
1453
1539
  };
1454
1540
 
1455
- interface UserImage {
1456
- created: string;
1457
- timestamp: number;
1458
- url: string;
1459
- _id: string;
1460
- }
1461
-
1462
- declare function getImagesQueryOptions(username?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1541
+ declare function getImagesQueryOptions(username?: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1463
1542
  queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
1464
1543
  } & {
1465
1544
  queryKey: (string | undefined)[] & {
@@ -1467,7 +1546,7 @@ declare function getImagesQueryOptions(username?: string): _tanstack_react_query
1467
1546
  [dataTagErrorSymbol]: Error;
1468
1547
  };
1469
1548
  };
1470
- declare function getGalleryImagesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1549
+ declare function getGalleryImagesQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1471
1550
  queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
1472
1551
  } & {
1473
1552
  queryKey: (string | undefined)[] & {
@@ -1560,17 +1639,29 @@ declare function getWavesTrendingTagsQueryOptions(host: string, hours?: number):
1560
1639
  };
1561
1640
  };
1562
1641
 
1563
- declare function useAddFragment(username: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1642
+ declare function getNormalizePostQueryOptions(post: {
1643
+ author?: string;
1644
+ permlink?: string;
1645
+ } | undefined, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Entry$1 | null, Error, Entry$1 | null, string[]>, "queryFn"> & {
1646
+ queryFn?: _tanstack_react_query.QueryFunction<Entry$1 | null, string[], never> | undefined;
1647
+ } & {
1648
+ queryKey: string[] & {
1649
+ [dataTagSymbol]: Entry$1 | null;
1650
+ [dataTagErrorSymbol]: Error;
1651
+ };
1652
+ };
1653
+
1654
+ declare function useAddFragment(username: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1564
1655
  title: string;
1565
1656
  body: string;
1566
1657
  }, unknown>;
1567
1658
 
1568
- declare function useEditFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1659
+ declare function useEditFragment(username: string, fragmentId: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1569
1660
  title: string;
1570
1661
  body: string;
1571
1662
  }, unknown>;
1572
1663
 
1573
- declare function useRemoveFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Response, Error, void, unknown>;
1664
+ declare function useRemoveFragment(username: string, fragmentId: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Response, Error, void, unknown>;
1574
1665
 
1575
1666
  type EntryWithPostId = Entry$1 & {
1576
1667
  post_id: number;
@@ -1584,6 +1675,11 @@ declare function toEntryArray(x: unknown): Entry$1[];
1584
1675
  declare function getVisibleFirstLevelThreadItems(container: WaveEntry): Promise<Entry$1[]>;
1585
1676
  declare function mapThreadItemsToWaveEntries(items: Entry$1[], container: WaveEntry, host: string): WaveEntry[];
1586
1677
 
1678
+ type ValidatePostCreatingOptions = {
1679
+ delays?: number[];
1680
+ };
1681
+ declare function validatePostCreating(author: string, permlink: string, attempts?: number, options?: ValidatePostCreatingOptions): Promise<void>;
1682
+
1587
1683
  type ActivityType = "post-created" | "post-updated" | "post-scheduled" | "draft-created" | "video-published" | "legacy-post-created" | "legacy-post-updated" | "legacy-post-scheduled" | "legacy-draft-created" | "legacy-video-published" | "perks-points-by-qr" | "perks-account-boost" | "perks-promote" | "perks-boost-plus" | "points-claimed" | "spin-rolled" | "signed-up-with-wallets" | "signed-up-with-email";
1588
1684
  declare function useRecordActivity(username: string | undefined, activityType: ActivityType): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
1589
1685
 
@@ -1711,7 +1807,7 @@ interface ThreeSpeakVideo {
1711
1807
  _id: string;
1712
1808
  }
1713
1809
 
1714
- declare function getAccountTokenQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
1810
+ declare function getAccountTokenQueryOptions(username: string | undefined, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
1715
1811
  queryFn?: _tanstack_react_query.QueryFunction<any, (string | undefined)[], never> | undefined;
1716
1812
  } & {
1717
1813
  queryKey: (string | undefined)[] & {
@@ -1720,7 +1816,7 @@ declare function getAccountTokenQueryOptions(username: string | undefined): _tan
1720
1816
  };
1721
1817
  };
1722
1818
 
1723
- declare function getAccountVideosQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
1819
+ declare function getAccountVideosQueryOptions(username: string | undefined, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
1724
1820
  queryFn?: _tanstack_react_query.QueryFunction<ThreeSpeakVideo[], (string | undefined)[], never> | undefined;
1725
1821
  } & {
1726
1822
  queryKey: (string | undefined)[] & {
@@ -1739,7 +1835,7 @@ declare const ThreeSpeakIntegration: {
1739
1835
  queries: typeof queries$1;
1740
1836
  };
1741
1837
 
1742
- declare function getDecodeMemoQueryOptions(username: string, memo: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
1838
+ declare function getDecodeMemoQueryOptions(username: string, memo: string, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
1743
1839
  queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
1744
1840
  } & {
1745
1841
  queryKey: string[] & {
@@ -1928,7 +2024,7 @@ interface GameClaim {
1928
2024
  score: number;
1929
2025
  }
1930
2026
 
1931
- declare function getGameStatusCheckQueryOptions(username: string | undefined, gameType: "spin"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
2027
+ declare function getGameStatusCheckQueryOptions(username: string | undefined, code: string | undefined, gameType: "spin"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
1932
2028
  queryFn?: _tanstack_react_query.QueryFunction<GetGameStatus, (string | undefined)[], never> | undefined;
1933
2029
  } & {
1934
2030
  queryKey: (string | undefined)[] & {
@@ -1937,7 +2033,7 @@ declare function getGameStatusCheckQueryOptions(username: string | undefined, ga
1937
2033
  };
1938
2034
  };
1939
2035
 
1940
- declare function useGameClaim(username: string | undefined, gameType: "spin", key: string): _tanstack_react_query.UseMutationResult<GameClaim, Error, void, unknown>;
2036
+ declare function useGameClaim(username: string | undefined, code: string | undefined, gameType: "spin", key: string): _tanstack_react_query.UseMutationResult<GameClaim, Error, void, unknown>;
1941
2037
 
1942
2038
  declare enum ROLES {
1943
2039
  OWNER = "owner",
@@ -2020,6 +2116,15 @@ declare function getCommunityContextQueryOptions(username: string | undefined, c
2020
2116
  };
2021
2117
  };
2022
2118
 
2119
+ declare function getCommunityQueryOptions(name: string | undefined, observer?: string | undefined, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Community | null, Error, Community | null, (string | undefined)[]>, "queryFn"> & {
2120
+ queryFn?: _tanstack_react_query.QueryFunction<Community | null, (string | undefined)[], never> | undefined;
2121
+ } & {
2122
+ queryKey: (string | undefined)[] & {
2123
+ [dataTagSymbol]: Community | null;
2124
+ [dataTagErrorSymbol]: Error;
2125
+ };
2126
+ };
2127
+
2023
2128
  /**
2024
2129
  * Get list of subscribers for a community
2025
2130
  *
@@ -2071,7 +2176,7 @@ declare function getCommunityPermissions({ communityType, userRole, subscribed,
2071
2176
  isModerator: boolean;
2072
2177
  };
2073
2178
 
2074
- declare function getNotificationsUnreadCountQueryOptions(activeUsername: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
2179
+ declare function getNotificationsUnreadCountQueryOptions(activeUsername: string | undefined, code: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
2075
2180
  initialData: number | (() => number);
2076
2181
  queryFn?: _tanstack_react_query.QueryFunction<number, (string | undefined)[]> | undefined;
2077
2182
  } & {
@@ -2319,7 +2424,7 @@ interface Announcement {
2319
2424
  auth: boolean;
2320
2425
  }
2321
2426
 
2322
- declare function getNotificationsInfiniteQueryOptions(activeUsername: string | undefined, filter?: NotificationFilter | undefined): _tanstack_react_query.UseInfiniteQueryOptions<ApiNotification[], Error, _tanstack_react_query.InfiniteData<ApiNotification[], unknown>, (string | undefined)[], string> & {
2427
+ declare function getNotificationsInfiniteQueryOptions(activeUsername: string | undefined, code: string | undefined, filter?: NotificationFilter | undefined): _tanstack_react_query.UseInfiniteQueryOptions<ApiNotification[], Error, _tanstack_react_query.InfiniteData<ApiNotification[], unknown>, (string | undefined)[], string> & {
2323
2428
  initialData: _tanstack_react_query.InfiniteData<ApiNotification[], string> | (() => _tanstack_react_query.InfiniteData<ApiNotification[], string>) | undefined;
2324
2429
  } & {
2325
2430
  queryKey: (string | undefined)[] & {
@@ -2328,7 +2433,7 @@ declare function getNotificationsInfiniteQueryOptions(activeUsername: string | u
2328
2433
  };
2329
2434
  };
2330
2435
 
2331
- declare function getNotificationsSettingsQueryOptions(activeUsername: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<ApiNotificationSetting, Error, ApiNotificationSetting, (string | undefined)[]>, "queryFn"> & {
2436
+ declare function getNotificationsSettingsQueryOptions(activeUsername: string | undefined, code: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<ApiNotificationSetting, Error, ApiNotificationSetting, (string | undefined)[]>, "queryFn"> & {
2332
2437
  initialData: ApiNotificationSetting | (() => ApiNotificationSetting);
2333
2438
  queryFn?: _tanstack_react_query.QueryFunction<ApiNotificationSetting, (string | undefined)[]> | undefined;
2334
2439
  } & {
@@ -2497,6 +2602,14 @@ interface RcDirectDelegationsResponse {
2497
2602
  next_start?: [string, string] | null;
2498
2603
  }
2499
2604
 
2605
+ interface IncomingRcDelegation {
2606
+ sender: string;
2607
+ amount: string;
2608
+ }
2609
+ interface IncomingRcResponse {
2610
+ list: IncomingRcDelegation[];
2611
+ }
2612
+
2500
2613
  interface ReceivedVestingShare {
2501
2614
  delegatee: string;
2502
2615
  delegator: string;
@@ -2607,6 +2720,15 @@ declare function getOutgoingRcDelegationsInfiniteQueryOptions(username: string,
2607
2720
  };
2608
2721
  };
2609
2722
 
2723
+ declare function getIncomingRcQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<IncomingRcResponse, Error, IncomingRcResponse, (string | undefined)[]>, "queryFn"> & {
2724
+ queryFn?: _tanstack_react_query.QueryFunction<IncomingRcResponse, (string | undefined)[], never> | undefined;
2725
+ } & {
2726
+ queryKey: (string | undefined)[] & {
2727
+ [dataTagSymbol]: IncomingRcResponse;
2728
+ [dataTagErrorSymbol]: Error;
2729
+ };
2730
+ };
2731
+
2610
2732
  declare function getReceivedVestingSharesQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
2611
2733
  queryFn?: _tanstack_react_query.QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
2612
2734
  } & {
@@ -2780,6 +2902,36 @@ declare function getMarketDataQueryOptions(coin: string, vsCurrency: string, fro
2780
2902
  };
2781
2903
  };
2782
2904
 
2905
+ declare function getTradeHistoryQueryOptions(limit?: number, startDate?: Date, endDate?: Date): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<OrdersDataItem[], Error, OrdersDataItem[], (string | number)[]>, "queryFn"> & {
2906
+ queryFn?: _tanstack_react_query.QueryFunction<OrdersDataItem[], (string | number)[], never> | undefined;
2907
+ } & {
2908
+ queryKey: (string | number)[] & {
2909
+ [dataTagSymbol]: OrdersDataItem[];
2910
+ [dataTagErrorSymbol]: Error;
2911
+ };
2912
+ };
2913
+
2914
+ interface ApiResponse<T> {
2915
+ status: number;
2916
+ data: T;
2917
+ }
2918
+ interface CurrencyRates {
2919
+ [currency: string]: {
2920
+ quotes: {
2921
+ [currency: string]: {
2922
+ last_updated: string;
2923
+ percent_change: number;
2924
+ price: number;
2925
+ };
2926
+ };
2927
+ };
2928
+ }
2929
+
2930
+ declare function getMarketData(coin: string, vsCurrency: string, fromTs: string, toTs: string): Promise<MarketData>;
2931
+ declare function getCurrencyRate(cur: string): Promise<number>;
2932
+ declare function getCurrencyTokenRate(currency: string, token: string): Promise<number>;
2933
+ declare function getCurrencyRates(): Promise<CurrencyRates>;
2934
+
2783
2935
  interface PointTransaction {
2784
2936
  id: number;
2785
2937
  type: number;
@@ -2928,6 +3080,11 @@ declare function getSearchPathQueryOptions(q: string): _tanstack_react_query.Omi
2928
3080
  };
2929
3081
  };
2930
3082
 
3083
+ declare function search(q: string, sort: string, hideLow: string, since?: string, scroll_id?: string, votes?: number): Promise<SearchResponse>;
3084
+ declare function searchAccount(q?: string, limit?: number, random?: number): Promise<AccountSearchResult[]>;
3085
+ declare function searchTag(q?: string, limit?: number, random?: number): Promise<TagSearchResult[]>;
3086
+ declare function searchPath(q: string): Promise<string[]>;
3087
+
2931
3088
  interface PromotePrice {
2932
3089
  duration: number;
2933
3090
  price: number;
@@ -2964,4 +3121,57 @@ declare function getBoostPlusAccountPricesQueryOptions(account: string, accessTo
2964
3121
  };
2965
3122
  };
2966
3123
 
2967
- export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveHbdStats, HiveSignerIntegration, type Interest, type JsonMetadata, type JsonPollMetadata, keychain as Keychain, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type StoringUser, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPostsInfiniteQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunitySubscribersQueryOptions, getCommunityType, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getLoginType, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRankedInfiniteQueryOptions, getPromotePriceQueryOptions, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, normalizeWaveEntryFromApi, parseAccounts, parseAsset, parseProfileMetadata, roleMap, searchQueryOptions, sortDiscussions, toEntryArray, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
3124
+ type BridgeParams = Record<string, unknown> | unknown[];
3125
+ declare function bridgeApiCall<T>(endpoint: string, params: BridgeParams): Promise<T>;
3126
+ declare function resolvePost(post: Entry$1, observer: string, num?: number): Promise<Entry$1>;
3127
+ declare function getPostsRanked(sort: string, start_author?: string, start_permlink?: string, limit?: number, tag?: string, observer?: string): Promise<Entry$1[] | null>;
3128
+ declare function getAccountPosts(sort: string, account: string, start_author?: string, start_permlink?: string, limit?: number, observer?: string): Promise<Entry$1[] | null>;
3129
+ declare function getPost(author?: string, permlink?: string, observer?: string, num?: number): Promise<Entry$1 | undefined>;
3130
+ declare function getPostHeader(author?: string, permlink?: string): Promise<Entry$1 | null>;
3131
+ declare function getDiscussion(author: string, permlink: string, observer?: string): Promise<Record<string, Entry$1> | null>;
3132
+ declare function getCommunity(name: string, observer?: string | undefined): Promise<Community | null>;
3133
+ declare function getCommunities(last?: string, limit?: number, query?: string | null, sort?: string, observer?: string): Promise<Community[] | null>;
3134
+ declare function normalizePost(post: unknown): Promise<Entry$1 | null>;
3135
+ declare function getSubscriptions(account: string): Promise<Subscription[] | null>;
3136
+ declare function getSubscribers(community: string): Promise<Subscription[] | null>;
3137
+ declare function getRelationshipBetweenAccounts(follower: string, following: string): Promise<AccountRelationship | null>;
3138
+ declare function getProfiles(accounts: string[], observer?: string): Promise<Profile[]>;
3139
+
3140
+ declare function signUp(username: string, email: string, referral: string): Promise<ApiResponse<Record<string, unknown>>>;
3141
+ declare function subscribeEmail(email: string): Promise<ApiResponse<Record<string, unknown>>>;
3142
+ declare function usrActivity(code: string | undefined, ty: number, bl?: string | number, tx?: string | number): Promise<void>;
3143
+ declare function getNotifications(code: string | undefined, filter: string | null, since?: string | null, user?: string | null): Promise<ApiNotification[]>;
3144
+ declare function saveNotificationSetting(code: string | undefined, username: string, system: string, allows_notify: number, notify_types: number[], token: string): Promise<ApiNotificationSetting>;
3145
+ declare function getNotificationSetting(code: string | undefined, username: string, token: string): Promise<ApiNotificationSetting>;
3146
+ declare function markNotifications(code: string | undefined, id?: string): Promise<Record<string, unknown>>;
3147
+ declare function addImage(code: string | undefined, url: string): Promise<Record<string, unknown>>;
3148
+ declare function uploadImage(file: File, token: string, signal?: AbortSignal): Promise<{
3149
+ url: string;
3150
+ }>;
3151
+ declare function deleteImage(code: string | undefined, imageId: string): Promise<Record<string, unknown>>;
3152
+ declare function addDraft(code: string | undefined, title: string, body: string, tags: string, meta: DraftMetadata): Promise<{
3153
+ drafts: Draft[];
3154
+ }>;
3155
+ declare function updateDraft(code: string | undefined, draftId: string, title: string, body: string, tags: string, meta: DraftMetadata): Promise<{
3156
+ drafts: Draft[];
3157
+ }>;
3158
+ declare function deleteDraft(code: string | undefined, draftId: string): Promise<Record<string, unknown>>;
3159
+ declare function addSchedule(code: string | undefined, permlink: string, title: string, body: string, meta: Record<string, unknown>, options: Record<string, unknown> | null, schedule: string, reblog: boolean): Promise<Record<string, unknown>>;
3160
+ declare function deleteSchedule(code: string | undefined, id: string): Promise<Record<string, unknown>>;
3161
+ declare function moveSchedule(code: string | undefined, id: string): Promise<Schedule[]>;
3162
+ declare function getPromotedPost(code: string | undefined, author: string, permlink: string): Promise<{
3163
+ author: string;
3164
+ permlink: string;
3165
+ } | "">;
3166
+ declare function onboardEmail(username: string, email: string, friend: string): Promise<Record<string, unknown>>;
3167
+
3168
+ interface HsTokenRenewResponse {
3169
+ username: string;
3170
+ access_token: string;
3171
+ refresh_token: string;
3172
+ expires_in: number;
3173
+ }
3174
+
3175
+ declare function hsTokenRenew(code: string): Promise<HsTokenRenewResponse>;
3176
+
3177
+ export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type Draft, type DraftMetadata, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveHbdStats, HiveSignerIntegration, type HsTokenRenewResponse, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, keychain as Keychain, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type StoringUser, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type UserImage, type ValidatePostCreatingOptions, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addSchedule, bridgeApiCall, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLoginType, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, powerRechargeTime, rcPower, resolvePost, roleMap, saveNotificationSetting, search, searchAccount, searchPath, searchQueryOptions, searchTag, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity, validatePostCreating, votingPower, votingValue };