import { ToolArguments, ToolResponse } from "./types/index.js"; export declare function fetchQADetails(imo: string, qaId: number, vesselInfoDbName: string, vesselInfoMongoUri: string, collectionName?: string): Promise; export declare function fetchQADetailsAndCreateResponse(imo: string | undefined, questionNo: number, functionName: string, linkHeader: string, sessionId: string | undefined, vesselInfoDbName: string, vesselInfoMongoUri: string, collectionName?: string): Promise; export declare function getComponentData(componentId: string, vesselComponentsDbName: string, vesselComponentsMongoUri: string, collectionName?: string): Promise; export declare function addComponentData(answer: string, imo: string, vesselComponentsDbName: string, vesselComponentsMongoUri: string): Promise; export declare function getVesselQnASnapshot(imo: string, questionNo: string): Promise; export declare function getVesselQnASnapshotHandler(arguments_: ToolArguments): Promise; export declare function getDataLink(data: any[]): Promise; export declare function getArtifact(toolName: string, link: string): Promise; export declare function getListOfArtifacts(toolName: string, linkData: Array<{ title: string; url: string | null; }>): Promise; export declare function convertUnixDates(document: any): any; /** * Convert data to CSV format * @param data - Array of objects to convert * @returns CSV string */ export declare function convertToCSV(data: any[]): string; export declare function processTypesenseResults(searchResult: any, toolName: string, title: string, session_id: string | undefined, linkHeader: string, artifactTitle?: string, dbName?: string, mongoUri?: string): Promise; export declare function processTypesenseExportResults(documents: any[], toolName: string, title: string, artifactTitle: string, session_id: string, linkHeader: string, imo: string, vesselName: string | null, dbName?: string, mongoUri?: string): Promise; export declare function formatTypesenseResults(searchResult: any, toolName: string, title: string, dataLink: string, artifactTitle?: string): Promise; /** * Step 1: Query Typesense fleet-details collection to get fleet IMO by name * @param fleetName - Name of the fleet (e.g., "SMPL DRY") * @returns Promise - Fleet IMO number or null if not found */ export declare function getFleetImoByName(fleetName: string): Promise; /** * Step 2: Query MongoDB common_group_details collection to get vessel IMO list * @param fleetImo - IMO number of the fleet * @returns Promise - Array of vessel IMO numbers */ export declare function getVesselImoListFromFleet(fleetImo: number, dbName: string, mongoUri: string, collectionName?: string): Promise; export declare function updateTypesenseFilterWithCompanyImos(filter: string, dbName?: string, mongoUri?: string): Promise; export declare function updateTypesenseFilterWithCompanyImosPms(filter: string, dbName?: string, mongoUri?: string): Promise; export declare function updateTypesenseFilterWithCompanyImosDefect(filter: string, dbName?: string, mongoUri?: string): Promise; /** * Update MongoDB filter with company IMO numbers for filtering (PMS version) * @param filter - Existing MongoDB filter object * @returns Updated filter object with IMO restrictions */ export declare function updateMongoFilterWithCompanyImos(filter: any, dbName?: string, mongoUri?: string): Promise; /** * Update MongoDB aggregation pipeline with company IMO numbers for filtering (PMS version) * @param pipeline - Existing MongoDB aggregation pipeline * @returns Updated pipeline with IMO restrictions */ export declare function updateMongoAggregationWithCompanyImos(pipeline: any[], dbName?: string, mongoUri?: string): Promise; /** * Update search query parameters with company IMO filtering (PMS version) * @param searchParams - Search parameters object * @returns Updated search parameters with IMO restrictions */ export declare function updateSearchParamsWithCompanyImos(searchParams: any, dbName?: string, mongoUri?: string): Promise; /** * Check if a vessel IMO is authorized for the current company (PMS version) * @param imo - IMO number to check * @returns True if authorized, false otherwise */ export declare function isVesselAuthorizedForCompany(imo: string | number, dbName?: string, mongoUri?: string): Promise; /** * Get authorized IMO numbers for the current company (PMS version) * @returns Array of authorized IMO numbers */ export declare function getAuthorizedImoNumbers(dbName?: string, mongoUri?: string): Promise; /** * Log IMO filtering activity for monitoring (PMS version) * @param action - Action being performed * @param details - Additional details about the filtering */ export declare function logImoFilteringActivity(action: string, details?: any, dbName?: string, mongoUri?: string): Promise; /** * Generic function to export Typesense data for a given collection and IMO list * @param collectionName - Name of the Typesense collection * @param imoList - Array of IMO numbers * @param startDate - Optional start date filter (ISO string) * @param endDate - Optional end date filter (ISO string) * @param dateField - Name of the date field to filter on * @param excludeFields - Fields to exclude in the export * @param timestampFields - Fields to convert from UNIX timestamp to ISO string * @returns Array of parsed and processed documents */ export declare function exportDataForImoListGeneric(collectionName: string | undefined, imoList: number[], startDate?: string, endDate?: string, dateField?: string, excludeFields?: string, timestampFields?: string[]): Promise; export declare function exportDefectsForImoList(imoList: number[], startDate?: string, endDate?: string): Promise; export declare function exportPurchasesForImoList(imoList: number[], startDate?: string, endDate?: string): Promise; export declare function exportBudgetsForImoList(imoList: number[], startDate?: string, endDate?: string): Promise; export declare function exportExpensesForImoList(imoList: number[], startDate?: string, endDate?: string): Promise; export declare function exportSurveysForImoList(imoList: number[], startDate?: string, endDate?: string): Promise; export declare function combined_mongotools_with_single_category_mapping(args: any, allQuestions: number[], toolNamePrefix: string, questionMappings: { [key: number]: string; }, qaDbName: string, qaMongoUri: string): Promise; export declare function combined_mongotools_with_grouped_category_mapping(args: any, allowedCategories: string[], categoryMappings: { [key: string]: number[]; }, toolNamePrefix: string, qaDbName: string, qaMongoUri: string): Promise;