/******************************************************************************************** THIS FILE HAS BEEN COMPILED FROM TYPESCRIPT SOURCES. PLEASE DO NOT MODIFY THIS FILE DIRECTLY AS YOU WILL LOSE YOUR CHANGES WHEN RECOMPILING. INSTEAD, EDIT THE TYPESCRIPT SOURCES UNDER THE WWW FOLDER, AND THEN RUN GULP. FOR MORE INFORMATION, PLEASE SEE CONTRIBUTING.md. *********************************************************************************************/ import { InstallOptions } from "./installOptions"; interface StatusReport { status: number; label: string; appVersion: string; deploymentKey: string; previousLabelOrAppVersion: string; previousDeploymentKey: string; } interface PluginCallResponse { value: T; } interface NativeDecodeSignatureOptions { publicKey: string; signature: string; } interface NativePathOptions { path: string; } interface NativeHashOptions { packageHash: string; } interface NativeInstallOptions extends InstallOptions { startLocation: string; } interface NativeStatusReportOptions { statusReport: StatusReport; } export interface NativeCodePushPlugin { getDeploymentKey(): Promise>; getServerURL(): Promise>; getPublicKey(): Promise>; decodeSignature(options: NativeDecodeSignatureOptions): Promise>; getBinaryHash(): Promise>; getPackageHash(options: NativePathOptions): Promise>; notifyApplicationReady(): Promise; isFirstRun(options: NativeHashOptions): Promise>; isPendingUpdate(): Promise>; isFailedUpdate(options: NativeHashOptions): Promise>; install(options: NativeInstallOptions): Promise; reportFailed(options: NativeStatusReportOptions): Promise; reportSucceeded(options: NativeStatusReportOptions): Promise; restartApplication(): Promise; preInstall(options: NativeInstallOptions): Promise; getAppVersion(): Promise>; getNativeBuildTime(): Promise>; addListener(eventName: "codePushStatus", listenerFunc: (info: any) => void): void; } export {};