import { OneChatMessage } from '../../../context/ChannelStateContext'; import type { ReactEventHandler } from '../types'; import type { DefaultOneChatGenerics } from '../../../types'; export declare type PinEnabledUserRoles = Partial> & { admin?: boolean; anonymous?: boolean; channel_member?: boolean; channel_moderator?: boolean; guest?: boolean; member?: boolean; moderator?: boolean; owner?: boolean; user?: boolean; }; export declare type PinPermissions = Partial>> & { commerce?: PinEnabledUserRoles; gaming?: PinEnabledUserRoles; livestream?: PinEnabledUserRoles; messaging?: PinEnabledUserRoles; team?: PinEnabledUserRoles; }; export declare type PinMessageNotifications = { getErrorNotification?: (message: OneChatMessage) => string; notify?: (notificationText: string, type: 'success' | 'error') => void; }; export declare const usePinHandler: (message: OneChatMessage, _permissions?: PinPermissions, notifications?: PinMessageNotifications) => { canPin: boolean; handlePin: ReactEventHandler; }; //# sourceMappingURL=usePinHandler.d.ts.map