export type StepSuggestion = { id: string; title: string; description?: string | null; kind?: string | null; usageCount?: number | null; commentsCount?: number | null; isSnippet?: boolean | null; labels?: string[]; keywords?: string[]; }; export type StepJsonApiAttributes = { title?: string | null; description?: string | null; kind?: string | null; keywords?: string[] | null; labels?: string[] | null; "usage-count"?: number | string | null; "comments-count"?: number | string | null; "is-snippet"?: boolean | null; }; export type StepJsonApiResource = { id?: string | number | null; type?: string | null; attributes?: StepJsonApiAttributes | null; }; export type StepJsonApiDocument = { data?: StepJsonApiResource[] | null; }; export type StepSuggestionsFetcher = () => Promise | StepInput; type StepInput = StepSuggestion[] | StepJsonApiDocument | StepJsonApiResource[] | null | undefined; export declare function setStepsFetcher(fetcher: StepSuggestionsFetcher | null): void; export declare const STEP_AUTOCOMPLETE_ATTRIBUTE = "data-step-autocomplete"; export declare function isStepAutocompleteOnTypeEnabled(node: Element | null | undefined): boolean; export declare function useStepAutocomplete(): StepSuggestion[]; export declare function parseStepsFromJsonApi(document: StepJsonApiDocument | StepJsonApiResource[] | null | undefined): StepSuggestion[]; export {};