@scalar/api-client
Version:
the open source API testing client
14 lines • 536 B
TypeScript
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
import { type MaybeRefOrGetter } from 'vue';
import type { FuseData } from '../types';
/**
* Creates the search index from an OpenAPI document.
*/
export declare function useSearchIndex(documents: MaybeRefOrGetter<OpenApiDocument[]>): {
results: import("vue").ComputedRef<{
item: FuseData;
refIndex: number;
}[]>;
query: import("vue").Ref<string, string>;
};
//# sourceMappingURL=use-search-index.d.ts.map