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