import * as $ from '@manahippo/move-to-ts'; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U8, U64, U128 } from '@manahippo/move-to-ts'; import { TypeParamDeclType, FieldDeclType } from '@manahippo/move-to-ts'; import { StructTag, TypeTag } from '@manahippo/move-to-ts'; import { HexString, AptosClient } from 'aptos'; import * as Stdlib from '../stdlib'; export declare const packageName = "Econia"; export declare const moduleAddress: HexString; export declare const moduleName = "avl_queue"; export declare const ASCENDING: boolean; export declare const BITS_PER_BYTE: U8; export declare const BIT_FLAG_ASCENDING: U8; export declare const BIT_FLAG_TREE_NODE: U8; export declare const DECREMENT: boolean; export declare const DESCENDING: boolean; export declare const E_EVICT_EMPTY: U64; export declare const E_EVICT_NEW_TAIL: U64; export declare const E_INSERTION_KEY_TOO_LARGE: U64; export declare const E_INVALID_HEIGHT: U64; export declare const E_TOO_MANY_LIST_NODES: U64; export declare const E_TOO_MANY_TREE_NODES: U64; export declare const HI_128: U128; export declare const HI_64: U64; export declare const HI_BIT: U8; export declare const HI_BYTE: U64; export declare const HI_HEIGHT: U8; export declare const HI_INSERTION_KEY: U64; export declare const HI_NODE_ID: U64; export declare const INCREMENT: boolean; export declare const LEFT: boolean; export declare const MAX_HEIGHT: U8; export declare const NIL: U8; export declare const N_NODES_MAX: U64; export declare const PREDECESSOR: boolean; export declare const RIGHT: boolean; export declare const SHIFT_ACCESS_LIST_NODE_ID: U8; export declare const SHIFT_ACCESS_SORT_ORDER: U8; export declare const SHIFT_ACCESS_TREE_NODE_ID: U8; export declare const SHIFT_CHILD_LEFT: U8; export declare const SHIFT_CHILD_RIGHT: U8; export declare const SHIFT_HEAD_KEY: U8; export declare const SHIFT_HEAD_NODE_ID: U8; export declare const SHIFT_HEIGHT_LEFT: U8; export declare const SHIFT_HEIGHT_RIGHT: U8; export declare const SHIFT_INSERTION_KEY: U8; export declare const SHIFT_LIST_HEAD: U8; export declare const SHIFT_LIST_STACK_TOP: U8; export declare const SHIFT_LIST_TAIL: U8; export declare const SHIFT_NODE_TYPE: U8; export declare const SHIFT_PARENT: U8; export declare const SHIFT_SORT_ORDER: U8; export declare const SHIFT_TAIL_KEY: U8; export declare const SHIFT_TAIL_NODE_ID: U8; export declare const SHIFT_TREE_STACK_TOP: U8; export declare const SUCCESSOR: boolean; export declare class AVLqueue { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; bits: U128; root_lsbs: U8; tree_nodes: Stdlib.Table_with_length.TableWithLength; list_nodes: Stdlib.Table_with_length.TableWithLength; values: Stdlib.Table.Table; constructor(proto: any, typeTag: TypeTag); static AVLqueueParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): AVLqueue; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class ListNode { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; last_msbs: U8; last_lsbs: U8; next_msbs: U8; next_lsbs: U8; constructor(proto: any, typeTag: TypeTag); static ListNodeParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): ListNode; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class TreeNode { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; bits: U128; constructor(proto: any, typeTag: TypeTag); static TreeNodeParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): TreeNode; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare function borrow_(avlq_ref: AVLqueue, access_key: U64, $c: AptosDataCache, $p: TypeTag[]): any; export declare function borrow_head_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function borrow_head_mut_(avlq_ref_mut: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function borrow_mut_(avlq_ref_mut: AVLqueue, access_key: U64, $c: AptosDataCache, $p: TypeTag[]): any; export declare function borrow_tail_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function borrow_tail_mut_(avlq_ref_mut: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function contains_active_list_node_id_(avlq_ref: AVLqueue, access_key: U64, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function get_access_key_insertion_key_(access_key: U64, $c: AptosDataCache): U64; export declare function get_head_key_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Option.Option; export declare function get_height_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Option.Option; export declare function get_tail_key_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Option.Option; export declare function has_key_(avlq_ref: AVLqueue, key: U64, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function insert_(avlq_ref_mut: AVLqueue, key: U64, value: any, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function insert_check_eviction_(avlq_ref_mut: AVLqueue, key: U64, value: any, critical_height: U8, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, Stdlib.Option.Option]; export declare function insert_check_head_tail_(avlq_ref_mut: AVLqueue, key: U64, list_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function insert_evict_tail_(avlq_ref_mut: AVLqueue, key: U64, value: any, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, any]; export declare function insert_list_node_(avlq_ref_mut: AVLqueue, anchor_tree_node_id: U64, value: any, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function insert_list_node_assign_fields_(avlq_ref_mut: AVLqueue, last: U64, next: U64, value: any, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function insert_list_node_get_last_next_(avlq_ref: AVLqueue, anchor_tree_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, U64]; export declare function insert_tree_node_(avlq_ref_mut: AVLqueue, key: U64, parent: U64, solo_node_id: U64, new_leaf_side: Stdlib.Option.Option, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function insert_tree_node_update_parent_edge_(avlq_ref_mut: AVLqueue, tree_node_id: U64, parent: U64, new_leaf_side: Stdlib.Option.Option, $c: AptosDataCache, $p: TypeTag[]): void; export declare function is_ascending_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function is_ascending_access_key_(access_key: U64, $c: AptosDataCache): boolean; export declare function is_empty_(avlq_ref: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function is_local_tail_(avlq_ref: AVLqueue, access_key: U64, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function new___(sort_order: boolean, n_inactive_tree_nodes: U64, n_inactive_list_nodes: U64, $c: AptosDataCache, $p: TypeTag[]): AVLqueue; export declare function pop_head_(avlq_ref_mut: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function pop_tail_(avlq_ref_mut: AVLqueue, $c: AptosDataCache, $p: TypeTag[]): any; export declare function remove_(avlq_ref_mut: AVLqueue, access_key: U64, $c: AptosDataCache, $p: TypeTag[]): any; export declare function remove_list_node_(avlq_ref_mut: AVLqueue, list_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): [any, Stdlib.Option.Option, Stdlib.Option.Option]; export declare function remove_list_node_update_edges_(avlq_ref_mut: AVLqueue, last: U64, next: U64, last_is_tree: boolean, next_is_tree: boolean, last_node_id: U64, next_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): [Stdlib.Option.Option, Stdlib.Option.Option]; export declare function remove_tree_node_(avlq_ref_mut: AVLqueue, node_x_id: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function remove_tree_node_follow_up_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_x_parent: U64, new_subtree_root: U64, retrace_node_id: U64, retrace_side: boolean, $c: AptosDataCache, $p: TypeTag[]): void; export declare function remove_tree_node_with_children_(avlq_ref_mut: AVLqueue, node_x_height_left: U8, node_x_height_right: U8, node_x_parent: U64, node_l_id: U64, node_r_id: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, boolean]; export declare function remove_update_head_(avlq_ref_mut: AVLqueue, new_list_head: U64, ascending: boolean, tree_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function remove_update_tail_(avlq_ref_mut: AVLqueue, new_list_tail: U64, ascending: boolean, tree_node_id: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function retrace_(avlq_ref_mut: AVLqueue, node_id: U64, operation: boolean, side: boolean, $c: AptosDataCache, $p: TypeTag[]): void; export declare function retrace_prep_iterate_(avlq_ref_mut: AVLqueue, parent_id: U64, node_id: U64, new_subtree_root: U64, height: U8, height_old: U8, $c: AptosDataCache, $p: TypeTag[]): [TreeNode, boolean, boolean, U8]; export declare function retrace_rebalance_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_z_id: U64, node_x_left_heavy: boolean, $c: AptosDataCache, $p: TypeTag[]): [U64, U8]; export declare function retrace_rebalance_rotate_left_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_z_id: U64, tree_2_id: U64, node_z_height_left: U8, $c: AptosDataCache, $p: TypeTag[]): [U64, U8]; export declare function retrace_rebalance_rotate_left_right_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_z_id: U64, node_y_id: U64, node_z_height_left: U8, $c: AptosDataCache, $p: TypeTag[]): [U64, U8]; export declare function retrace_rebalance_rotate_right_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_z_id: U64, tree_2_id: U64, node_z_height_right: U8, $c: AptosDataCache, $p: TypeTag[]): [U64, U8]; export declare function retrace_rebalance_rotate_right_left_(avlq_ref_mut: AVLqueue, node_x_id: U64, node_z_id: U64, node_y_id: U64, node_z_height_right: U8, $c: AptosDataCache, $p: TypeTag[]): [U64, U8]; export declare function retrace_update_heights_(node_ref_mut: TreeNode, side: boolean, operation: boolean, delta: U8, $c: AptosDataCache): [U8, U8, U8, U8]; export declare function search_(avlq_ref: AVLqueue, seed_key: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, Stdlib.Option.Option]; export declare function traverse_(avlq_ref: AVLqueue, start_node_id: U64, target: boolean, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, U64]; export declare function would_update_head_(avlq_ref: AVLqueue, key: U64, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function would_update_tail_(avlq_ref: AVLqueue, key: U64, $c: AptosDataCache, $p: TypeTag[]): boolean; export declare function loadParsers(repo: AptosParserRepo): void; export declare class App { client: AptosClient; repo: AptosParserRepo; cache: AptosLocalCache; constructor(client: AptosClient, repo: AptosParserRepo, cache: AptosLocalCache); get moduleAddress(): HexString; get moduleName(): string; get AVLqueue(): typeof AVLqueue; get ListNode(): typeof ListNode; get TreeNode(): typeof TreeNode; } //# sourceMappingURL=avl_queue.d.ts.map