import { GenericObject } from "../../../web/database/firestore/types"; export declare function setDocument(collection: string, form: GenericObject): Promise; export declare function setDocument(collection: string, documentId: string, form: GenericObject): Promise; /** * @function setDocument * Set a document in a collection * @param {string} collection - The collection name * @param {string|GenericObject} arg2 - The documentId or form object; if form is provided, a document with random id be created * @param {GenericObject} [form] - The form to set/update if documentId is provided * @returns {Promise} - The documentId */ export default function setDocument(collection: string, arg2: string | GenericObject, form?: GenericObject): Promise; //# sourceMappingURL=setDocument.d.ts.map