UNPKG

8.12 kBTypeScriptView Raw
1/// <reference path="./global-types.d.ts" />
2/**
3 * IMPORTANT: this is not generated automatically due to this issue:
4 * https://github.com/microsoft/TypeScript/issues/36763
5 * the reference path above will get rewritten and break on compilation unless kept here
6 * Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc
7 */
8export type { NativeScriptConfig } from './config';
9export { iOSApplication, AndroidApplication } from './application';
10export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
11import { AndroidApplication, iOSApplication, systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged, setMaxRefreshRate } from './application';
12export declare const Application: {
13 launchEvent: string;
14 displayedEvent: string;
15 uncaughtErrorEvent: string;
16 discardedErrorEvent: string;
17 suspendEvent: string;
18 resumeEvent: string;
19 exitEvent: string;
20 lowMemoryEvent: string;
21 orientationChangedEvent: string;
22 systemAppearanceChangedEvent: string;
23 fontScaleChangedEvent: string;
24 systemAppearanceChanged: typeof systemAppearanceChanged;
25 setMaxRefreshRate: typeof setMaxRefreshRate;
26 getMainEntry: typeof getMainEntry;
27 getRootView: typeof getRootView;
28 resetRootView: typeof _resetRootView;
29 getResources: typeof getResources;
30 setResources: typeof setResources;
31 setCssFileName: typeof setCssFileName;
32 getCssFileName: typeof getCssFileName;
33 loadAppCss: typeof loadAppCss;
34 addCss: typeof addCss;
35 on: typeof on;
36 off: typeof off;
37 notify: typeof notify;
38 hasListeners: typeof hasListeners;
39 run: typeof run;
40 orientation: typeof orientation;
41 getNativeApplication: typeof getNativeApplication;
42 hasLaunched: typeof hasLaunched;
43 systemAppearance: typeof systemAppearance;
44 setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
45 android: AndroidApplication;
46 ios: iOSApplication;
47 suspended: boolean;
48 inBackground: boolean;
49};
50import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
51export declare const ApplicationSettings: {
52 clear: typeof clear;
53 flush: typeof flush;
54 hasKey: typeof hasKey;
55 remove: typeof remove;
56 setString: typeof setString;
57 getString: typeof getString;
58 getAllKeys: typeof getAllKeys;
59 getBoolean: typeof getBoolean;
60 setBoolean: typeof setBoolean;
61 getNumber: typeof getNumber;
62 setNumber: typeof setNumber;
63};
64export declare const AccessibilityEvents: {
65 accessibilityBlurEvent: string;
66 accessibilityFocusEvent: string;
67 accessibilityFocusChangedEvent: string;
68};
69export { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, FontScaleCategory } from './accessibility';
70export { Color } from './color';
71import { connectionType, getConnectionType, startMonitoring, stopMonitoring } from './connectivity';
72export declare const Connectivity: {
73 connectionType: typeof connectionType;
74 getConnectionType: typeof getConnectionType;
75 startMonitoring: typeof startMonitoring;
76 stopMonitoring: typeof stopMonitoring;
77};
78export * from './core-types';
79export { CSSUtils } from './css/system-classes';
80export { ObservableArray, ChangeType } from './data/observable-array';
81export type { ChangedData } from './data/observable-array';
82export { Observable, WrappedValue, fromObject, fromObjectRecursive } from './data/observable';
83export type { PropertyChangeData, EventData } from './data/observable';
84export { VirtualArray } from './data/virtual-array';
85export type { ItemsLoading } from './data/virtual-array';
86export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess } from './file-system';
87export type { HttpRequestOptions, HttpResponse, Headers, HttpResponseEncoding, HttpContent } from './http';
88import { getFile, getImage, getJSON, getString as httpGetString } from './http';
89export declare const Http: {
90 getFile: typeof getFile;
91 getImage: typeof getImage;
92 getJSON: typeof getJSON;
93 getString: typeof httpGetString;
94 request: (options: import('./http').HttpRequestOptions) => Promise<import('./http').HttpResponse>;
95};
96export { ImageAsset } from './image-asset';
97export type { ImageAssetOptions } from './image-asset';
98export { ImageSource } from './image-source';
99export { ModuleNameResolver, _setResolver } from './module-name-resolver';
100export type { ModuleListProvider, PlatformContext } from './module-name-resolver';
101export { isAndroid, isIOS, Screen, Device, platformNames } from './platform';
102export type { IDevice } from './platform';
103export { profile, enable as profilingEnable, disable as profilingDisable, time as profilingTime, uptime as profilingUptime, start as profilingStart, stop as profilingStop, isRunning as profilingIsRunning, dumpProfiles as profilingDumpProfiles, resetProfiles as profilingResetProfiles, startCPUProfile as profilingStartCPU, stopCPUProfile as profilingStopCPU } from './profiling';
104export type { InstrumentationMode, TimerInfo } from './profiling';
105export { encoding } from './text';
106export * from './trace';
107export * from './ui';
108import { GC, isFontIconURI, isDataURI, isFileOrResourcePath, executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, executeOnUIThread, releaseNativeObject, getModuleName, openFile, openUrl, isRealDevice, layout, ad as androidUtils, iOSNativeHelper as iosUtils, Source, escapeRegexSymbols, convertString, dismissSoftInput, queueMacrotask, queueGC, throttle, debounce, dataSerialize, dataDeserialize } from './utils';
109import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback, numberHasDecimals, numberIs64Bit } from './utils/types';
110export declare const Utils: {
111 GC: typeof GC;
112 RESOURCE_PREFIX: string;
113 FILE_PREFIX: string;
114 queueMacrotask: typeof queueMacrotask;
115 queueGC: typeof queueGC;
116 debounce: typeof debounce;
117 throttle: typeof throttle;
118 isFontIconURI: typeof isFontIconURI;
119 isDataURI: typeof isDataURI;
120 isFileOrResourcePath: typeof isFileOrResourcePath;
121 executeOnMainThread: typeof executeOnMainThread;
122 executeOnUIThread: typeof executeOnUIThread;
123 mainThreadify: typeof mainThreadify;
124 isMainThread: typeof isMainThread;
125 dispatchToMainThread: typeof dispatchToMainThread;
126 releaseNativeObject: typeof releaseNativeObject;
127 escapeRegexSymbols: typeof escapeRegexSymbols;
128 convertString: typeof convertString;
129 getModuleName: typeof getModuleName;
130 openFile: typeof openFile;
131 openUrl: typeof openUrl;
132 isRealDevice: typeof isRealDevice;
133 layout: typeof layout;
134 android: typeof androidUtils;
135 ad: typeof androidUtils;
136 ios: typeof iosUtils;
137 dataSerialize: typeof dataSerialize;
138 dataDeserialize: typeof dataDeserialize;
139 numberHasDecimals: typeof numberHasDecimals;
140 numberIs64Bit: typeof numberIs64Bit;
141 setTimeout: typeof setTimeout;
142 setInterval: typeof setInterval;
143 clearInterval: typeof clearInterval;
144 clearTimeout: typeof clearTimeout;
145 Source: typeof Source;
146 ClassInfo: typeof ClassInfo;
147 getClass: typeof getClass;
148 getBaseClasses: typeof getBaseClasses;
149 getClassInfo: typeof getClassInfo;
150 isBoolean: typeof isBoolean;
151 isDefined: typeof isDefined;
152 isFunction: typeof isFunction;
153 isNullOrUndefined: typeof isNullOrUndefined;
154 isNumber: typeof isNumber;
155 isObject: typeof isObject;
156 isString: typeof isString;
157 isUndefined: typeof isUndefined;
158 toUIString: typeof toUIString;
159 verifyCallback: typeof verifyCallback;
160 dismissSoftInput: typeof dismissSoftInput;
161};
162export { XmlParser, ParserEventType, ParserEvent } from './xml';