import { FoamGraph } from '../model/graph'; import { FoamTags } from '../model/tags'; import { FoamWorkspace } from '../model/workspace'; import { URI } from '../model/uri'; export interface NoteItem { id: string; uri: URI; title: string; type: string; tags: string[]; } export interface NoteSummary { id: string; uri: URI; title: string; } export interface TagItem { tag: string; count: number; } export interface PlaceholderItem { placeholder_id: string; uri: URI; referenced_by: NoteSummary[]; } export declare function listNotes(workspace: FoamWorkspace, opts: { type?: string; tags?: string[]; limit?: number; }): NoteItem[]; export declare function listTags(foamTags: FoamTags, opts: { prefix?: string; sort?: 'count' | 'name'; limit?: number; }): TagItem[]; export interface OrphansOptions { /** * Types to exclude from the result. Defaults to `['attachment', 'image']` * — only `note`-typed resources are eligible to be orphans. */ excludeTypes?: string[]; /** * When true, outgoing links whose target type is one of `excludeTypes` * (e.g. attachments and images) don't count toward "has outgoing links". * A note that only links to images is treated as an orphan. Defaults to * `false`. */ ignoreOutgoingExcludedTypes?: boolean; } export declare function listOrphans(workspace: FoamWorkspace, graph: FoamGraph, opts?: OrphansOptions): NoteSummary[]; export declare function listDeadends(workspace: FoamWorkspace, graph: FoamGraph, opts?: OrphansOptions): NoteSummary[]; export declare function listPlaceholders(workspace: FoamWorkspace, graph: FoamGraph): PlaceholderItem[]; //# sourceMappingURL=list.d.ts.map