UNPKG

@oap75/api

Version:
11 lines (10 loc) 736 B
import { Space, Post } from '@subsocial/types/substrate/interfaces'; import { Visibility } from './types'; declare type StructWithHidden = Space | Post; export declare const isHidden: (struct?: StructWithHidden | undefined) => boolean; export declare const isVisible: (struct?: StructWithHidden | undefined) => struct is StructWithHidden; export declare const isEmptyContent: (struct?: StructWithHidden | undefined) => boolean; export declare const isUnlisted: (struct?: StructWithHidden | undefined) => boolean; export declare const isPublic: (struct?: StructWithHidden | undefined) => struct is StructWithHidden; export declare function visibilityFilter<T extends StructWithHidden>(structs: T[], filter?: Visibility): T[]; export {};