Repository navigation
Expand file tree
/
Copy pathArrays.d.ts
More file actions
116 lines (116 loc) · 8.03 KB
/
Copy pathArrays.d.ts
File metadata and controls
116 lines (116 loc) · 8.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import { PHPContext } from "../PHPContext.js";
import type { PHPEngine } from "../PHPEngine.js";
import { PHPReference } from "./PHPVariable.js";
export declare class ArrayRuntime {
static count(ctx: PHPContext, arrayOrCountableArg?: any): Promise<number>;
static array_keys(ctx: PHPContext, inputArg?: any): Promise<any[]>;
static array_values(ctx: PHPContext, inputArg?: any): Promise<any[]>;
static array_flip(ctx: PHPContext, inputArg?: any): Promise<Record<string, any>>;
static array_reverse(ctx: PHPContext, arrayArg?: any): Promise<any[]>;
static in_array(ctx: PHPContext, needleArg?: any, haystackArg?: any, strictArg?: any): Promise<boolean>;
static array_search(ctx: PHPContext, needleArg?: any, haystackArg?: any, strictArg?: any): Promise<any | false>;
static array_key_exists(ctx: PHPContext, keyArg?: any, searchArg?: any): Promise<boolean>;
static array_merge(ctx: PHPContext, ...arraysArgs: any[]): Promise<any>;
static array_combine(ctx: PHPContext, keysArg?: any, valuesArg?: any): Promise<Record<string, any> | false>;
static array_fill(ctx: PHPContext, startIndexArg?: PHPReference, countArg?: PHPReference, valueArg?: PHPReference): Promise<any[] | Record<string, any>>;
static array_fill_keys(ctx: PHPContext, keysArg?: PHPReference, valueArg?: PHPReference): Promise<Record<string, any>>;
static array_intersect(ctx: PHPContext, arrayArg?: PHPReference, ...othersArgs: PHPReference[]): Promise<any>;
static array_diff(ctx: PHPContext, arrayArg?: PHPReference, ...othersArgs: PHPReference[]): Promise<any>;
static array_intersect_key(ctx: PHPContext, arrayArg?: PHPReference, ...othersArgs: PHPReference[]): Promise<any>;
static array_diff_key(ctx: PHPContext, arrayArg?: PHPReference, ...othersArgs: PHPReference[]): Promise<any>;
static array_slice(ctx: PHPContext, arrayArg?: PHPReference, offsetArg?: PHPReference, lengthArg?: PHPReference, preserveKeysArg?: PHPReference): Promise<any>;
static array_change_key_case(ctx: PHPContext, arrayArg?: PHPReference, caseArg?: PHPReference): Promise<Record<string, any> | null>;
static usort(ctx: PHPContext, arrayArg?: PHPReference, callbackArg?: PHPReference): Promise<boolean>;
static uasort(ctx: PHPContext, arrayArg?: PHPReference, callbackArg?: PHPReference): Promise<boolean>;
static uksort(ctx: PHPContext, arrayArg?: any, callbackArg?: any): Promise<boolean>;
static array_push(ctx: PHPContext, arrayArg?: any, ...varargsArgs: any[]): Promise<number>;
static array_pop(ctx: PHPContext, arrayArg?: any): Promise<any>;
static array_shift(ctx: PHPContext, arrayArg?: any): Promise<any>;
static array_unshift(ctx: PHPContext, arrayArg?: any, ...varargsArgs: any[]): Promise<number>;
static array_unique(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static array_column(ctx: PHPContext, arrayArg?: PHPReference, columnKeyArg?: PHPReference): Promise<any[]>;
static sort(ctx: PHPContext, arrayArg?: PHPReference): Promise<boolean>;
static rsort(ctx: PHPContext, arrayArg?: PHPReference): Promise<boolean>;
static asort(ctx: PHPContext, arrayArg?: any, flagsArg?: any): Promise<boolean>;
static arsort(ctx: PHPContext, arrayArg?: any, flagsArg?: any): Promise<boolean>;
static ksort(ctx: PHPContext, arrayArg?: PHPReference, flagsArg?: PHPReference): Promise<boolean>;
static krsort(ctx: PHPContext, arrayArg?: PHPReference, flagsArg?: PHPReference): Promise<boolean>;
static array_map(ctx: PHPContext, callbackArg?: PHPReference, ...arraysArgs: PHPReference[]): Promise<any>;
static array_replace(ctx: PHPContext, ...arraysArgs: any[]): Promise<any>;
static array_replace_recursive(ctx: PHPContext, ...arraysArgs: any[]): Promise<any>;
static array_filter(ctx: PHPContext, arrayArg?: any, callbackArg?: any, modeArg?: any): Promise<any>;
static array_all(ctx: PHPContext, arrayArg?: any, callbackArg?: any): Promise<boolean>;
static iterator_to_array(ctx: PHPContext, iteratorArg?: any, preserveKeysArg?: any): Promise<any>;
static array_any(ctx: PHPContext, arrayArg?: any, callbackArg?: any): Promise<boolean>;
static array_reduce(ctx: PHPContext, arrayArg?: PHPReference, callbackArg?: PHPReference, initialArg?: PHPReference): Promise<any>;
static array_key_first(ctx: PHPContext, arrayArg?: PHPReference): Promise<any | null>;
static array_key_last(ctx: PHPContext, arrayArg?: PHPReference): Promise<any | null>;
private static getEntries;
static reset(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static current(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static next(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static prev(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static end(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static key(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static each(ctx: PHPContext, arrayArg?: PHPReference): Promise<any>;
static array_walk(ctx: PHPContext, arrayArg?: PHPReference, callbackArg?: any, userdataArg?: any): Promise<boolean>;
static array_walk_recursive(ctx: PHPContext, arrayArg?: PHPReference, callbackArg?: any, userdataArg?: any): Promise<boolean>;
static functions: {
count: typeof ArrayRuntime.count;
sizeof: typeof ArrayRuntime.count;
array_keys: typeof ArrayRuntime.array_keys;
array_values: typeof ArrayRuntime.array_values;
array_flip: typeof ArrayRuntime.array_flip;
array_reverse: typeof ArrayRuntime.array_reverse;
in_array: typeof ArrayRuntime.in_array;
array_search: typeof ArrayRuntime.array_search;
array_key_exists: typeof ArrayRuntime.array_key_exists;
key_exists: typeof ArrayRuntime.array_key_exists;
array_merge: typeof ArrayRuntime.array_merge;
array_replace: typeof ArrayRuntime.array_replace;
array_replace_recursive: typeof ArrayRuntime.array_replace_recursive;
array_combine: typeof ArrayRuntime.array_combine;
array_walk: typeof ArrayRuntime.array_walk;
array_walk_recursive: typeof ArrayRuntime.array_walk_recursive;
array_fill_keys: typeof ArrayRuntime.array_fill_keys;
array_fill: typeof ArrayRuntime.array_fill;
array_intersect: typeof ArrayRuntime.array_intersect;
array_diff: typeof ArrayRuntime.array_diff;
array_intersect_key: typeof ArrayRuntime.array_intersect_key;
array_diff_key: typeof ArrayRuntime.array_diff_key;
usort: typeof ArrayRuntime.usort;
uasort: typeof ArrayRuntime.uasort;
uksort: typeof ArrayRuntime.uksort;
array_slice: typeof ArrayRuntime.array_slice;
array_push: typeof ArrayRuntime.array_push;
array_pop: typeof ArrayRuntime.array_pop;
array_shift: typeof ArrayRuntime.array_shift;
array_unshift: typeof ArrayRuntime.array_unshift;
array_unique: typeof ArrayRuntime.array_unique;
array_column: typeof ArrayRuntime.array_column;
sort: typeof ArrayRuntime.sort;
asort: typeof ArrayRuntime.asort;
arsort: typeof ArrayRuntime.arsort;
ksort: typeof ArrayRuntime.ksort;
krsort: typeof ArrayRuntime.krsort;
rsort: typeof ArrayRuntime.rsort;
array_map: typeof ArrayRuntime.array_map;
array_filter: typeof ArrayRuntime.array_filter;
array_all: typeof ArrayRuntime.array_all;
array_any: typeof ArrayRuntime.array_any;
iterator_to_array: typeof ArrayRuntime.iterator_to_array;
array_reduce: typeof ArrayRuntime.array_reduce;
array_key_first: typeof ArrayRuntime.array_key_first;
array_change_key_case: typeof ArrayRuntime.array_change_key_case;
array_key_last: typeof ArrayRuntime.array_key_last;
current: typeof ArrayRuntime.current;
pos: typeof ArrayRuntime.current;
reset: typeof ArrayRuntime.reset;
end: typeof ArrayRuntime.end;
key: typeof ArrayRuntime.key;
next: typeof ArrayRuntime.next;
prev: typeof ArrayRuntime.prev;
each: typeof ArrayRuntime.each;
};
static register(engine: PHPEngine): void;
}