solid-panes
Version:
Solid-compatible Panes: applets and views for the mashlib and databrowser
30 lines • 1.22 kB
TypeScript
import './socialPane.css';
import { LiveStore, NamedNode } from 'rdflib';
import { DataBrowserContext } from 'pane-registry';
export declare const socialPane: {
icon: string;
name: string;
label: (subject: any, context: any) => "Friends" | null;
global: boolean;
render: (s: any, context: any) => any;
};
export interface ProfileDetails {
url: string;
imageUrl?: string;
name?: string;
nickname?: string;
jobTitle?: string;
organization?: string;
location?: string | null;
pronouns?: string;
birthdate?: string;
}
export interface FriendDetails extends ProfileDetails {
subjectNode: NamedNode;
}
export declare function pronounsAsText(store: LiveStore, subject: NamedNode): string;
export declare function streamFriends(context: DataBrowserContext, subject: NamedNode, batchSize?: number): AsyncGenerator<FriendDetails[], void, void>;
export declare function extractFriends(context: DataBrowserContext, subject: NamedNode): Promise<FriendDetails[] | null>;
export declare function selectProfileData(context: DataBrowserContext, subject: NamedNode): ProfileDetails | null;
export type { ViewerMode } from './socialSections';
//# sourceMappingURL=socialPane.d.ts.map