type TrustedService = {
    did: string;
    name: string;
    endpoint: string;
};
type InboxService = {
    id: string;
    type: string | string[];
    serviceEndpoint?: string;
    serviceDid?: string;
};
type DidDocumentWithServices = {
    service?: InboxService[];
};
export declare const getServerDidWebDID: (_domain: string) => string;
export declare const getServerDidFromUserDid: (userDid: string) => string | null;
export declare const isServiceTrusted: (senderDid: string, domain: string) => Promise<boolean>;
export declare const getTrustedServices: (domain: string) => Promise<TrustedService[]>;
export declare const clearTrustRegistryCache: () => void;
export declare const extractInboxService: (didDoc: DidDocumentWithServices) => InboxService | null;
export declare const extractInboxServiceEndpoint: (didDoc: DidDocumentWithServices) => string | null;
export declare const extractInboxServiceServiceDid: (didDoc: DidDocumentWithServices) => string | null;
export declare const getOwningServiceDid: (did: string) => Promise<string | null>;
export type InboxServiceResult = {
    type: 'local';
    endpoint: string;
} | {
    type: 'remote';
    endpoint: string;
} | {
    type: 'not_found';
    error: string;
};
export declare const findInboxServiceEndpoint: (recipientDid: string, domain: string) => Promise<InboxServiceResult>;
export {};
//# sourceMappingURL=federation.helpers.d.ts.map