import HasTimestamps from './HasTimestamps'; import type Model from '../Model'; import type { SimpleAttributes } from './HasAttributes'; export default class SoftDeletes extends HasTimestamps { /** * The name of the deleted at attribute on the server side. * * @type {string} * * @protected */ protected static readonly deletedAt: string; /** * Indicates if the model should expect a timestamp for soft-deletion. * * @type {boolean} */ protected readonly softDeletes: boolean; /** * Determine if the model instance has been soft-deleted. * * @return {boolean} */ trashed(): boolean; /** * Get the name of the deleted at attribute. * * @return {string} */ getDeletedAtName(): string; /** * Determine if the model uses soft deletes timestamp. * * @return {boolean} */ usesSoftDeletes(): boolean; /** * Delete the model. * * @param {object=} data * * @return {Promise} */ delete(data?: FormData | SimpleAttributes | SimpleAttributes): Promise; /** * Set the deleted at attribute to null on remote. * * @return {Promise} */ restore(): Promise; } //# sourceMappingURL=SoftDeletes.d.ts.map