import { ChannelIdentityFragment, DmIdentityFragment } from 'shared/graphql/__generated__'; import { IChannelItemProps } from './components/channel-item'; interface IChannelIdentities { items: T[]; } declare type OriginalItem = T & { channel: NonNullable & { members: NonNullable['members']>; }; }; declare type ChannelItem = { id: string; channelIdentityId: string; } & Pick; /** * Takes user's channel identities and converts them to fit ChannelItemProps * @param channelIdentities - User's channel identities */ export declare function toChannelItemProps(channelIdentities: IChannelIdentities, transform?: (item: ChannelItem, originalItem: OriginalItem) => ChannelItem): ChannelItem[]; export {};