import Field from './Field'; import { IDContract } from '@tensei/common'; interface Constructor { new (...args: any[]): M; } export declare class ID extends Field implements IDContract { /** * * If set to true, this field will * be cast to a string before * performing database * operations */ string: boolean; /** * When a new ID field is created, by default, * we'll call the exceptOnForms() method. * That way, this field won't be * available on create * and update forms. */ constructor(name: string, databaseField?: string); afterConfigSet(): void; /** * Create a new instance of the field * requires constructor parameters * */ static make(this: Constructor, name?: string, databaseField?: string): T; } export declare const id: (name: string, databaseField?: string | undefined) => ID; export default ID;