import { Ib, TransformResult } from '@ibgib/ts-gib/dist/types.mjs'; import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs'; import { IbGibSpaceAny } from '../../witness/space/space-base-v1.mjs'; import { CommentIbGib_V1 } from './comment-types.mjs'; /** * generates an ib based on the comment text. * * Basically this gets a short substring of the comment text and replaces * any non alphanumeric characters. * * @param commentText comment text * @returns comment ib for the given comment text */ export declare function getCommentIb({ commentText, addlMetadataText, }: { commentText: string; /** * Optional metadata string to be included in the comment's ib. * Should be underscore-delimited but not a hard rule atow. * * @example "comment thisisacomm here_is_addl_metadata" */ addlMetadataText?: string; }): string; export declare function parseCommentIb({ ib, }: { ib: Ib; }): { safeIbCommentText: string; safeIbCommentMetadataText?: string; }; /** * creates a comment ibgib, returning the transform result, * optionally saving it in a given {@link space}. */ export declare function createCommentIbGib({ text, addlMetadataText, saveInSpace, space, dontTrimText, }: { /** * comment text */ text: string; /** * Optional metadata string to be included in the comment's ib. * Should be underscore-delimited but not a hard rule atow. * * @example "comment thisisacomm here_is_addl_metadata" */ addlMetadataText?: string; /** * If true, will save the ibgibs created in the given {@link space}. */ saveInSpace?: boolean; /** * If {@link saveInSpace}, all ibgibs created in this function will be stored in * this space. */ space?: IbGibSpaceAny; /** * If true, stores `text` verbatim without trimming leading/trailing * whitespace. Required for lossless chunking where rawTexts must tile the * parent source exactly. * * Default: false (existing behaviour — trims whitespace). */ dontTrimText?: boolean; }): Promise>; export declare function isComment({ ibGib, }: { ibGib: IbGib_V1; }): boolean; //# sourceMappingURL=comment-helper.d.mts.map