export declare enum ErrorCodes { NOT_FOUND = "404-000", UNKNOWN_ERROR = "500-000", DISCOVERY_FAILED = "500-001", DISCOVERY_INVALID_RESPONSE = "500-001i", DISCOVERY_NETWORK_ERROR = "500-001n", DISCOVERY_AUTH_FAILED = "500-001a", DISCOVERY_TEMPLATE_FAILED = "500-001t", NO_SOURCE = "500-002", NO_SANDBOXES = "500-003", NO_SUBORGS = "500-004", NO_FLAGS = "500-005", NO_USER_DATA = "500-006", NO_PROFILE = "500-007", TOKEN_MISMATCH = "500-008" } export declare enum ErrorTypes { COLLABORATOR_FAIL = "COLLABORATOR_FAIL", INSTANCE_FAIL = "INSTANCE_FAIL", COOKIE_NEEDED = "COOKIE_NEEDED", LOCAL_TIMEOUT = "LOCAL_TIMEOUT", NO_SANDBOXES = "NO_SANDBOXES", NOT_FOUND = "NOT_FOUND", OFFLINE = "OFFLINE", RESTRICTED_PBA = "RESTRICTED_PBA", RATE_LIMIT = "RATE_LIMIT", RESTRICTED_IP = "RESTRICTED_IP", SANDBOX_FAIL = "SANDBOX_FAIL", SUBORG_FAIL = "SUBORG_FAIL", TIMEOUT = "TIMEOUT", UNKNOWN = "UNKNOWN", VERSION_NOTFOUND = "VERSION_NOTFOUND", ZERO_TOUCH = "ZERO_TOUCH" } export interface ShowOptions { code?: ErrorCodes; type?: ErrorTypes; } /** * APIs to process errors. */ export interface ErrorApi { /** * Shows an error screen in the UI based on the code and type options. * @param options The options to define what is shown in the error screen. */ show(options?: ShowOptions): void; } declare const error: ErrorApi; export default error;