import { NotaryToolApiKeyCredentials, NotaryToolPasswordCredentials } from "@electron/notarize/lib/types";
type SecureNotaryToolPasswordCredentials = Omit<NotaryToolPasswordCredentials, "appleIdPassword"> & {
    $appSpecificPassword: string;
};
type SecureNotaryToolApiKeyCredentials = Omit<NotaryToolApiKeyCredentials, "appleApiKey"> & {
    $appleApiKey: string;
};
export type AppleIdObject = SecureNotaryToolPasswordCredentials | SecureNotaryToolApiKeyCredentials;
export interface NotarizeCredentials {
    appleIdObject: AppleIdObject;
    cleanup: () => Promise<void>;
}
export interface HsmSecretFile {
    secretFilePath: string;
    cleanup: () => Promise<void>;
}
export declare function getNotarizationSecretsFromHSM(credentialsWithoutSecret: AppleIdObject): Promise<NotaryToolPasswordCredentials | NotaryToolApiKeyCredentials>;
export declare function notarizeWithTimeout(credentialsWithoutSecret: AppleIdObject, appPath: string): Promise<void>;
export {};
