import type { AgentBasicInformation } from '../../../../book-2.0/agent-source/AgentBasicInformation'; import type { string_book } from '../../../../book-2.0/agent-source/string_book'; import type { CreateAgentInput } from '../../CreateAgentInput'; import type { AgentsDatabaseSchema } from './AgentsDatabaseSchema'; /** * Optional persistence overrides for one new agent row. * * @private shared persistence helper for `AgentCollectionInSupabase` */ export type CreateAgentPersistenceRecordsOptions = Omit; /** * Prepared insert rows and returned profile for one newly persisted agent. * * @private shared persistence helper for `AgentCollectionInSupabase` */ export type CreateAgentPersistenceRecordsResult = { /** * Parsed created agent profile including the resolved permanent id. */ readonly createdAgent: AgentBasicInformation & Required>; /** * Insert row for the `Agent` table. */ readonly agentInsertRecord: AgentsDatabaseSchema['public']['Tables']['Agent']['Insert']; /** * Insert row for the `AgentHistory` table. */ readonly agentHistoryInsertRecord: AgentsDatabaseSchema['public']['Tables']['AgentHistory']['Insert']; }; /** * Builds normalized insert rows for a newly created persisted agent. * * @param agentSource - Source content of the agent. * @param options - Optional folder placement, ordering, and visibility overrides. * @param createdAt - Shared creation timestamp used across all persisted rows. * @returns Insert rows and the created agent profile. * * @private shared persistence helper for `AgentCollectionInSupabase` */ export declare function createAgentPersistenceRecords(agentSource: string_book, options?: CreateAgentPersistenceRecordsOptions, createdAt?: string): CreateAgentPersistenceRecordsResult;