import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs"; import * as _mysten_sui_bcs18 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions202 from "@mysten/sui/transactions"; import { Transaction, TransactionArgument } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_sessions/sessions.d.ts declare namespace sessions_d_exports { export { ApproveSessionBuilderArguments, ApproveSessionBuilderOptions, ApprovedCodeIdArguments, ApprovedCodeIdOptions, ApprovedMaxFeePerContractArguments, ApprovedMaxFeePerContractOptions, AuthorizeSessionArguments, AuthorizeSessionOptions, CancelLiveOrderArguments, CancelLiveOrderOptions, CancelLiveOrdersArguments, CancelLiveOrdersOptions, EnqueueExactAmountArguments, EnqueueExactAmountOptions, EnqueueExactAmountWithBuilderArguments, EnqueueExactAmountWithBuilderOptions, EnqueueExactCostArguments, EnqueueExactCostOptions, EnqueueExactCostWithBuilderArguments, EnqueueExactCostWithBuilderOptions, EnqueueExactQuantityArguments, EnqueueExactQuantityOptions, EnqueueExactQuantityWithBuilderArguments, EnqueueExactQuantityWithBuilderOptions, EnqueueRedeemOpenArguments, EnqueueRedeemOpenOptions, EnqueueRedeemOpenWithBuilderArguments, EnqueueRedeemOpenWithBuilderOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactCostArguments, MintExactCostOptions, MintExactQuantityArguments, MintExactQuantityOptions, PlaceLimitOrderArguments, PlaceLimitOrderOptions, PlaceMarketOrderArguments, PlaceMarketOrderOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RevokeSessionArguments, RevokeSessionOptions, SessionAuthorized, SessionBuilder, SessionBuilderApproved, SessionBuilderArguments, SessionBuilderCleared, SessionBuilderOptions, SessionBuilders, SessionBuildersApp, SessionExpirationMsArguments, SessionExpirationMsOptions, SessionRevoked, SessionsApp, SessionsData, WithdrawSettledAmountsArguments, WithdrawSettledAmountsOptions, approveSessionBuilder, approvedCodeId, approvedMaxFeePerContract, authorizeSession, cancelLiveOrder, cancelLiveOrders, enqueueExactAmount, enqueueExactAmountWithBuilder, enqueueExactCost, enqueueExactCostWithBuilder, enqueueExactQuantity, enqueueExactQuantityWithBuilder, enqueueRedeemOpen, enqueueRedeemOpenWithBuilder, mintExactAmount, mintExactCost, mintExactQuantity, placeLimitOrder, placeMarketOrder, redeemLive, redeemSettled, revokeSession, sessionBuilder, sessionExpirationMs, withdrawSettledAmounts }; } declare const SessionsApp: MoveStruct<{ dummy_field: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionsApp">; declare const SessionsData: MoveStruct<{ sessions: MoveStruct<{ contents: _mysten_sui_bcs18.BcsType<{ key: string; value: bigint; }[], Iterable<{ key: string | Uint8Array; value: string | number | bigint; }> & { length: number; }, string>; }, "0x2::vec_map::VecMap">; }, "@local-pkg/deepbook_sessions::sessions::SessionsData">; declare const SessionAuthorized: MoveStruct<{ account_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; session: _mysten_sui_bcs18.BcsType, "bytes[32]">; expires_at_ms: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">; declare const SessionRevoked: MoveStruct<{ account_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; session: _mysten_sui_bcs18.BcsType, "bytes[32]">; expires_at_ms: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionRevoked">; declare const SessionBuildersApp: MoveStruct<{ dummy_field: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionBuildersApp">; declare const SessionBuilder: MoveStruct<{ code_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; max_fee_per_contract: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionBuilder">; declare const SessionBuilders: MoveStruct<{ approvals: MoveStruct<{ contents: _mysten_sui_bcs18.BcsType<{ key: string; value: { code_id: string; max_fee_per_contract: bigint; }; }[], Iterable<{ key: string | Uint8Array; value: { code_id: string | Uint8Array; max_fee_per_contract: string | number | bigint; }; }> & { length: number; }, string>; }, "0x2::vec_map::VecMap">; }, "@local-pkg/deepbook_sessions::sessions::SessionBuilders">; declare const SessionBuilderApproved: MoveStruct<{ account_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; session: _mysten_sui_bcs18.BcsType, "bytes[32]">; code_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; max_fee_per_contract: _mysten_sui_bcs18.BcsType; }, "@local-pkg/deepbook_sessions::sessions::SessionBuilderApproved">; declare const SessionBuilderCleared: MoveStruct<{ account_id: _mysten_sui_bcs18.BcsType, "bytes[32]">; session: _mysten_sui_bcs18.BcsType, "bytes[32]">; }, "@local-pkg/deepbook_sessions::sessions::SessionBuilderCleared">; interface SessionExpirationMsArguments { wrapper: RawTransactionArgument; session: RawTransactionArgument; } interface SessionExpirationMsOptions { package?: string; arguments: SessionExpirationMsArguments | [wrapper: RawTransactionArgument, session: RawTransactionArgument]; config?: { sessionsPackageId?: string; }; } /** Return a known session's expiration timestamp for SDK and devInspect reads. */ declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface SessionBuilderArguments { wrapper: RawTransactionArgument; session: RawTransactionArgument; } interface SessionBuilderOptions { package?: string; arguments: SessionBuilderArguments | [wrapper: RawTransactionArgument, session: RawTransactionArgument]; config?: { sessionsPackageId?: string; }; } /** Return a session's approved builder, or `none`, for SDK and devInspect reads. */ declare function sessionBuilder(options: SessionBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface ApprovedCodeIdArguments { builder: TransactionArgument; } interface ApprovedCodeIdOptions { package?: string; arguments: ApprovedCodeIdArguments | [builder: TransactionArgument]; config?: { sessionsPackageId?: string; }; } /** Return the builder code an approval allows, for SDK and devInspect reads. */ declare function approvedCodeId(options: ApprovedCodeIdOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface ApprovedMaxFeePerContractArguments { builder: TransactionArgument; } interface ApprovedMaxFeePerContractOptions { package?: string; arguments: ApprovedMaxFeePerContractArguments | [builder: TransactionArgument]; config?: { sessionsPackageId?: string; }; } /** Return the most an approval allows per contract, for SDK and devInspect reads. */ declare function approvedMaxFeePerContract(options: ApprovedMaxFeePerContractOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface AuthorizeSessionArguments { wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; session: RawTransactionArgument; durationMs: RawTransactionArgument; } interface AuthorizeSessionOptions { package?: string; arguments: AuthorizeSessionArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Authorize `session` from execution time for at most 30 days. Accounts may store * at most 20 addresses; reauthorization replaces in place and keeps the session's * builder approval, while a new grant starts without one. A session that expired * but was never revoked is still stored, so granting it again is a reauthorization * and keeps its approval. */ declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface ApproveSessionBuilderArguments { wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; session: RawTransactionArgument; codeId: RawTransactionArgument; maxFeePerContract: RawTransactionArgument; } interface ApproveSessionBuilderOptions { package?: string; arguments: ApproveSessionBuilderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Approve the builder code `session`'s trades may name, and the most they may * charge per contract (`max_fee_per_contract`, in FLOAT_SCALING of the $1 payout), * replacing any earlier approval. Only the Account owner may call this, and only * for a session already authorized (`ESessionNotAuthorized`), so an app calls it * right after `authorize_session` in the same transaction. The approval lasts * until `revoke_session`; re-authorizing the session keeps it. Aborts * `EBuilderApprovalsNotEnabled` until the `SessionsConfig` watermark reaches the * first version that clears stale approvals. */ declare function approveSessionBuilder(options: ApproveSessionBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface RevokeSessionArguments { wrapper: RawTransactionArgument; session: RawTransactionArgument; } interface RevokeSessionOptions { package?: string; arguments: RevokeSessionArguments | [wrapper: RawTransactionArgument, session: RawTransactionArgument]; config?: { sessionsPackageId?: string; }; } /** * Revoke `session` and its builder approval if present. Only the Account owner may * call this function. */ declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface PlaceLimitOrderArguments { pool: RawTransactionArgument; deepbookRegistry: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; clientOrderId: RawTransactionArgument; orderType: RawTransactionArgument; selfMatchingOption: RawTransactionArgument; price: RawTransactionArgument; quantity: RawTransactionArgument; isBid: RawTransactionArgument; payWithDeep: RawTransactionArgument; expireTimestamp: RawTransactionArgument; } interface PlaceLimitOrderOptions { package?: string; arguments: PlaceLimitOrderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; typeArguments: [string, string]; } /** * Place a DeepBook spot limit order for an Account with an active session, on a * pool in the `SessionsConfig` allowlist (`session_config::EPoolNotAllowed`). */ declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface PlaceMarketOrderArguments { pool: RawTransactionArgument; deepbookRegistry: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; clientOrderId: RawTransactionArgument; selfMatchingOption: RawTransactionArgument; quantity: RawTransactionArgument; priceLimit: RawTransactionArgument; isBid: RawTransactionArgument; payWithDeep: RawTransactionArgument; } interface PlaceMarketOrderOptions { package?: string; arguments: PlaceMarketOrderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; typeArguments: [string, string]; } /** * Place a DeepBook spot market order for an Account with an active session, on a * pool in the `SessionsConfig` allowlist (`session_config::EPoolNotAllowed`). */ declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface CancelLiveOrderArguments { pool: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; orderId: RawTransactionArgument; } interface CancelLiveOrderOptions { package?: string; arguments: CancelLiveOrderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; typeArguments: [string, string]; } /** * Cancel a DeepBook spot order for an Account with an active session, on any pool, * so orders on a pool removed from the allowlist can still be cancelled. */ declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface CancelLiveOrdersArguments { pool: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; orderIds: RawTransactionArgument>; } interface CancelLiveOrdersOptions { package?: string; arguments: CancelLiveOrdersArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; typeArguments: [string, string]; } /** Cancel multiple DeepBook spot orders for an Account with an active session. */ declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface WithdrawSettledAmountsArguments { pool: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; } interface WithdrawSettledAmountsOptions { package?: string; arguments: WithdrawSettledAmountsArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; typeArguments: [string, string]; } /** Sweep settled DeepBook spot proceeds into an Account with an active session. */ declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface MintExactQuantityArguments { market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; config: RawTransactionArgument; pricer: TransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; quantity: RawTransactionArgument; maxCost: RawTransactionArgument; maxProbability: RawTransactionArgument; } interface MintExactQuantityOptions { package?: string; arguments: MintExactQuantityArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Mint an exact Predict position quantity for an Account with an active session. * Always aborts through Predict, whose immediate mints are retired; use * `enqueue_exact_quantity`. */ declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface MintExactAmountArguments { market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; config: RawTransactionArgument; pricer: TransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxPremium: RawTransactionArgument; minQuantity: RawTransactionArgument; maxCost: RawTransactionArgument; } interface MintExactAmountOptions { package?: string; arguments: MintExactAmountArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Mint a budget-sized Predict position for an Account with an active session. * Always aborts through Predict, whose immediate mints are retired; use * `enqueue_exact_amount`. */ declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface MintExactCostArguments { market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; config: RawTransactionArgument; pricer: TransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxCost: RawTransactionArgument; minQuantity: RawTransactionArgument; } interface MintExactCostOptions { package?: string; arguments: MintExactCostArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Mint a Predict position sized to an all-in cost for an Account with an active * session. Always aborts through Predict, whose immediate mints are retired; use * `enqueue_exact_cost`. */ declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface RedeemLiveArguments { market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; config: RawTransactionArgument; pricer: TransactionArgument; orderId: RawTransactionArgument; closeQuantity: RawTransactionArgument; minProbability: RawTransactionArgument; minProceeds: RawTransactionArgument; } interface RedeemLiveOptions { package?: string; arguments: RedeemLiveArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Redeem a live Predict order for an Account with an active session. Always aborts * through Predict, whose live redeem is retired. Early sells of queued positions * go through `enqueue_redeem_open`. */ declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface RedeemSettledArguments { market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; config: RawTransactionArgument; orderId: RawTransactionArgument; } interface RedeemSettledOptions { package?: string; arguments: RedeemSettledArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** Redeem a settled Predict order for an Account with an active session. */ declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactQuantityArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; quantity: RawTransactionArgument; maxCost: RawTransactionArgument; maxProbability: RawTransactionArgument; } interface EnqueueExactQuantityOptions { package?: string; arguments: EnqueueExactQuantityArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Queue an exact-quantity Predict mint in `market`'s order-flow queue for an * Account with an active session. Returns the queue record ID. */ declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactQuantityWithBuilderArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; code: RawTransactionArgument; builderFeePerContract: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; quantity: RawTransactionArgument; maxCost: RawTransactionArgument; maxProbability: RawTransactionArgument; } interface EnqueueExactQuantityWithBuilderOptions { package?: string; arguments: EnqueueExactQuantityWithBuilderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * `enqueue_exact_quantity` for a session-key mint that names a builder: `code` and * `builder_fee_per_contract` must be the session's approved code and at most its * approved fee (`EBuilderNotApproved`, `EBuilderFeeAboveApproved`), after the * session checks. Returns the new queue record ID. */ declare function enqueueExactQuantityWithBuilder(options: EnqueueExactQuantityWithBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactAmountArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxPremium: RawTransactionArgument; minQuantity: RawTransactionArgument; maxCost: RawTransactionArgument; } interface EnqueueExactAmountOptions { package?: string; arguments: EnqueueExactAmountArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Queue a premium-budget Predict mint in `market`'s order-flow queue for an * Account with an active session. Returns the queue record ID. */ declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactAmountWithBuilderArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; code: RawTransactionArgument; builderFeePerContract: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxPremium: RawTransactionArgument; minQuantity: RawTransactionArgument; maxCost: RawTransactionArgument; } interface EnqueueExactAmountWithBuilderOptions { package?: string; arguments: EnqueueExactAmountWithBuilderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * `enqueue_exact_amount` for a session-key mint that names a builder: `code` and * `builder_fee_per_contract` must be the session's approved code and at most its * approved fee (`EBuilderNotApproved`, `EBuilderFeeAboveApproved`), after the * session checks. Returns the new queue record ID. */ declare function enqueueExactAmountWithBuilder(options: EnqueueExactAmountWithBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactCostArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxCost: RawTransactionArgument; minQuantity: RawTransactionArgument; } interface EnqueueExactCostOptions { package?: string; arguments: EnqueueExactCostArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Queue an all-in-budget Predict mint in `market`'s order-flow queue for an * Account with an active session. Returns the queue record ID. */ declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueExactCostWithBuilderArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; code: RawTransactionArgument; builderFeePerContract: RawTransactionArgument; lowerTick: RawTransactionArgument; higherTick: RawTransactionArgument; maxCost: RawTransactionArgument; minQuantity: RawTransactionArgument; } interface EnqueueExactCostWithBuilderOptions { package?: string; arguments: EnqueueExactCostWithBuilderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * `enqueue_exact_cost` for a session-key mint that names a builder: `code` and * `builder_fee_per_contract` must be the session's approved code and at most its * approved fee (`EBuilderNotApproved`, `EBuilderFeeAboveApproved`), after the * session checks. Returns the new queue record ID. */ declare function enqueueExactCostWithBuilder(options: EnqueueExactCostWithBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueRedeemOpenArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; recordId: RawTransactionArgument; closeQuantity: RawTransactionArgument; minProbability: RawTransactionArgument; minProceeds: RawTransactionArgument; } interface EnqueueRedeemOpenOptions { package?: string; arguments: EnqueueRedeemOpenArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * Queue an early sell of an Open order-flow queue record for an Account with an * active session. Returns the new queue record ID. */ declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; interface EnqueueRedeemOpenWithBuilderArguments { queue: RawTransactionArgument; market: RawTransactionArgument; accountRegistry: RawTransactionArgument; wrapper: RawTransactionArgument; sessionsConfig?: RawTransactionArgument; desk: RawTransactionArgument; config: RawTransactionArgument; propbookRegistry: RawTransactionArgument; pyth: RawTransactionArgument; bsValues: RawTransactionArgument; bsSvi: RawTransactionArgument; code: RawTransactionArgument; builderFeePerContract: RawTransactionArgument; recordId: RawTransactionArgument; closeQuantity: RawTransactionArgument; minProbability: RawTransactionArgument; minProceeds: RawTransactionArgument; } interface EnqueueRedeemOpenWithBuilderOptions { package?: string; arguments: EnqueueRedeemOpenWithBuilderArguments; config?: { sessionsConfig: ConfigValue; sessionsPackageId?: string; }; } /** * `enqueue_redeem_open` for a session-key sell that names a builder: `code` and * `builder_fee_per_contract` must be the session's approved code and at most its * approved fee (`EBuilderNotApproved`, `EBuilderFeeAboveApproved`), after the * session checks. Returns the new queue record ID. */ declare function enqueueRedeemOpenWithBuilder(options: EnqueueRedeemOpenWithBuilderOptions): (tx: Transaction) => _mysten_sui_transactions202.TransactionResult; //#endregion export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports }; //# sourceMappingURL=sessions.d.mts.map