import type { DirectorySyncEvent } from "@boxyhq/saml-jackson";
type ScimUserAttributeName = string;
type ScimUserAttributeValue = string | string[];
/**
 * event.data.raw has this format
 * {
 *   "schemas": [
 *     "urn:ietf:params:scim:schemas:core:2.0:User",
 *     "segment",
 *     "territory"
 *   ],
 *   "userName": "member@samldemo.com",
 *   "name": {
 *     "givenName": "Member SAML Demo",
 *     "familyName": "Member SAML Demo"
 *   },
 *   "emails": [
 *     {
 *       "primary": true,
 *       "value": "member@samldemo.com"
 *     }
 *   ],
 *   "displayName": "Member SAML Demo",
 *   "territory": {
 *     "territory": "NAM"
 *   },
 *   "segment": {
 *     "segment": "SMB"
 *   },
 *   "externalId": "00ukzk1wrsKZqofit5d7",
 *   "groups": [],
 *   "active": true,
 *   "id": "b36ba9fa-783b-44e6-a770-a652cb9d71ba"
 * }
 *
 * Transforms above to
 * {
 *   "territory": "NAM",
 *   "segment": "SMB"
 * }
 */
declare function getAttributesFromScimPayload({ event, directoryId, }: {
    event: DirectorySyncEvent;
    directoryId: string;
}): Record<ScimUserAttributeName, ScimUserAttributeValue>;
export default getAttributesFromScimPayload;
//# sourceMappingURL=getAttributesFromScimPayload.d.ts.map