import type { RowOf } from '@stacksjs/database/runtime'; /** * Find an existing author by name or email, or create a new one if not found * * @param data The author data to find or create * @returns The found or created author record */ export declare function findOrCreate(data: AuthorData): Promise; /** * Find or create an author by name or email * * @param data The author data to find or create * @returns The found or created author record */ export declare function store(data: NewAuthor): Promise; declare interface AuthorData { name: string email: string } declare type AuthorJsonResponse = RowOf<'authors'>; declare type NewAuthor = NewModelData;