import { type AnyPodResource } from './repository.js'; import { type SolidProfileRow } from './profile.schema.js'; export interface SolidProfileIdentity { webId: string; profile: SolidProfileRow | null; displayName: string | null; username: string; } export interface SolidProfileRepositoryReader { findByIri(resource: AnyPodResource, iri: string): Promise; } export declare const profileRepository: { findByWebId(db: SolidProfileRepositoryReader, webId: string): Promise; resolveDisplayName(db: SolidProfileRepositoryReader, webId: string): Promise; resolveIdentity(db: SolidProfileRepositoryReader, webId: string): Promise; namespace: string; resourcePath: string; searchableFields?: ("name" | "favorite" | "inbox" | "id" | "nick" | "avatar" | "note" | "email" | "phone" | "region" | "gender")[] | undefined; defaultSort?: { field: "name" | "favorite" | "inbox" | "id" | "nick" | "avatar" | "note" | "email" | "phone" | "region" | "gender"; direction: "asc" | "desc"; } | undefined; cache?: import("@undefineds.co/drizzle-solid/dist/core/repository.js").RepositoryCacheOptions; invalidations: import("@undefineds.co/drizzle-solid/dist/core/repository.js").RepositoryInvalidations; list: (db: import("@undefineds.co/drizzle-solid/dist/driver.js").SolidDatabase, filters?: Record | undefined) => Promise<{ id: string; name: string; nick: string; avatar: string; note: string; email: string; phone: string; region: string; gender: string; favorite: string; inbox: string; }[]>; detail: (db: import("@undefineds.co/drizzle-solid/dist/driver.js").SolidDatabase, id: string) => Promise<{ id: string; name: string; nick: string; avatar: string; note: string; email: string; phone: string; region: string; gender: string; favorite: string; inbox: string; } | null>; create?: ((db: import("@undefineds.co/drizzle-solid/dist/driver.js").SolidDatabase, input: { id?: string | undefined; name?: string | undefined; nick?: string | undefined; avatar?: string | undefined; note?: string | undefined; email?: string | undefined; phone?: string | undefined; region?: string | undefined; gender?: string | undefined; favorite?: string | undefined; inbox?: string | undefined; }) => Promise<{ id: string; name: string; nick: string; avatar: string; note: string; email: string; phone: string; region: string; gender: string; favorite: string; inbox: string; }>) | undefined; update?: ((db: import("@undefineds.co/drizzle-solid/dist/driver.js").SolidDatabase, id: string, input: { id?: string | null | undefined; name?: string | null | undefined; nick?: string | null | undefined; avatar?: string | null | undefined; note?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; region?: string | null | undefined; gender?: string | null | undefined; favorite?: string | null | undefined; inbox?: string | null | undefined; }) => Promise<{ id: string; name: string; nick: string; avatar: string; note: string; email: string; phone: string; region: string; gender: string; favorite: string; inbox: string; }>) | undefined; remove?: (db: import("@undefineds.co/drizzle-solid/dist/driver.js").SolidDatabase, id: string) => Promise<{ id: string; }>; }; export declare function pickSolidProfileDisplayName(profile: Pick | null | undefined): string | null;