import type { ListResults } from '../schemas/list'; import type { AssetNoContent, Blob, OptionAsset } from '../schemas/storage'; import { type CountAssetsStoreParams, type CountCollectionAssetsStoreParams, type DeleteAssetsStoreParams, type DeleteAssetStoreParams, type DeleteFilteredAssetsStoreParams, type GetAssetStoreParams, type GetContentChunksStoreParams, type ListAssetsStoreParams, type SetAssetHandlerParams, type SetAssetTokenStoreParams } from './schemas/storage'; /** * Counts the number of assets in a specific collection. * * @param {CountCollectionAssetsStoreParams} params - The parameters required to count assets in the collection. * * @returns {bigint} The total number of assets in the specified collection. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the count operation. */ export declare const countCollectionAssetsStore: (params: CountCollectionAssetsStoreParams) => bigint; /** * Counts the number of assets in a collection matching specific filters and owned by a specific caller. * * @param {CountAssetsStoreParams} params - The parameters required to perform the filtered count. * * @returns {bigint} The number of assets that match the provided filters. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the count operation. */ export declare const countAssetsStore: (params: CountAssetsStoreParams) => bigint; /** * Sets or updates an asset in the storage. * * @param {SetAssetHandlerParams} params - The parameters required to set or update an asset. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the operation. */ export declare const setAssetHandler: (params: SetAssetHandlerParams) => void; /** * Deletes an asset from the storage. * * @param {DeleteAssetStoreParams} params - The parameters required to delete the asset. * * @returns {OptionAsset} The potentially deleted asset. * * @throws {z.ZodError} If the provided parameters do not match the expected schema. * @throws {Error} If the Satellite fails to validate the request or the asset cannot be deleted. */ export declare const deleteAssetStore: (params: DeleteAssetStoreParams) => OptionAsset; /** * Delete assets in a specific collection of the Storage. * * @param {DeleteAssetsStoreParams} params - The parameters required to delete assets in the collection. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the count operation. */ export declare const deleteAssetsStore: (params: DeleteAssetsStoreParams) => void; /** * Delete assets in a collection matching specific filters and owned by a specific caller. * * @param {DeleteFilteredAssetsStoreParams} params - The parameters required to perform the filtered deletion. * * @returns {OptionAsset[]} The potential asset resulting of the deletion that match the provided filters. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the count operation. */ export declare const deleteFilteredAssetsStore: (params: DeleteFilteredAssetsStoreParams) => OptionAsset[]; /** * Set or update an access token for an asset in a collection's store. * * @param {SetAssetTokenStoreParams} params - The parameters required to set the token of the asset. * *@throws {z.ZodError} If the provided parameters do not match the expected schema. * @throws {Error} If the Satellite fails to validate the request or the token cannot be set. */ export declare const setAssetTokenStore: (params: SetAssetTokenStoreParams) => void; /** * Retrieve an asset from the storage. * * @param {GetAssetStoreParams} params - The parameters required to get the asset. * * @returns {OptionAsset} The asset if found, or undefined if not. * * @throws {z.ZodError} If the provided parameters do not match the expected schema. * @throws {Error} If the Satellite fails while retrieving the document. */ export declare const getAssetStore: (params: GetAssetStoreParams) => OptionAsset; /** * Lists assets (without content) from the storage using optional filtering, pagination, and ordering parameters. * * @param {ListStoreParams} params - The parameters required to perform the list operation. * * @returns {ListResults} A list result containing matching assets and pagination metadata. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite fails while performing the listing operation. */ export declare const listAssetsStore: (params: ListAssetsStoreParams) => ListResults; /** * Retrieves content chunks of an asset. * * This function fetches a content chunk of a given asset encoding using the specified parameters. * * @param {GetContentChunksStoreParams} params - The parameters including encoding, chunk index, and memory type. * * @returns {Blob | undefined} The content chunk if found, or `undefined` if not. * * @throws {z.ZodError} If the input parameters do not conform to the schema. * @throws {Error} If the Satellite throws an internal error during retrieval. */ export declare const getContentChunksStore: (params: GetContentChunksStoreParams) => Blob | undefined;