import type { RedirectQuery, DbOperation } from './types.ts'; /** * Removes a redirect path * * This function deletes a route (redirect) by its ID or path. * It prevents deletion of the canonical path (where route.id === document.path_id) * to ensure every document always has at least one accessible path. * * @param client Database client * @param query Redirect query (redirect id number, redirect path string, or objects with {id} or {path}) * @returns True if redirect was deleted, false if not found or is canonical path * @throws Error if attempting to delete canonical path */ export declare const removeRedirect: DbOperation<[RedirectQuery], boolean>; //# sourceMappingURL=removeRedirect.d.ts.map