import { Ib } from '@ibgib/ts-gib/dist/types.mjs'; import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs'; import { WitnessFormBuilder } from '../../../witness/witness-form-builder.mjs'; import { SubjectData_V1, SubjectIbGib_V1, SubjectWitness } from './subject-types.mjs'; export declare function validateCommonSubjectData({ data, }: { data?: SubjectData_V1; }): string[]; export declare function validateCommonSubjectIbGib({ ibGib, }: { ibGib: SubjectIbGib_V1; }): Promise; /** * builds/rebuilds the ib for Subject based on incoming `data` and `classname`. * * note that if `data.classname` is truthy, it must match `classname` if also * truthy. (`data` is required, but may not necessarily have `classname` in it.) * * @returns ib based on params */ export declare function getSubjectIb({ data, classname, }: { data: SubjectData_V1; classname?: string; }): Ib; /** * Current schema is 'witness [SUBJECT_ATOM] [classname] [SubjectName] [SubjectId]' * * NOTE this is space-delimited */ export declare function parseSubjectIb({ ib, }: { ib: Ib; }): { SubjectClassname: string; SubjectName: string; SubjectId: string; }; export declare class SubjectFormBuilder extends WitnessFormBuilder { protected lc: string; constructor(); } /** * helper function to determine if the given `ibGib` is an observer, i.e., * fulfills the {@link Observer} contract. * * atow (11/2023) the minimal requirement is `ibGib.next` to be a function. * * @returns true if fulfills the {@link Observer} contract. */ export declare function isObserver({ ibGib, }: { ibGib: IbGib_V1; }): boolean; /** * Uses {@link Subject_V1_Factory} to new up a blank subject. * * ## future * * in the future, will see about adding a space for persisting this subject (and * possibly published events). * * @returns subject */ export declare function newupSubject({ data, replay, }?: { data?: SubjectData_V1; replay?: boolean; }): Promise>; //# sourceMappingURL=subject-helper.d.mts.map