import { FetchRepositoryBase } from "../../../shared/index.js"; import type { Form, FormCreateInput, FormDetail, FormUpdateInput, ListFormsParams, ListFormsResponse } from "./FormsTypes.js"; export declare class FormsRepository extends FetchRepositoryBase { /** * List all forms in a realm with pagination and filtering */ getForms(realmUid: string, params?: ListFormsParams): Promise; /** * Get all forms without pagination */ getAllForms(realmUid: string, params?: Omit): Promise; /** * Get detailed information about a specific form */ getForm(realmUid: string, id: number): Promise; /** * Create a new form. Devuelve el id; el estado se relee con `getForm`. */ createForm(realmUid: string, data: FormCreateInput): Promise; /** * Update an existing form. El estado se relee con `getForm`. * * La plataforma reemplaza los segmentos del formulario con `segments` en * cada update (`Forms::Form#assign_params`): sin la clave quedan vacĂ­os. * Quien llama tiene que enviarlos siempre. */ updateForm(realmUid: string, id: number, data: FormUpdateInput & { segments: number[]; }): Promise; /** * Delete a form */ deleteForm(realmUid: string, id: number): Promise; /** * Enable a form */ enableForm(realmUid: string, id: number): Promise; /** * Disable a form */ disableForm(realmUid: string, id: number): Promise; } //# sourceMappingURL=FormsRepository.d.ts.map