import type { BentoClient } from '../client'; import type { CreateFieldParameters, Field } from './types'; export declare class BentoFields { private readonly _client; private readonly _url; constructor(_client: BentoClient); /** * Returns all of the fields for the site. * * @returns Promise */ getFields(): Promise; /** * Creates a field inside of Bento. The name of the field is automatically generated * from the key that is passed in upon creation. For example * - Key: `thisIsAKey` * Name: `This Is A Key` * - Key: `this is a key` * Name: `This Is A Key` * - Key: `this-is-a-key` * Name: `This Is A Key` * - Key: `this_is_a_key` * Name: `This Is A Key` * * @param parameters \{ key: string \} * @returns Promise */ createField(parameters: CreateFieldParameters): Promise; }