/** * REST API Connect Implementation * * Client-side implementation of HazoConnect that uses fetch to call API endpoints. * Suitable for use in browser components and client-side React applications. */ import type { HazoConnect, RestApiConnectOptions } from './types.js'; /** * Create a REST API connect instance * * @param options - Configuration options or just the base URL string * @returns HazoConnect implementation using REST API * * @example Basic usage * ```typescript * const connect = create_rest_api_connect('/api/prompts'); * const { success, data } = await connect.get_all(); * ``` * * @example With options * ```typescript * const connect = create_rest_api_connect({ * base_url: '/api/prompts', * headers: { 'Authorization': 'Bearer token' }, * }); * ``` */ export declare function create_rest_api_connect(options: RestApiConnectOptions | string): HazoConnect; //# sourceMappingURL=rest_api_connect.d.ts.map