/** * Write a key pair to a file. * * @param abspath - The path to write the key pair to. * @param name - The name of the key pair. * @param version - The version of the key pair. * @param key - The key pair to write. * @param index_name - The name of the index to write the key pair to. * @param replace - Whether to replace the key pair if it already exists. * @returns The key pair. * @since 1.0.0 * @author Caique Araujo */ export declare function keyPairsToFile(abspath: string, name: string, key: { pk: Buffer; sk: Buffer; }, options?: Partial<{ format: 'pem' | 'raw'; index_name: string; replace: boolean; version: number; }>): Promise<{ index?: string; name: string; pk: string; sk: string; version?: number; }>; /** * Write a secret to a file. * * @param abspath - The path to write the secret to. * @param name - The name of the secret. * @param version - The version of the secret. * @param secret - The secret to write. * @param index_name - The name of the index to write the secret to. * @param replace - Whether to replace the secret if it already exists. * @returns The secret. * @since 1.0.0 * @author Caique Araujo */ export declare function secretToFile(abspath: string, name: string, secret: Buffer, options?: Partial<{ index_name: string; replace: boolean; version: number; }>): Promise<{ file: string; index?: string; name: string; version?: number; }>;