@bitte-ai/agent-sdk
Version:
Agent SDK for Bitte Protocol
32 lines • 1.09 kB
TypeScript
import { SignRequest, MetaTransaction } from "@bitte-ai/types";
import type { Address, Hex } from "viem";
export * from "./types";
export * from "./erc20";
export * from "./weth";
export * from "./tokens";
export * from "./safe";
export * from "./chain";
export * from "./client";
export declare function hexifyValue(value: string): Hex;
export declare function signRequestFor({ from, chainId, metaTransactions, }: {
from?: Address;
chainId: number;
metaTransactions: MetaTransaction[];
}): SignRequest;
export interface BaseRequest {
headers: {
get(name: string): string | null;
};
}
export interface BaseResponse {
json(data: unknown, init?: {
status?: number;
}): unknown;
}
export declare function fallbackResponder(responseData: object, init?: {
status?: number;
}): BaseResponse;
export declare function validateRequest<TRequest extends BaseRequest, TResponse extends BaseResponse>(req: TRequest, responder?: (data: object, init?: {
status?: number;
}) => TResponse): Promise<TResponse | null>;
//# sourceMappingURL=index.d.ts.map