BellD / DevelopersDocumentation · latest

client.ts

Source: sdk/typescript/src/client.ts

import type { BellDCapabilities } from './generated/capabilities.js';
export interface BellDRequest {
    headers: Record<string, string | string[] | undefined> | {
        get(name: string): string | null;
    };
}
export type BellD = BellDCapabilities & {
    withRequest<T>(req: BellDRequest, fn: () => T): T;
};
export interface BellDOptions {
    endpoint?: string;
    /** Total HTTP call deadline, including connection and response body. Default: 30 seconds. */
    timeoutMs?: number;
}
export declare function createBellD(options?: BellDOptions): BellD;
export declare const belld: BellD;