import type { Context, SchemaWithId, RemovePayload } from '@aeriajs/types'; import type { description } from './description.js'; import { Result } from '@aeriajs/types'; export declare const remove: (payload: RemovePayload>, context: Context) => Promise<{ readonly _tag: "Result"; readonly error: undefined; readonly result: import("mongodb").WithId>, "_id">> | null; } | Result.Error<{ readonly code: "RESOURCE_NOT_FOUND"; } & { httpStatus: 404; }> | Result.Error<{ readonly code: "OWNERSHIP_ERROR"; } & { httpStatus: 403; }> | { readonly _tag: "Error"; readonly error: Pick<{} & Omit> & { code: "RESOURCE_NOT_FOUND" | "INSECURE_OPERATOR" | "OWNERSHIP_ERROR" | "MALFORMED_INPUT"; httpStatus: 400 | 403 | 404; message: string; details: any; }, never>, "code" | "httpStatus"> & Partial<{} & Omit> & { code: "RESOURCE_NOT_FOUND" | "INSECURE_OPERATOR" | "OWNERSHIP_ERROR" | "MALFORMED_INPUT"; httpStatus: 400 | 403 | 404; message: string; details: any; }, never>>; readonly result: undefined; }>;