import type { ApplicationEncryptor, Maxcryptor } from "@raytio/maxcryptor"; import type { AId, CommonFields as CommonNodeFields, KId } from "@raytio/types"; type PublicKeyNode = CommonNodeFields & { public_key_name: string; public_key_description: string; public_key: JsonWebKey; }; /** * Fetches the Public Key Information for an Access Application * @returns the id and Key information of the Applications Public Key */ export declare function getAAPublicKey({ apiUrl, apiToken, aId, }: { apiUrl: string; apiToken?: string; aId: AId; }): Promise; /** * Fetchs the public and private keys for an Access Application, then initializes * the {@link https://npm.im/@raytio/maxcryptor|Maxcryptor}'s `ApplicationEncryptor`. * @returns an `ApplicationEncryptor` and the public key of the Access Application */ export declare function getAADecryptor({ aId, apiUrl, maxcryptor, apiToken, }: { aId: AId; apiUrl: string; maxcryptor: Maxcryptor; apiToken: string; }): Promise<{ decryptor: ApplicationEncryptor; publicKeyId: KId; }>; export {};