export declare function isSdkException(error: unknown): error is { status: number; message: string; requestID: string; code?: string; errors?: Array<{ message: string; }>; }; /** * Create a resource-specific API error handler. * Handles raw fetch errors (WorkOSApiError), SDK exceptions, and the SDK's * "errors is not iterable" TypeError from malformed 422 responses. * * `context` optionally names the specific resource instance (e.g. a vault * object name) so 404 messages can be more specific. */ export declare function createApiErrorHandler(resourceName: string): (error: unknown, context?: string) => never;