import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { u as ChannelDirectoryEntry } from "./types.core-BSyOg0vX.js"; import { t as DirectoryConfigParams } from "./directory-types-DRWzcIo9.js"; //#region src/channels/plugins/directory-config-helpers.d.ts declare function applyDirectoryQueryAndLimit(ids: string[], params: { query?: string | null; limit?: number | null; }): string[]; declare function toDirectoryEntries(kind: "user" | "group", ids: string[]): ChannelDirectoryEntry[]; declare function collectNormalizedDirectoryIds(params: { sources: Iterable[]; normalizeId: (entry: string) => string | null | undefined; }): string[]; declare function listDirectoryEntriesFromSources(params: { kind: "user" | "group"; sources: Iterable[]; query?: string | null; limit?: number | null; normalizeId: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listInspectedDirectoryEntriesFromSources(params: DirectoryConfigParams & { kind: "user" | "group"; inspectAccount: (cfg: KlawConfig, accountId?: string | null) => InspectedAccount | null | undefined; resolveSources: (account: InspectedAccount) => Iterable[]; normalizeId: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function createInspectedDirectoryEntriesLister(params: { kind: "user" | "group"; inspectAccount: (cfg: KlawConfig, accountId?: string | null) => InspectedAccount | null | undefined; resolveSources: (account: InspectedAccount) => Iterable[]; normalizeId: (entry: string) => string | null | undefined; }): (configParams: DirectoryConfigParams) => Promise; declare function listResolvedDirectoryEntriesFromSources(params: DirectoryConfigParams & { kind: "user" | "group"; resolveAccount: (cfg: KlawConfig, accountId?: string | null) => ResolvedAccount; resolveSources: (account: ResolvedAccount) => Iterable[]; normalizeId: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function createResolvedDirectoryEntriesLister(params: { kind: "user" | "group"; resolveAccount: (cfg: KlawConfig, accountId?: string | null) => ResolvedAccount; resolveSources: (account: ResolvedAccount) => Iterable[]; normalizeId: (entry: string) => string | null | undefined; }): (configParams: DirectoryConfigParams) => Promise; declare function listDirectoryUserEntriesFromAllowFrom(params: { allowFrom?: readonly unknown[]; query?: string | null; limit?: number | null; normalizeId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listDirectoryUserEntriesFromAllowFromAndMapKeys(params: { allowFrom?: readonly unknown[]; map?: Record; query?: string | null; limit?: number | null; normalizeAllowFromId?: (entry: string) => string | null | undefined; normalizeMapKeyId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listDirectoryGroupEntriesFromMapKeys(params: { groups?: Record; query?: string | null; limit?: number | null; normalizeId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listDirectoryGroupEntriesFromMapKeysAndAllowFrom(params: { groups?: Record; allowFrom?: readonly unknown[]; query?: string | null; limit?: number | null; normalizeMapKeyId?: (entry: string) => string | null | undefined; normalizeAllowFromId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listResolvedDirectoryUserEntriesFromAllowFrom(params: DirectoryConfigParams & { resolveAccount: (cfg: KlawConfig, accountId?: string | null) => ResolvedAccount; resolveAllowFrom: (account: ResolvedAccount) => readonly unknown[] | undefined; normalizeId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; declare function listResolvedDirectoryGroupEntriesFromMapKeys(params: DirectoryConfigParams & { resolveAccount: (cfg: KlawConfig, accountId?: string | null) => ResolvedAccount; resolveGroups: (account: ResolvedAccount) => Record | undefined; normalizeId?: (entry: string) => string | null | undefined; }): ChannelDirectoryEntry[]; //#endregion export { listDirectoryEntriesFromSources as a, listDirectoryUserEntriesFromAllowFrom as c, listResolvedDirectoryEntriesFromSources as d, listResolvedDirectoryGroupEntriesFromMapKeys as f, createResolvedDirectoryEntriesLister as i, listDirectoryUserEntriesFromAllowFromAndMapKeys as l, toDirectoryEntries as m, collectNormalizedDirectoryIds as n, listDirectoryGroupEntriesFromMapKeys as o, listResolvedDirectoryUserEntriesFromAllowFrom as p, createInspectedDirectoryEntriesLister as r, listDirectoryGroupEntriesFromMapKeysAndAllowFrom as s, applyDirectoryQueryAndLimit as t, listInspectedDirectoryEntriesFromSources as u };