import type { Document } from '@adyen/adyen-document-viewer';
import type { LoadingStatus } from '../../../ui/atoms/LoaderWrapper/constants';
import type { ServiceAgreementType } from './types';
type ServiceAgreement = {
    id: string;
    contract: Document;
};
interface UseServiceAgreementArgs {
    handleServiceAgreementIsNotAvailableInThatLanguage: () => void;
    acceptanceId?: string;
    serviceAgreementType: ServiceAgreementType;
    /** the first part of a locale, e.g. "en" for "en-US" */
    language: string;
}
type FetchedServiceAgreement = {
    loading: LoadingStatus;
    serviceAgreement: ServiceAgreement | undefined;
};
export declare const useServiceAgreement: ({ handleServiceAgreementIsNotAvailableInThatLanguage, acceptanceId, serviceAgreementType, language, }: UseServiceAgreementArgs) => FetchedServiceAgreement;
export {};
