@cossistant/next
Version:
Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.
26 lines (25 loc) • 846 B
TypeScript
import { ReactElement } from "react";
//#region ../react/src/identify-visitor.d.ts
type IdentifySupportVisitorProps = {
externalId?: string;
email?: string;
name?: string | null;
image?: string | null;
metadata?: VisitorMetadata | null;
};
/**
* Component exposed by Cossistant allowing you to identify a visitor whenever rendered with either an `externalId` or `email`. Once identified, the visitor will be associated with a contact and any subsequent metadata updates will be attached to this contact.
*/
declare const IdentifySupportVisitor: {
({
externalId,
email,
name,
image,
metadata: _newMetadata
}: IdentifySupportVisitorProps): ReactElement | null;
displayName: string;
};
//#endregion
export { IdentifySupportVisitor, IdentifySupportVisitorProps };
//# sourceMappingURL=identify-visitor2.d.ts.map