interface Query { _id: string; _name: string; _ns: string; _dateSaved: number; // Introduced this field in this PR and already // saved Queries will not have this field. _dateModified?: number; collation?: Record; filter?: Record; limit?: number; project?: Record; skip?: number; sort?: Record; } type QueryUpdateAttributes = { _name: string; }; type PipelineUpdateAttributes = { name: string; }; declare module '@mongodb-js/compass-query-history' { class FavoriteQueryStorage { loadAll(): Promise; updateAttributes( id: string, attributes: QueryUpdateAttributes ): Promise; delete(id: string): Promise; } export { Query, FavoriteQueryStorage }; }