import { BaseCommand } from '@salesforce/b2c-tooling-sdk/cli'; import { searchDocs, listDocs, type SearchResult, type DocEntry } from '@salesforce/b2c-tooling-sdk/docs'; import { detectWorkspaceType, type ProjectType } from '@salesforce/b2c-tooling-sdk/discovery'; interface SearchDocsResponse { query?: string; category?: string; workspace?: ProjectType[]; total: number; offset: number; results: SearchResult[]; truncated?: boolean; nextOffset?: number; } interface ListDocsResponse { entries: DocEntry[]; } export default class DocsSearch extends BaseCommand { static args: { query: import("@oclif/core/interfaces").Arg>; }; static description: string; static enableJsonFlag: boolean; static examples: string[]; static flags: { columns: import("@oclif/core/interfaces").OptionFlag; extended: import("@oclif/core/interfaces").BooleanFlag; limit: import("@oclif/core/interfaces").OptionFlag; offset: import("@oclif/core/interfaces").OptionFlag; list: import("@oclif/core/interfaces").BooleanFlag; category: import("@oclif/core/interfaces").OptionFlag; topics: import("@oclif/core/interfaces").OptionFlag; workspace: import("@oclif/core/interfaces").OptionFlag; 'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>; debug: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; jsonl: import("@oclif/core/interfaces").BooleanFlag; lang: import("@oclif/core/interfaces").OptionFlag; config: import("@oclif/core/interfaces").OptionFlag; instance: import("@oclif/core/interfaces").OptionFlag; 'project-directory': import("@oclif/core/interfaces").OptionFlag; 'extra-query': import("@oclif/core/interfaces").OptionFlag; 'extra-body': import("@oclif/core/interfaces").OptionFlag; 'extra-headers': import("@oclif/core/interfaces").OptionFlag; }; protected operations: { detectWorkspaceType: typeof detectWorkspaceType; listDocs: typeof listDocs; searchDocs: typeof searchDocs; }; run(): Promise; /** * Resolves the --workspace flag to concrete project type(s). Shared with * `docs read` via {@link resolveDocsWorkspace} so both apply the same * workspace-aware ranking. */ private resolveWorkspace; } export {};