import { TransformResult } from '@ibgib/ts-gib/dist/types.mjs'; import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs'; import { PicIbGib_V1 } from './pic-types.mjs'; import { IbGibSpaceAny } from '../../witness/space/space-base-v1.mjs'; import { BinIbGib_V1 } from '../bin/bin-types.mjs'; export interface PicDependencyGraph { picIbGib: PicIbGib_V1; binIbGib: BinIbGib_V1; dependencies: IbGib_V1[]; } export declare function createBinIbGib({ base64Data, binHash, ext, saveInSpace, space, }: { /** * base64-encoded binary data */ base64Data: string; /** * Hash of data */ binHash: string; /** * extension of the binary * * this will be included in the ib */ ext?: string; /** * If true, will save the ibgibs created in the given `space`. * @see {@link space} */ saveInSpace?: boolean; /** * space to save the ibgib(s) if `saveInSpace` is truthy. * * @see {@link saveInSpace} */ space?: IbGibSpaceAny; }): Promise>; /** * shared pic code between camera and loading image via picking a file. */ export declare function createPicAndBinIbGibs({ imageBase64, binHash, filename, ext, saveInSpace, space, }: { imageBase64: string; binHash: string; filename?: string; ext?: string; /** * If true, will save the ibgibs created in the given `space`. */ saveInSpace?: boolean; /** * If `saveInSpace`, all ibgibs created in this function will be stored in * this space. */ space?: IbGibSpaceAny; }): Promise<[TransformResult, TransformResult]>; /** * @deprecated not really deprecated but i'm indicating here that this function * is to be changed when i am back on the web browser side of things. i have * changed the internal structure of the {@link BinIbGib_V1} to use `Uint8Array` * objects on the node side. */ export declare function createPicAndBinIbGibsFromInputFilePickedEvent({ event, saveInSpace, space, }: { event: any; /** * If true, will save the ibgibs created in the given `space`. * @see {@link space} */ saveInSpace?: boolean; space: IbGibSpaceAny; }): Promise<[TransformResult, TransformResult][]>; export declare function isPic({ ibGib, }: { ibGib: IbGib_V1; }): boolean; //# sourceMappingURL=pic-helper.d.mts.map