declare module 'nimbus-types' { interface NimbusPlugins { LdsDraftQueue: DraftQueue; } } /** * Defines the DraftQueue that allows LDS running in the webview to interact with the * DraftQueue instance running in JSCore. Since the method parameters are opaque * to the native container everything passed into the nimbus plugin is serialized * and the jscore-side of the plugin implementation will perform the * serialization/deserialization of the parameters */ export interface DraftQueue { /** * A generic proxy method to invoke various methods on the draft queue * @param methodName The name of the proxy method to invoke * @param serializedArgsArray A serialized array of arguments * @param resultCallback Success callback containing serialized result * @param errorCallback Error callback containing serialized error */ callProxyMethod(methodName: string, serializedArgsArray: string, resultCallback: (serializedResult: string) => void, errorCallback: (serializedError: string) => void): void; }