import type { FindOptions } from '../../collections/operations/local/find.js'; import type { JsonObject, PayloadRequest, PopulateType, SelectType } from '../../types/index.js'; import type { SanitizedGlobalConfig } from '../config/types.js'; import { type AfterReadArgs } from '../../fields/hooks/afterRead/index.js'; export type GlobalFindOneArgs = { /** * You may pass the document data directly which will skip the `db.findOne` database query. * This is useful if you want to use this endpoint solely for running hooks and populating data. */ data?: Record; depth?: number; disableErrors?: boolean; draft?: boolean; globalConfig: SanitizedGlobalConfig; includeLockStatus?: boolean; overrideAccess?: boolean; populate?: PopulateType; req: PayloadRequest; showHiddenFields?: boolean; slug: string; } & Pick, 'flattenLocales'> & Pick, 'select'>; export declare const findOneOperation: >(args: GlobalFindOneArgs) => Promise; //# sourceMappingURL=findOne.d.ts.map