@pear-protocol/symmio-client 0.2.14 → 0.2.15

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.
@@ -21,6 +21,9 @@ type SymmContextValue = {
21
21
  };
22
22
  declare function useSymmContext(): SymmContextValue;
23
23
 
24
+ /**
25
+ * Use case: Access the configured SYMM core client from context.
26
+ */
24
27
  declare function useSymmCoreClient(): SymmSDK | null;
25
28
 
26
29
  type UseSymmAuthParams = {
@@ -29,6 +32,9 @@ type UseSymmAuthParams = {
29
32
  walletClient?: WalletClient;
30
33
  siweDomain?: string;
31
34
  };
35
+ /**
36
+ * Use case: Manage SYMM auth token lifecycle (read, refresh, clear) for an address and chain.
37
+ */
32
38
  declare function useSymmAuth(params?: UseSymmAuthParams): {
33
39
  accessToken: string | null;
34
40
  authToken: string | null;
@@ -88,6 +94,9 @@ type SymmDelegationState = {
88
94
  openAccess?: boolean;
89
95
  closeAccess?: boolean;
90
96
  };
97
+ /**
98
+ * Use case: Read delegation access state for trading selectors and target account.
99
+ */
91
100
  declare function useSymmDelegation(params?: UseSymmDelegationParams): _tanstack_react_query.UseQueryResult<SymmDelegationState, Error>;
92
101
 
93
102
  type SymmInstantTradeActionArgs = {
@@ -8192,6 +8201,9 @@ declare function ensureInstantTradeReady(deps: ReturnType<typeof useInstantTrade
8192
8201
  target: `0x${string}`;
8193
8202
  selectors: readonly `0x${string}`[];
8194
8203
  }>;
8204
+ /**
8205
+ * Use case: Ensure instant-trade prerequisites (auth + delegation) are satisfied.
8206
+ */
8195
8207
  declare function useSymmInstantTradeEnsureReadyMutation(params: UseSymmInstantTradeParams, options?: {
8196
8208
  mutation?: SymmMutationConfig<Awaited<ReturnType<typeof ensureInstantTradeReady>>, Error, EnsureReadyRequest | undefined>;
8197
8209
  }): _tanstack_react_query.UseMutationResult<{
@@ -8200,6 +8212,9 @@ declare function useSymmInstantTradeEnsureReadyMutation(params: UseSymmInstantTr
8200
8212
  target: `0x${string}`;
8201
8213
  selectors: readonly `0x${string}`[];
8202
8214
  }, Error, EnsureReadyRequest | undefined, unknown>;
8215
+ /**
8216
+ * Use case: Execute an instant-trade action after readiness checks.
8217
+ */
8203
8218
  declare function useSymmInstantTradeExecuteMutation(params: UseSymmInstantTradeParams, options?: {
8204
8219
  mutation?: SymmMutationConfig<unknown, Error, SymmInstantTradeRequest>;
8205
8220
  }): _tanstack_react_query.UseMutationResult<unknown, Error, SymmInstantTradeRequest, unknown>;
@@ -8214,9 +8229,15 @@ type UseSymmAccountsClients = {
8214
8229
  publicClient?: PublicClient;
8215
8230
  walletClient?: WalletClient;
8216
8231
  };
8232
+ /**
8233
+ * Use case: Read on-chain subaccounts for a wallet via the MultiAccount contract.
8234
+ */
8217
8235
  declare function useSymmAccountsQuery(params?: UseSymmAccountsClients, options?: {
8218
8236
  query?: SymmQueryConfig;
8219
8237
  }): _tanstack_react_query.UseQueryResult<Account[], Error>;
8238
+ /**
8239
+ * Use case: Create a new on-chain subaccount.
8240
+ */
8220
8241
  declare function useSymmCreateAccountMutation(params?: UseSymmAccountsClients, options?: {
8221
8242
  mutation?: SymmMutationConfig<Hex, Error, {
8222
8243
  name: string;
@@ -8224,6 +8245,9 @@ declare function useSymmCreateAccountMutation(params?: UseSymmAccountsClients, o
8224
8245
  }): _tanstack_react_query.UseMutationResult<`0x${string}`, Error, {
8225
8246
  name: string;
8226
8247
  }, unknown>;
8248
+ /**
8249
+ * Use case: Rename an existing on-chain subaccount.
8250
+ */
8227
8251
  declare function useSymmEditAccountNameMutation(params?: UseSymmAccountsClients, options?: {
8228
8252
  mutation?: SymmMutationConfig<Hex, Error, {
8229
8253
  accountAddress: Address;
@@ -8234,18 +8258,27 @@ declare function useSymmEditAccountNameMutation(params?: UseSymmAccountsClients,
8234
8258
  name: string;
8235
8259
  }, unknown>;
8236
8260
 
8261
+ /**
8262
+ * Use case: Fetch paginated accounts from the SYMM core API for a user.
8263
+ */
8237
8264
  declare function useSymmAccountsApi(params: {
8238
8265
  userAddress?: Address;
8239
8266
  chainId?: number;
8240
8267
  query?: SymmQueryConfig;
8241
8268
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountsListResponse, Error>;
8242
8269
 
8270
+ /**
8271
+ * Use case: Fetch the total number of SYMM accounts owned by a user.
8272
+ */
8243
8273
  declare function useSymmAccountsLength(params: {
8244
8274
  userAddress?: Address;
8245
8275
  chainId?: number;
8246
8276
  query?: SymmQueryConfig;
8247
8277
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountsLengthResponse, Error>;
8248
8278
 
8279
+ /**
8280
+ * Use case: Fetch only accounts that currently have positions.
8281
+ */
8249
8282
  declare function useSymmAccountsWithPositions(params: {
8250
8283
  userAddress?: Address;
8251
8284
  chainId?: number;
@@ -8268,15 +8301,24 @@ type UseSymmApprovalParams = {
8268
8301
  collateralToken?: Address;
8269
8302
  query?: SymmQueryConfig;
8270
8303
  };
8304
+ /**
8305
+ * Use case: Read allowance/balance and compute approval state for a collateral token amount.
8306
+ */
8271
8307
  declare function useSymmApprovalQuery(params: UseSymmApprovalParams): _tanstack_react_query.UseQueryResult<{
8272
8308
  state: ApprovalState;
8273
8309
  allowance: bigint;
8274
8310
  balance: bigint;
8275
8311
  }, Error>;
8312
+ /**
8313
+ * Use case: Submit ERC-20 approval for SYMM trading collateral.
8314
+ */
8276
8315
  declare function useSymmApproveMutation(params: UseSymmApprovalParams, options?: {
8277
8316
  mutation?: SymmMutationConfig<Hex, Error, bigint>;
8278
8317
  }): _tanstack_react_query.UseMutationResult<`0x${string}`, Error, bigint, unknown>;
8279
8318
 
8319
+ /**
8320
+ * Use case: Cancel a pending close request that requires auth token validation.
8321
+ */
8280
8322
  declare function useSymmCancelClose(options?: {
8281
8323
  mutation?: SymmMutationConfig<unknown, Error, {
8282
8324
  quoteId: string;
@@ -8291,6 +8333,9 @@ declare function useSymmCancelClose(options?: {
8291
8333
  overrideChainId?: number;
8292
8334
  }, unknown>;
8293
8335
 
8336
+ /**
8337
+ * Use case: Close an order using API auth token from request or shared auth store.
8338
+ */
8294
8339
  declare function useSymmCloseOrder(options?: {
8295
8340
  mutation?: SymmMutationConfig<unknown, Error, CloseOrderRequest>;
8296
8341
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.CloseOrderResponse, Error, CloseOrderRequest, unknown>;
@@ -8299,6 +8344,9 @@ type UseSymmDepositParams = {
8299
8344
  publicClient?: PublicClient;
8300
8345
  walletClient?: WalletClient;
8301
8346
  };
8347
+ /**
8348
+ * Use case: Deposit collateral into a SYMM subaccount.
8349
+ */
8302
8350
  declare function useSymmDepositMutation(params?: UseSymmDepositParams, options?: {
8303
8351
  mutation?: SymmMutationConfig<Hex, Error, {
8304
8352
  account: Address;
@@ -8308,6 +8356,9 @@ declare function useSymmDepositMutation(params?: UseSymmDepositParams, options?:
8308
8356
  account: Address;
8309
8357
  amount: bigint;
8310
8358
  }, unknown>;
8359
+ /**
8360
+ * Use case: Deposit and immediately allocate collateral in one transaction.
8361
+ */
8311
8362
  declare function useSymmDepositAndAllocateMutation(params?: UseSymmDepositParams, options?: {
8312
8363
  mutation?: SymmMutationConfig<Hex, Error, {
8313
8364
  account: Address;
@@ -8318,6 +8369,9 @@ declare function useSymmDepositAndAllocateMutation(params?: UseSymmDepositParams
8318
8369
  amount: bigint;
8319
8370
  }, unknown>;
8320
8371
 
8372
+ /**
8373
+ * Use case: Withdraw collateral from a SYMM subaccount.
8374
+ */
8321
8375
  declare function useSymmWithdraw(params?: {
8322
8376
  publicClient?: PublicClient;
8323
8377
  walletClient?: WalletClient;
@@ -8340,6 +8394,9 @@ type UseSymmCollateralParams = {
8340
8394
  publicClient?: PublicClient;
8341
8395
  walletClient?: WalletClient;
8342
8396
  };
8397
+ /**
8398
+ * Use case: Allocate collateral from wallet balance into a SYMM subaccount.
8399
+ */
8343
8400
  declare function useSymmAllocateCollateralMutation(params?: UseSymmCollateralParams, options?: {
8344
8401
  mutation?: SymmMutationConfig<Hex, Error, {
8345
8402
  subAccount: Address;
@@ -8349,6 +8406,9 @@ declare function useSymmAllocateCollateralMutation(params?: UseSymmCollateralPar
8349
8406
  subAccount: Address;
8350
8407
  amount: bigint;
8351
8408
  }, unknown>;
8409
+ /**
8410
+ * Use case: Deallocate collateral back from a SYMM subaccount using Muon signature.
8411
+ */
8352
8412
  declare function useSymmDeallocateCollateralMutation(params?: UseSymmCollateralParams, options?: {
8353
8413
  mutation?: SymmMutationConfig<Hex, Error, {
8354
8414
  subAccount: Address;
@@ -8358,6 +8418,9 @@ declare function useSymmDeallocateCollateralMutation(params?: UseSymmCollateralP
8358
8418
  subAccount: Address;
8359
8419
  amount: bigint;
8360
8420
  }, unknown>;
8421
+ /**
8422
+ * Use case: Transfer collateral internally between SYMM subaccounts.
8423
+ */
8361
8424
  declare function useSymmInternalTransferCollateralMutation(params?: UseSymmCollateralParams, options?: {
8362
8425
  mutation?: SymmMutationConfig<Hex, Error, {
8363
8426
  subAccount: Address;
@@ -8373,13 +8436,22 @@ type UseSymmSignatureParams = {
8373
8436
  publicClient?: PublicClient;
8374
8437
  walletClient?: WalletClient;
8375
8438
  };
8439
+ /**
8440
+ * Use case: Check whether the user has signed the current terms version.
8441
+ */
8376
8442
  declare function useSymmSignatureQuery(params?: UseSymmSignatureParams, options?: {
8377
8443
  query?: SymmQueryConfig;
8378
8444
  }): _tanstack_react_query.UseQueryResult<boolean, Error>;
8445
+ /**
8446
+ * Use case: Sign and store the latest terms signature on-chain.
8447
+ */
8379
8448
  declare function useSymmSignTermsMutation(params?: UseSymmSignatureParams, options?: {
8380
8449
  mutation?: SymmMutationConfig<void, Error, void>;
8381
8450
  }): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
8382
8451
 
8452
+ /**
8453
+ * Use case: Compute available margin from party-A stats with optional uPnL override.
8454
+ */
8383
8455
  declare function useSymmAvailableMargin(params: {
8384
8456
  accountAddress?: Address;
8385
8457
  publicClient?: PublicClient;
@@ -8403,12 +8475,18 @@ declare function useSymmAvailableMargin(params: {
8403
8475
  nonces: number;
8404
8476
  }, Error>;
8405
8477
 
8478
+ /**
8479
+ * Use case: Fetch aggregated account summary metrics for a user address.
8480
+ */
8406
8481
  declare function useSymmAccountSummary(params: {
8407
8482
  userAddress?: Address;
8408
8483
  chainId?: number;
8409
8484
  query?: SymmQueryConfig;
8410
8485
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountSummaryResponse, Error>;
8411
8486
 
8487
+ /**
8488
+ * Use case: Fetch account-level SYMM data (including optional uPnL context) for a specific address.
8489
+ */
8412
8490
  declare function useSymmAccountData(params: {
8413
8491
  address?: Address;
8414
8492
  upnl?: string;
@@ -8416,6 +8494,9 @@ declare function useSymmAccountData(params: {
8416
8494
  query?: SymmQueryConfig;
8417
8495
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountDataResponse, Error>;
8418
8496
 
8497
+ /**
8498
+ * Use case: Fetch SYMM account balance information for a user.
8499
+ */
8419
8500
  declare function useSymmBalances(params: {
8420
8501
  userAddress?: Address;
8421
8502
  chainId?: number;
@@ -8423,20 +8504,35 @@ declare function useSymmBalances(params: {
8423
8504
  query?: SymmQueryConfig;
8424
8505
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.BalanceInfoResponse, Error>;
8425
8506
 
8507
+ /**
8508
+ * Use case: Open a basket position through SYMM core API.
8509
+ */
8426
8510
  declare function useSymmOpenBasketMutation(options?: {
8427
8511
  mutation?: SymmMutationConfig<unknown, Error, OpenBasketPositionRequest>;
8428
8512
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.BasketOpenResponse | _pear_protocol_symm_core.OpenBasketCommandResult, Error, OpenBasketPositionRequest, unknown>;
8513
+ /**
8514
+ * Use case: Close a position with automatic auth-token resolution.
8515
+ */
8429
8516
  declare function useSymmClosePositionMutation(options?: {
8430
8517
  mutation?: SymmMutationConfig<unknown, Error, ClosePositionRequest>;
8431
8518
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.ClosePositionResponse | _pear_protocol_symm_core.CloseCommandResult, Error, ClosePositionRequest, unknown>;
8519
+ /**
8520
+ * Use case: Close all open positions for the provided request scope.
8521
+ */
8432
8522
  declare function useSymmCloseAllPositionsMutation(options?: {
8433
8523
  mutation?: SymmMutationConfig<unknown, Error, Parameters<NonNullable<ReturnType<typeof useSymmContext>['symmCoreClient']>['positions']['closeAll']>[0]>;
8434
8524
  }): _tanstack_react_query.UseMutationResult<node_modules__pear_protocol_symm_core_dist_types.CloseAllPositionsResponse, Error, Omit<node_modules__pear_protocol_symm_core_dist_types.CloseAllPositionsRequest, "chainId"> & {
8435
8525
  chainId?: number;
8436
8526
  }, unknown>;
8527
+ /**
8528
+ * Use case: Cancel a pending open order/quote.
8529
+ */
8437
8530
  declare function useSymmCancelOpenMutation(options?: {
8438
8531
  mutation?: SymmMutationConfig<unknown, Error, CancelOpenRequest>;
8439
8532
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_shared.ApiResponse<unknown>, Error, CancelOpenRequest, unknown>;
8533
+ /**
8534
+ * Use case: Update position settings with automatic auth-token resolution.
8535
+ */
8440
8536
  declare function useSymmUpdatePositionMutation(options?: {
8441
8537
  mutation?: SymmMutationConfig<unknown, Error, {
8442
8538
  positionId: string;
@@ -8447,6 +8543,9 @@ declare function useSymmUpdatePositionMutation(options?: {
8447
8543
  request: UpdatePositionRequest;
8448
8544
  }, unknown>;
8449
8545
 
8546
+ /**
8547
+ * Use case: Fetch open positions for an account or address.
8548
+ */
8450
8549
  declare function useSymmPositions(params: {
8451
8550
  accountAddress?: Address;
8452
8551
  address?: Address;
@@ -8454,6 +8553,9 @@ declare function useSymmPositions(params: {
8454
8553
  query?: SymmQueryConfig;
8455
8554
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.OpenPositionsListResponse, Error>;
8456
8555
 
8556
+ /**
8557
+ * Use case: Fetch open orders for an account or address.
8558
+ */
8457
8559
  declare function useSymmOpenOrders(params: {
8458
8560
  accountAddress?: Address;
8459
8561
  address?: Address;
@@ -8461,6 +8563,9 @@ declare function useSymmOpenOrders(params: {
8461
8563
  query?: SymmQueryConfig;
8462
8564
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.UnifiedOrdersListResponse, Error>;
8463
8565
 
8566
+ /**
8567
+ * Use case: Fetch historical trades for an account or address.
8568
+ */
8464
8569
  declare function useSymmTradeHistory(params: {
8465
8570
  accountAddress?: Address;
8466
8571
  address?: Address;
@@ -8468,9 +8573,15 @@ declare function useSymmTradeHistory(params: {
8468
8573
  query?: SymmQueryConfig;
8469
8574
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PositionsListResponse, Error>;
8470
8575
 
8576
+ /**
8577
+ * Use case: Create or update TP/SL configuration for a position/order.
8578
+ */
8471
8579
  declare function useSymmSetTpslMutation(options?: {
8472
8580
  mutation?: SymmMutationConfig<unknown, Error, SetTpslRequest>;
8473
8581
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.TpslUpdateResponse, Error, SetTpslRequest, unknown>;
8582
+ /**
8583
+ * Use case: Cancel an existing TP/SL order.
8584
+ */
8474
8585
  declare function useSymmCancelTpslMutation(options?: {
8475
8586
  mutation?: SymmMutationConfig<unknown, Error, CancelTpslRequest>;
8476
8587
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_shared.ApiResponse<unknown>, Error, CancelTpslRequest, unknown>;
@@ -8484,6 +8595,9 @@ type UseSymmTpslOrdersParams = {
8484
8595
  chainId?: number;
8485
8596
  query?: SymmQueryConfig;
8486
8597
  };
8598
+ /**
8599
+ * Use case: Fetch TP/SL orders with optional account, position, and status filters.
8600
+ */
8487
8601
  declare function useSymmTpslOrders(params: UseSymmTpslOrdersParams): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.TpslListResponse, Error>;
8488
8602
 
8489
8603
  type UseSymmTwapParams = {
@@ -8492,7 +8606,13 @@ type UseSymmTwapParams = {
8492
8606
  chainId?: number;
8493
8607
  query?: SymmQueryConfig;
8494
8608
  };
8609
+ /**
8610
+ * Use case: Fetch TWAP orders for an account/address.
8611
+ */
8495
8612
  declare function useSymmTwapOrdersQuery(params: UseSymmTwapParams): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrdersListResponse, Error>;
8613
+ /**
8614
+ * Use case: Cancel a TWAP order by id.
8615
+ */
8496
8616
  declare function useSymmCancelTwapOrderMutation(options?: {
8497
8617
  mutation?: SymmMutationConfig<unknown, Error, string>;
8498
8618
  }): _tanstack_react_query.UseMutationResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error, string, unknown>;
@@ -8501,14 +8621,26 @@ type UseSymmTriggerConfigParams = {
8501
8621
  orderId?: string;
8502
8622
  query?: SymmQueryConfig;
8503
8623
  };
8624
+ /**
8625
+ * Use case: Fetch trigger configuration for an order.
8626
+ */
8504
8627
  declare function useSymmTriggerConfigQuery(params: UseSymmTriggerConfigParams): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error>;
8628
+ /**
8629
+ * Use case: Upsert trigger configuration for an order.
8630
+ */
8505
8631
  declare function useSymmSetTriggerConfigMutation(params: UseSymmTriggerConfigParams, options?: {
8506
8632
  mutation?: SymmMutationConfig<unknown, Error, UpsertTriggerConfigRequest>;
8507
8633
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, UpsertTriggerConfigRequest, unknown>;
8634
+ /**
8635
+ * Use case: Clear trigger configuration for an order.
8636
+ */
8508
8637
  declare function useSymmClearTriggerConfigMutation(params: UseSymmTriggerConfigParams, options?: {
8509
8638
  mutation?: SymmMutationConfig<unknown, Error, void>;
8510
8639
  }): _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, void, unknown>;
8511
8640
 
8641
+ /**
8642
+ * Use case: Fetch trigger orders with account and pagination filters.
8643
+ */
8512
8644
  declare function useSymmTriggerOrders(params: {
8513
8645
  accountAddress?: Address;
8514
8646
  address?: Address;
@@ -8519,6 +8651,9 @@ declare function useSymmTriggerOrders(params: {
8519
8651
  query?: SymmQueryConfig;
8520
8652
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.TriggerOrdersListResponse, Error>;
8521
8653
 
8654
+ /**
8655
+ * Use case: List/search SYMM markets for the active chain.
8656
+ */
8522
8657
  declare function useSymmMarkets(params?: {
8523
8658
  chainId?: number;
8524
8659
  searchText?: string;
@@ -8527,18 +8662,27 @@ declare function useSymmMarkets(params?: {
8527
8662
  markets?: unknown[];
8528
8663
  }, Error>;
8529
8664
 
8665
+ /**
8666
+ * Use case: Fetch hedger market details by numeric market id.
8667
+ */
8530
8668
  declare function useSymmHedgerMarketById(params: {
8531
8669
  id?: number;
8532
8670
  chainId?: number;
8533
8671
  query?: SymmQueryConfig;
8534
8672
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>;
8535
8673
 
8674
+ /**
8675
+ * Use case: Fetch hedger market details by market symbol.
8676
+ */
8536
8677
  declare function useSymmHedgerMarketBySymbol(params: {
8537
8678
  symbol?: string;
8538
8679
  chainId?: number;
8539
8680
  query?: SymmQueryConfig;
8540
8681
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>;
8541
8682
 
8683
+ /**
8684
+ * Use case: Fetch locked params (e.g. margins/requirements) for market + leverage.
8685
+ */
8542
8686
  declare function useSymmLockedParams(params: {
8543
8687
  marketName?: string;
8544
8688
  leverage?: number;
@@ -8551,13 +8695,22 @@ type UseSymmHedgerMarketsParams = GetSymmHedgerMarketsRequest & {
8551
8695
  enabled?: boolean;
8552
8696
  query?: SymmQueryConfig;
8553
8697
  };
8698
+ /**
8699
+ * Use case: List hedger markets with optional search and filters.
8700
+ */
8554
8701
  declare function useSymmHedgerMarkets(params?: UseSymmHedgerMarketsParams): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.SymmHedgerMarketsResult, Error>;
8555
8702
 
8703
+ /**
8704
+ * Use case: Fetch current funding rate snapshots from SYMM core.
8705
+ */
8556
8706
  declare function useSymmFunding(params?: {
8557
8707
  chainId?: number;
8558
8708
  query?: SymmQueryConfig;
8559
8709
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingRatesResponse, Error>;
8560
8710
 
8711
+ /**
8712
+ * Use case: Fetch historical funding rates for a symbol basket strategy.
8713
+ */
8561
8714
  declare function useSymmFundingHistory(params: {
8562
8715
  period: '7d' | '30d' | '90d' | '180d';
8563
8716
  longSymbols?: string;
@@ -8569,6 +8722,9 @@ declare function useSymmFundingHistory(params: {
8569
8722
  query?: SymmQueryConfig;
8570
8723
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingHistoryResponse, Error>;
8571
8724
 
8725
+ /**
8726
+ * Use case: Fetch realized funding payment entries by address or position.
8727
+ */
8572
8728
  declare function useSymmFundingPayments(params: {
8573
8729
  address?: Address;
8574
8730
  positionId?: string;
@@ -8578,6 +8734,9 @@ declare function useSymmFundingPayments(params: {
8578
8734
  query?: SymmQueryConfig;
8579
8735
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingPaymentsResponse, Error>;
8580
8736
 
8737
+ /**
8738
+ * Use case: Fetch portfolio metrics for an account or address.
8739
+ */
8581
8740
  declare function useSymmPortfolio(params: {
8582
8741
  accountAddress?: Address;
8583
8742
  address?: Address;
@@ -8590,8 +8749,17 @@ type UseSymmNotificationsParams = {
8590
8749
  chainId?: number;
8591
8750
  query?: SymmQueryConfig;
8592
8751
  };
8752
+ /**
8753
+ * Use case: Fetch user notifications feed from SYMM core.
8754
+ */
8593
8755
  declare function useSymmNotificationsQuery(params: UseSymmNotificationsParams): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.NotificationsResponse, Error>;
8756
+ /**
8757
+ * Use case: Fetch unread notifications count for a user.
8758
+ */
8594
8759
  declare function useSymmUnreadCountQuery(params: UseSymmNotificationsParams): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.UnreadCountResponse, Error>;
8760
+ /**
8761
+ * Use case: Mark notifications as read by id or timestamp.
8762
+ */
8595
8763
  declare function useSymmMarkReadNotificationMutation(params: UseSymmNotificationsParams, options?: {
8596
8764
  mutation?: SymmMutationConfig<unknown, Error, {
8597
8765
  id?: string;
@@ -8602,12 +8770,18 @@ declare function useSymmMarkReadNotificationMutation(params: UseSymmNotification
8602
8770
  timestamp?: number;
8603
8771
  }, unknown>;
8604
8772
 
8773
+ /**
8774
+ * Use case: Fetch pending quote/order ids for an account.
8775
+ */
8605
8776
  declare function useSymmPendingIds(params: {
8606
8777
  accountAddress?: Address;
8607
8778
  chainId?: number;
8608
8779
  query?: SymmQueryConfig;
8609
8780
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PendingIdsResponse, Error>;
8610
8781
 
8782
+ /**
8783
+ * Use case: Fetch pending instant-open items that require auth token.
8784
+ */
8611
8785
  declare function useSymmPendingInstantOpens(params: {
8612
8786
  accountAddress?: Address;
8613
8787
  authToken?: string;
@@ -8615,11 +8789,17 @@ declare function useSymmPendingInstantOpens(params: {
8615
8789
  query?: SymmQueryConfig;
8616
8790
  }): _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PendingInstantOpensResponse, Error>;
8617
8791
 
8792
+ /**
8793
+ * Use case: Fetch a single TWAP order by id.
8794
+ */
8618
8795
  declare function useSymmTwapOrder(params: {
8619
8796
  orderId?: string;
8620
8797
  query?: SymmQueryConfig;
8621
8798
  }): _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error>;
8622
8799
 
8800
+ /**
8801
+ * Use case: Connect and manage SYMM WebSocket subscriptions for realtime updates.
8802
+ */
8623
8803
  declare function useSymmWs(params?: {
8624
8804
  symmCoreClient?: SymmSDK | null;
8625
8805
  accountAddress?: Address;
@@ -8650,8 +8830,8 @@ interface SymmChartSelection {
8650
8830
  selectedSymbols: string[];
8651
8831
  }
8652
8832
  /**
8653
- * SYMM chart selection hook. Accepts selection input as parameters
8654
- * rather than importing app store state, keeping the SDK app-agnostic.
8833
+ * Use case: Build normalized chart token selection state from user-provided long/short inputs.
8834
+ * Keeps selection derivation SDK-local without coupling to app store state.
8655
8835
  */
8656
8836
  declare function useSymmChartSelection(input: SymmChartSelectionInput): SymmChartSelection;
8657
8837
 
@@ -8682,8 +8862,8 @@ interface UseSymmTokenSelectionMetadataOptions {
8682
8862
  enabled?: boolean;
8683
8863
  }
8684
8864
  /**
8685
- * Fetches Binance market data for selected SYMM chart tokens and derives
8686
- * chart header metrics (price ratio, weighted ratio, etc.).
8865
+ * Use case: Fetch token market snapshots and derive chart header metrics
8866
+ * (price ratio, weighted ratio, funding sum) for selected SYMM tokens.
8687
8867
  */
8688
8868
  declare function useSymmTokenSelectionMetadata(selection: SymmChartSelection, options?: UseSymmTokenSelectionMetadataOptions): UseSymmTokenSelectionMetadataReturn;
8689
8869
 
@@ -8724,8 +8904,8 @@ interface UseSymmChartCandlesReturn {
8724
8904
  unavailableReason: string | null;
8725
8905
  }
8726
8906
  /**
8727
- * SYMM chart candles hook backed by Binance mark-price klines.
8728
- * Returns the same interface as the Hyperliquid useBasketCandles hook.
8907
+ * Use case: Provide chart candles for SYMM token baskets using Binance mark-price klines.
8908
+ * Returns the same interface as the Hyperliquid `useBasketCandles` hook.
8729
8909
  *
8730
8910
  * Realtime updates are provided via Binance kline WebSocket streams.
8731
8911
  * When listeners are registered, the hook subscribes to kline streams
@@ -8743,8 +8923,8 @@ interface SymmPerformanceOverlay {
8743
8923
  weight?: number;
8744
8924
  }
8745
8925
  /**
8746
- * SYMM performance overlay hook. Generates overlay definitions
8747
- * for each selected SYMM leg, matching the Hyperliquid overlay contract.
8926
+ * Use case: Generate performance overlay definitions for each selected SYMM leg.
8927
+ * Overlay output matches the existing chart overlay contract expected by consumers.
8748
8928
  */
8749
8929
  declare function useSymmPerformanceOverlays(selection: SymmChartSelection): {
8750
8930
  overlays: SymmPerformanceOverlay[];