import type { AuthorCreditNameT, Transaction } from './types'; import type Bookshelf from '@metabrainz/bookshelf'; import type { ORM } from '..'; export declare function fetchOrCreateCredit(orm: ORM, transacting: Transaction, authorCredit: Array): Promise; export declare function updateAuthorCredit(orm: ORM, transacting: Transaction, oldCredit: any, newCreditNames: Array): Promise; /** * Fetches all the Edition entities credited to an Author (with Author Credits) * @param {Bookshelf} bookshelf - the Bookshelf instance, initialized during app setup * @param {string} authorBBID - The target Author's BBID. * @returns {Promise} The returned Promise returns the Edition BBID and default alias */ export declare function getEditionsCreditedToAuthor(bookshelf: Bookshelf, authorBBID: string): Promise; /** * Fetches all the Edition Group entities credited to an Author (with Author Credits) * @param {Bookshelf} bookshelf - the Bookshelf instance, initialized during app setup * @param {string} authorBBID - The target Author's BBID. * @returns {Promise} The returned Promise returns the Edition Group BBID and default alias */ export declare function getEditionGroupsCreditedToAuthor(bookshelf: Bookshelf, authorBBID: string): Promise; type AliasAndBBIDRow = { name: string; bbid: string; }; export {};