/** * @fileoverview Lightweight dev store seeder for BrightDB-backed applications. * * Creates three members (system, admin, member) using MemberStore.createMember() * and prints their credentials so the user can log in during development. * * This is the base-level seeding that works with only brightchain-lib + db. * The full BrightChain RBAC seeding (roles, user-roles, mnemonics) lives in * brightchain-api-lib's BrightChainDatabasePlugin.initializeDevStore() override. * * @module services/dev-store-seeder */ import type { IBlockStore } from '@brightchain/brightchain-lib'; import { MemberStore } from '@brightchain/brightchain-lib'; import type { BrightDb } from '@brightchain/db'; import { MemberType } from '@digitaldefiance/ecies-lib'; import { type PlatformID } from '@digitaldefiance/node-ecies-lib'; /** * Result of a single member creation during dev seeding. */ export interface IDevMemberResult { label: string; name: string; email: string; mnemonic: string; publicKeyHex: string; id: string; type: MemberType; } /** * Full result of dev store seeding. */ export interface IDevStoreSeederResult { members: IDevMemberResult[]; poolName: string; } /** * Seed the dev database with basic members and print their credentials. * * @param blockStore - The block store backing the BrightDb instance. * @param db - The BrightDb instance to seed. * @param poolName - The dev pool name (for display purposes). * @param emailDomain - Domain for dev member email addresses (e.g. 'example.com'). * @returns The seeding result with member credentials. */ export declare function seedDevStore(blockStore: IBlockStore, db: BrightDb, poolName: string, emailDomain?: string, existingMemberStore?: MemberStore): Promise; /** * Print dev store seeding results to the console. */ export declare function printDevStoreResults(result: IDevStoreSeederResult): void; //# sourceMappingURL=dev-store-seeder.d.ts.map