import type { Route, DocumentQuery, DbOperation } from './types.ts'; /** * Adds a redirect path to a document * * This function creates a new route that points to an existing document, * creating a redirect from the specified path to the document's canonical path. * * The path must not already exist in the routes table (enforced by unique constraint). * The path must follow routing rules (no leading/trailing underscores, etc.) * * @param client Database client * @param query Document query (supports path string, id number, OptimisticDocument, Route, etc.) * @param input Object containing the redirect path * @returns The newly created Route object * @throws Error if document doesn't exist or path already exists */ export declare const addRedirect: DbOperation<[DocumentQuery, { path: string; }], Route>; //# sourceMappingURL=addRedirect.d.ts.map