import type { CommonPubConfig } from '@commonpub/config'; import type { WebFingerResponse, NodeInfoResponse } from './types.js'; export interface FederationHandlers { handleWebFinger: (resource: string) => Promise; handleNodeInfo: () => Promise; handleNodeInfoWellKnown: () => { links: Array<{ rel: string; href: string; }>; }; } export interface CreateFederationOptions { config: CommonPubConfig; version: string; lookupUser: (username: string) => Promise<{ id: string; username: string; actorUri: string; } | null>; getStats: () => Promise<{ userCount: number; activeMonthCount: number; localPostCount: number; }>; } export declare function createFederation(options: CreateFederationOptions): FederationHandlers | null; //# sourceMappingURL=federation.d.ts.map