import { CollectionRecord, NewCollectionRecord } from '@cumulus/types/api/collections'; import { ApiGatewayLambdaHttpProxyResponse, InvokeApiFunction } from './types'; /** * POST /collections * * @param {Object} params - params * @param {string} params.prefix - the prefix configured for the stack * @param {Object} params.collection - collection object to add to the database * @param {Function} params.callback - async function to invoke the api lambda * that takes a prefix / user payload. Defaults * to cumulusApiClient.invokeApi * @returns {Promise} - the response from the callback */ export declare const createCollection: (params: { prefix: string; collection: NewCollectionRecord; callback?: InvokeApiFunction; }) => Promise; /** * PUT /collections/{collectionName}/{collectionVersion} * * @param {Object} params - params * @param {string} params.prefix - the prefix configured for the stack * @param {Object} params.collection - collection object to update in the database * @param {Function} params.callback - async function to invoke the api lambda * that takes a prefix / user payload. Defaults * to cumulusApiClient.invokeApi * @returns {Promise} - the response from the callback */ export declare const updateCollection: (params: { prefix: string; collection: NewCollectionRecord; callback?: InvokeApiFunction; }) => Promise; /** * DELETE /collections/{collectionName}/{collectionVersion} * * @param {Object} params - params * @param {string} params.prefix - the prefix configured for the stack * @param {Object} params.collectionVersion - name of collection to delete * @param {Object} params.collectionName - version of collection to delete * @param {Function} params.callback - async function to invoke the api lambda * that takes a prefix / user payload. Defaults * to cumulusApiClient.invokeApi * @returns {Promise} - the response from the callback */ export declare const deleteCollection: (params: { prefix: string; collectionName: string; collectionVersion: string; callback?: InvokeApiFunction; }) => Promise; /** * Get a collection from Cumulus via the API lambda * GET /collections/{vollectionName}/{collectionVersion} * * @param {Object} params - params * @param {string} params.prefix - the prefix configured for the stack * @param {Object} params.collectionVersion - name of collection to get * @param {Object} params.collectionName - version of collection to get * @param {Function} params.callback - async function to invoke the api lambda * that takes a prefix / user payload. Defaults * to cumulusApiClient.invokeApi * @returns {Promise} - the response from the callback */ export declare const getCollection: (params: { prefix: string; collectionName: string; collectionVersion: string; callback?: InvokeApiFunction; }) => Promise; /** * Get a list of collections from Cumulus via the API lambda * GET /collections * * @param {Object} params - params * @param {string} params.prefix - the prefix configured for the stack * @param {Function} params.callback - async function to invoke the api lambda * that takes a prefix / user payload. Defaults * to cumulusApiClient.invokeApi * @returns {Promise} - the response from the callback */ export declare const getCollections: (params: { prefix: string; query?: { [key: string]: string; } | undefined; callback?: InvokeApiFunction | undefined; }) => Promise; //# sourceMappingURL=collections.d.ts.map