import { type AuthenticatingInvitationObservable, type CancellableInvitationObservable, Invitation } from '@dxos/client/invitations';
type HostInvitationParams = {
    observable: CancellableInvitationObservable;
    callbacks?: {
        onConnecting?: (invitation: Invitation) => Promise<void>;
        onSuccess?: (invitation: Invitation) => Promise<void>;
    };
    peersNumber?: number;
    waitForSuccess?: boolean;
};
export declare const hostInvitation: ({ observable, callbacks, peersNumber, waitForSuccess, }: HostInvitationParams) => Promise<Invitation>;
export declare const acceptInvitation: ({ observable, callbacks, }: {
    observable: AuthenticatingInvitationObservable;
    callbacks?: {
        onConnecting?: (invitation: Invitation) => Promise<void>;
        onReadyForAuth?: (invitation: Invitation) => Promise<string | void>;
        onSuccess?: (invitation: Invitation) => Promise<void>;
    };
}) => Promise<Invitation>;
export {};
//# sourceMappingURL=invitations.d.ts.map