export declare type SerializableScalar = string | number | boolean | null | undefined | unknown; export interface SerializableObject { [key: string]: SerializableScalar | SerializableObject | SerializableArray; } export declare function isSerializableObject(object: unknown): object is SerializableObject; export declare type SerializableArray = Array; export declare type Serializable = SerializableScalar | SerializableObject | SerializableArray; export interface RequestOptions { url: string; method?: string; envelope?: boolean; headers?: Record; data?: unknown; } export declare type RequestHeaders = Record; export interface SuccessResponse { ok: true; status: number; response: R; } export interface ErrorResponse { ok: false; status: number; error: unknown; } export declare type NetworkResponse = SuccessResponse | ErrorResponse;