import { Gib, Ib } from '@ibgib/ts-gib/dist/types.mjs'; import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs'; import { WitnessFormBuilder } from '../witness-form-builder.mjs'; import { IbGibRobbotAny } from './robbot-base-v1.mjs'; import { RobbotData_V1, RobbotIbGib_V1, RobbotInteractionData_V1, RobbotInteractionIbGib_V1, RobbotInteractionIbInfo, RobbotInteractionRel8ns_V1, RobbotPromptResult } from './robbot-types.mjs'; import { IbGibSpaceAny } from '../space/space-base-v1.mjs'; import { MetaspaceService } from '../space/metaspace/metaspace-types.mjs'; export declare function getRobbotResultMetadata({ robbot }: { robbot: IbGibRobbotAny; }): string; export declare function validateCommonRobbotData({ robbotData, }: { robbotData?: RobbotData_V1; }): string[]; export declare function validateCommonRobbotIbGib({ robbotIbGib, }: { robbotIbGib: RobbotIbGib_V1; }): Promise; export declare function getRobbotIb({ robbotData, classname, }: { robbotData: RobbotData_V1; classname?: string; }): Ib; /** * Current schema is `witness robbot [classname] [robbotName] [robbotId] * * NOTE this is space-delimited */ export declare function parseRobbotIb({ robbotIb, }: { robbotIb: Ib; }): { robbotClassname: string; robbotName: string; robbotId: string; }; /** * Prompts the user a form to build the robbot. * * Once prompted, the robbot is: * 1. validated * 2. persisted in the given {@link space} * 3. registered with the space * 4. related to the space's special robbots index * 5. new robbot is returned * * @returns newly created robbot ibgib (witness) */ export declare function createNewRobbot({ fnPromptRobbot, ibgibs, space, }: { fnPromptRobbot: (space: IbGibSpaceAny, ibGib: RobbotIbGib_V1 | null) => Promise; /** * Either {@link common} or {@link ibgibs} is required * @hack */ ibgibs?: MetaspaceService; /** * space within which to create the robbot. if not provided, the * defaults to the local user space via {@link common} or {@link ibgibs}. */ space: IbGibSpaceAny; }): Promise; export declare class RobbotFormBuilder extends WitnessFormBuilder { protected lc: string; constructor(); outputPrefix({ of, required, defaultValue, }: { of: string; required?: boolean; defaultValue?: string; }): RobbotFormBuilder; outputSuffix({ of, required, defaultValue, }: { of: string; required?: boolean; defaultValue?: string; }): RobbotFormBuilder; } /** * checks to see if the comment is an ibgib and if that comment starts * with the escape sequence. */ export declare function isRequestComment({ ibGib, requestEscapeString, }: { ibGib: IbGib_V1; requestEscapeString?: string; }): boolean; /** * Strips the request escape string and any non-alphanumeric characters except spaces, * returning the rest fo the string up to `maxLength`. * * This does *not* interpret anything beyond this. */ export declare function getSpaceDelimitedSaferRequestText({ ibGib, requestEscapeString, lowercase, maxLength, }: { ibGib: IbGib_V1; requestEscapeString?: string; lowercase?: boolean; maxLength?: number; }): string; /** * Creates space-delimited ib. Extracts certain info from `data` and appends * addlDetailsText at the end. * * atow the schema is: * * return addlDetailsText ? * `${ROBBOT_INTERACTION_ATOM} ${data.type} ${timestampInTicks} ${subjectTjpGibsString} ${addlDetailsText}` : * `${ROBBOT_INTERACTION_ATOM} ${data.type} ${timestampInTicks} ${subjectTjpGibsString}`; * * @returns space-delimited interaction ib */ export declare function getInteractionIb({ data, addlDetailsText, }: { data: RobbotInteractionData_V1; addlDetailsText?: string; }): Ib; export declare function parseInteractionIb({ ib, }: { ib: Ib; }): RobbotInteractionIbInfo; export declare function isInteraction({ ibGib, ib, }: { ibGib?: IbGib_V1; ib?: Ib; }): boolean; /** * creates an ibgib stone (no tjp) that contains the interaction info. * * @returns interaction ibgib stone */ export declare function getInteractionIbGib_V1({ data, rel8ns, addlDetailsText, }: { /** * beginning data that may be mutated in this function. */ data: RobbotInteractionData_V1; /** * beginning rel8ns that may be mutated in this function. */ rel8ns?: RobbotInteractionRel8ns_V1; /** * for use in creating the ib per use case, if provided * * atow, I'm not using this. */ addlDetailsText?: string; }): Promise; export declare function getRobbotSessionIb({ robbot, timestampInTicks, sessionId, contextTjpGib, addlMetadata, }: { robbot: IbGibRobbotAny; timestampInTicks: string; sessionId: string; contextTjpGib: Gib; addlMetadata?: string; }): string; export declare function parseRobbotSessionIb({ ib, }: { ib: Ib; }): { timestamp: string; robbotName: string; robbotClassname: string; robbotId: string; robbotTjpGib: Gib; sessionId: string; contextTjpGib: Gib; addlMetadata: string; }; //# sourceMappingURL=robbot-helper.d.mts.map