import { GoogleSheetsOptions } from "./types.js";
import { TObject, TProperties } from "@sinclair/typebox";

//#region src/shared/datarecords/external/google/sheets/handler.d.ts
declare function saveRecord({
  formData,
  options,
  properties,
  accessToken
}: {
  formData: FormData;
  options: GoogleSheetsOptions;
  properties: TProperties;
  accessToken: string;
}): Promise<boolean>;
/**
 * Create a spreadsheet in Google Sheets
 * @param title
 * @param schema
 * @param accessToken
 * @returns
 */
declare function createTable({
  name,
  schema,
  accessToken
}: {
  name: string;
  schema: TObject;
  accessToken: string;
}): Promise<{
  spreadsheetId: string;
  spreadsheetUrl: string;
}>;
declare function updateTable({
  spreadsheetId,
  newName,
  newProperties,
  accessToken
}: {
  spreadsheetId: string;
  newName?: string;
  newProperties?: TProperties;
  accessToken: string;
}): Promise<void>;
//#endregion
export { createTable, saveRecord, updateTable };
//# sourceMappingURL=handler.d.ts.map