import { SignedFetchRequest } from "~system/SignedFetch";
import { PBRealmInfo } from "~system/Runtime";
type Opts = {
    toCamelCase?: boolean;
};
export declare function wrapSignedFetch<T extends any = unknown>(signedFetchBody: SignedFetchRequest, opts?: Opts): Promise<Result<T, string>>;
export type Success<T> = [null, T];
export type Failure<E> = [E, null];
export type Result<T, E = Error> = Success<T> | Failure<E>;
export declare function tryCatch<T, E = Error>(promise: Promise<T>): Promise<Result<T, E>>;
export declare function getRealm(): Promise<PBRealmInfo | undefined>;
export declare function isPreview(): boolean;
export declare function getDomain(): "org" | "zone";
export {};
