import { InitializeOptions } from "../interfaces"; import { TraceloopClient } from "../client/traceloop-client"; export declare let _configuration: InitializeOptions | undefined; /** * Initializes the Traceloop SDK and creates a singleton client instance if API key is provided. * Must be called once before any other SDK methods. * * @param options - The options to initialize the SDK. See the {@link InitializeOptions} for details. * @returns TraceloopClient - The singleton client instance if API key is provided, otherwise undefined. * @throws {InitializationError} if the configuration is invalid or if failed to fetch feature data. * * @example * ```typescript * initialize({ * apiKey: 'your-api-key', * appName: 'your-app', * }); * ``` */ export declare const initialize: (options?: InitializeOptions) => TraceloopClient | undefined; /** * Gets the singleton instance of the TraceloopClient. * The SDK must be initialized with an API key before calling this function. * * @returns The TraceloopClient singleton instance * @throws {Error} if the SDK hasn't been initialized or was initialized without an API key * * @example * ```typescript * const client = getClient(); * await client.annotation.create({ annotationTask: 'taskId', entityInstanceId: 'entityId', tags: { score: 0.9 } }); * ``` */ export declare const getClient: () => TraceloopClient; //# sourceMappingURL=index.d.ts.map