/** * Directory entries for the conversations a surface has ALREADY talked to. * * Every channel adapter upserts a route binding on ingress carrying the * originating channel/thread, so an entry exists here for any conversation * that has ever sent a message, with no configuration whatsoever. The * optional per-surface config fields (`defaultChatId`, `botUsername`, and * their equivalents) exist to INITIATE contact with somewhere nobody has * written from; gating the whole provider directory on them is what let a * fresh install receive messages and offer no target to answer them with. * * Kept beside targets.ts rather than inside it so the per-surface directory * lookups stay readable: this is one rule, applied identically fourteen times. */ import type { RouteBindingManager } from '../route-manager.js'; import type { ChannelDirectoryEntry, ChannelSurface } from '../types.js'; export interface DirectoryBindingSource { readonly deps: { readonly routeBindings: Pick; }; } export declare function directoryEntriesFromBindings(context: DirectoryBindingSource, surface: ChannelSurface, provider: string): ChannelDirectoryEntry[]; //# sourceMappingURL=directory-bindings.d.ts.map