import { Tab } from '@kui-shell/core'; export declare const setApiHost: (apiHost?: string) => void; /** for debugging only; removes localStorage model for current host */ /** * User does not have a namespace! warn the user of how to proceed * */ export declare const setNoNamespace: (tab: Tab, provideHelp?: boolean) => void; /** * User has a namespace, but needs to select one before they can proceed * */ export declare const setPleaseSelectNamespace: () => void; /** * List known namespaces * */ export declare const list: () => Promise; /** * We don't know yet what's going on, all we know is that the * wsk.namespace.get call failed * */ export declare const setNeedsNamespace: (tab: Tab, err?: Error) => Promise | import("@kui-shell/core").XtermResponse | { code: string; } | { errno: string | number; } | (import("@kui-shell/core").Table & Partial) | (import("@kui-shell/core").Abortable & { response: import("@kui-shell/core").ScalarResponse; }) | import("@kui-shell/core").NavResponse | import("@kui-shell/core/mdist/models/RadioTable").default | import("@kui-shell/core").UsageModel | import("@kui-shell/core").ResourceWithMetadata | import("@kui-shell/core").RawResponse | import("@kui-shell/core").ResourceWithMetadata[]>; /** * Initialize the apihost and namespace bits of the UI * */ export declare const init: (tab: Tab, noCatch?: boolean, { noAuthOk }?: { noAuthOk?: boolean; }) => Promise | import("@kui-shell/core").XtermResponse | { code: string; } | { errno: string | number; } | (import("@kui-shell/core").Table & Partial) | (import("@kui-shell/core").Abortable & { response: import("@kui-shell/core").ScalarResponse; }) | import("@kui-shell/core").NavResponse | import("@kui-shell/core/mdist/models/RadioTable").default | import("@kui-shell/core").UsageModel | import("@kui-shell/core").ResourceWithMetadata | import("@kui-shell/core").RawResponse | import("@kui-shell/core").ResourceWithMetadata[]>; /** * Return the currently selected namespace * */ interface CurrentOptions { noNamespaceOk: boolean; } export declare const current: (tab: Tab, opts?: CurrentOptions) => Promise; /** * Switch to use the given openwhisk auth and save * */ export declare const useAndSave: (tab: Tab, auth: string) => Promise | import("@kui-shell/core").XtermResponse | { code: string; } | { errno: string | number; } | (import("@kui-shell/core").Table & Partial) | (import("@kui-shell/core").Abortable & { response: import("@kui-shell/core").ScalarResponse; }) | import("@kui-shell/core").NavResponse | import("@kui-shell/core/mdist/models/RadioTable").default | import("@kui-shell/core").UsageModel | import("@kui-shell/core").ResourceWithMetadata | import("@kui-shell/core").RawResponse | import("@kui-shell/core").ResourceWithMetadata[]>; /** * Switch to use the given openwhisk auth but don't save * */ export declare const use: (tab: Tab, auth: string) => Promise | import("@kui-shell/core").XtermResponse | { code: string; } | { errno: string | number; } | (import("@kui-shell/core").Table & Partial) | (import("@kui-shell/core").Abortable & { response: import("@kui-shell/core").ScalarResponse; }) | import("@kui-shell/core").NavResponse | import("@kui-shell/core/mdist/models/RadioTable").default | import("@kui-shell/core").UsageModel | import("@kui-shell/core").ResourceWithMetadata | import("@kui-shell/core").RawResponse | import("@kui-shell/core").ResourceWithMetadata[]>; /** * Fetch the namespace details for the given namespace, by name * */ export declare const get: (name: any) => Promise; export {};