@alloyidentity/web-sdk
Version:
Alloy Web Document SDK
9 lines (8 loc) • 819 B
TypeScript
import { ActionRuntimeTransport, BrowserContext, CanonicalActionEvent, ErrorWithCode } from './types';
export declare const createErrorWithCode: <Code extends string>(code: Code, message?: string) => ErrorWithCode<Code>;
export declare const getErrorCode: (error: unknown) => string;
export declare const isPromiseLike: (value: unknown) => value is Promise<unknown>;
export declare const getBrowserContext: () => BrowserContext;
export declare const emitCanonicalActionEvent: (event: CanonicalActionEvent) => void;
export declare const getActionRuntimeIframeUrl: (apiBaseUrl: string, sdkKey: string) => string;
export declare const cleanupActionRuntimeTransport: (transport: ActionRuntimeTransport | null, setActiveTransport: (next: ActionRuntimeTransport | null) => void, reportError: (err: unknown) => void) => null;