export type DatabaseAnnotationsRuntime = { getDatabaseAnnotations?: () => string[]; withDatabaseAnnotation?: (annotation: string, callback: () => Promise>) => Promise>; }; /** * Runs get database annotations. * @returns {string[]} - Active database annotations for the current async context. */ declare function getDatabaseAnnotations(): string[]; /** * Runs the callback with an annotation that is appended to database query comments. * @template T * @param {string} annotation - Human-readable annotation for queries executed inside the callback. * @param {() => Promise} callback - Callback to execute inside the annotation context. * @returns {Promise} - Resolves with the callback result. */ declare function withDatabaseAnnotation(annotation: string, callback: () => Promise): Promise; export { getDatabaseAnnotations, withDatabaseAnnotation }; //# sourceMappingURL=annotations.d.ts.map