-type array_key() :: integer() | binary().
-type php_array() :: pinchpi_struct:struct_map().
-spec append(php_array(), term()) -> php_array().
-spec delete(php_array(), term()) -> php_array().
-spec exists(php_array(), term()) -> boolean().
-spec find(php_array(), term()) -> {ok, term()} | error.
-spec from_list([{term(), term()}]) -> php_array().
-spec from_map(term()) -> php_array().
-spec get(php_array(), term()) -> term().
-spec init_superglobals(map(), map()) -> #{binary() => php_array()}.
-spec keys(term()) -> [array_key()].
-spec merge(php_array(), php_array()) -> php_array().
-spec new() -> php_array().
-spec put(php_array(), term(), term()) -> php_array().
-spec size(term()) -> non_neg_integer().
-spec to_list(term()) -> [{array_key(), term()}].
-spec values(term()) -> [term()].