import { Datastore } from '@google-cloud/datastore'; import { Model } from 'gstore-node'; import { AsyncResponse } from './async-response.type'; import { getSlugId } from './helpers'; export declare class EntitySlug { private namespace; private projectId; private keyFilename; modelName: string; private validatorFn?; private datastore; private gstore; private slugModel; getSlugId: typeof getSlugId; constructor(namespace: string, projectId: string, keyFilename: string, modelName: string, validatorFn?: ((slug: string) => string | false) | undefined); getDatastore(): Datastore; getSlugModel(): Model; reserveSlug(entityId: string, slug: string): AsyncResponse<{ slug?: string; entityId?: string; }>; getEntityId(slug: string): AsyncResponse; deleteSlug(slug: string): AsyncResponse; private validateSlug; }