import { Settings } from './settings'; import { CallStackEntry, WeaveClient } from './weaveClient'; export declare let globalClient: WeaveClient | null; interface InitOptions { project?: string; apiKey?: string; host?: string; settings?: Settings; } interface LoginOptions { apiKey: string; host?: string; } /** * Log in to Weights & Biases (W&B) using the provided API key. * * @param {string} apiKey - Your W&B API key. * @param {string} [host] - (Optional) The host name (usually only needed if you're using a custom W&B server). * @throws {Error} If the API key is not specified or if the connection to the weave trace server cannot be verified. */ export declare function login(apiKeyOrOptions: string | LoginOptions): Promise; /** * Initialize the Weave client, which is required for weave tracing to work. * * @param projectOrOptions - Either a project string (entity/project) or initialization options * @param settings - (Optional) Weave tracing settings when using project string format * @returns A promise that resolves to the initialized Weave client. * @throws {Error} If the initialization fails */ export declare function init(projectOrOptions: string | InitOptions, settings?: Settings): Promise; export declare function requireCurrentCallStackEntry(): CallStackEntry; export declare function requireCurrentChildSummary(): { [key: string]: any; }; export declare function getGlobalClient(): WeaveClient | null; export declare function requireGlobalClient(): WeaveClient; export declare function setGlobalClient(client: WeaveClient): void; export {}; //# sourceMappingURL=clientApi.d.ts.map