type FDC3ConfigProps = { url?: string; }; type doneCallback = (err: { message: string; } | null, data?: any) => void; /** * Copyright 2018 by ChartIQ, Inc. * All rights reserved. * * FDC3 App directory client, I will be using fetch() * to make calls to the app directory web service, even though I'm * not sure where did fetch() come from, will investigate later */ export default class FDC3 { creds: {}; config: FDC3ConfigProps; constructor(config?: FDC3ConfigProps, creds?: {}); /** * Http get wrapper * @param {string} path The restful method path * @param {function} done The callback function */ _get(path: string, done: doneCallback): void; /** * * @param {string} path The restful method path * @param {object} params The post data * @param {function} done The callback function */ _post(path: string, params: {}, done: doneCallback): void; /** * Returns all applications * @param {function} callback The optional callback function */ getAll(callback: doneCallback): Promise; /** * Returns a single application in results * @param {string} appId The app id */ get(appId: string, callback: doneCallback): Promise; /** * Returns unique tags * @param {function} callback The optional callback function */ getTags(callback: doneCallback): Promise; /** * Returns a list of applications based on text and filter * @param {object} params The search criteria * @param {function} callback The callback function * @example search({text: 'blah', filter: {tag: 'newrelease'}}) */ search(params: {}, callback: doneCallback): Promise; } export {}; //# sourceMappingURL=FDC3.d.ts.map