2020-08-27 05:40:14 -04:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-09-01 06:14:40 -04:00
|
|
|
declare module '@docusaurus/plugin-content-docs' {
|
2021-09-30 11:49:44 -04:00
|
|
|
export type Options = Partial<import('./types').PluginOptions>;
|
2021-10-14 08:38:26 -04:00
|
|
|
export type SidebarsConfig = import('./sidebars/types').SidebarsConfig;
|
2021-09-01 08:34:26 -04:00
|
|
|
export type VersionBanner = import('./types').VersionBanner;
|
2021-08-02 05:02:43 -04:00
|
|
|
type GlobalDataVersion = import('./types').GlobalVersion;
|
|
|
|
|
type GlobalDataDoc = import('./types').GlobalDoc;
|
2021-08-19 04:31:15 -04:00
|
|
|
type VersionTag = import('./types').VersionTag;
|
|
|
|
|
|
|
|
|
|
export type {GlobalDataVersion, GlobalDataDoc};
|
2021-06-24 12:04:16 -04:00
|
|
|
|
2020-08-27 05:40:14 -04:00
|
|
|
export type PropVersionMetadata = {
|
2020-10-15 06:16:30 -04:00
|
|
|
pluginId: string;
|
2020-08-28 12:37:49 -04:00
|
|
|
version: string;
|
|
|
|
|
label: string;
|
2021-09-01 08:34:26 -04:00
|
|
|
banner: VersionBanner | null;
|
2021-08-31 09:40:37 -04:00
|
|
|
badge: boolean;
|
|
|
|
|
className: string;
|
2020-09-03 08:35:46 -04:00
|
|
|
isLast: boolean;
|
2020-08-27 05:40:14 -04:00
|
|
|
docsSidebars: PropSidebars;
|
|
|
|
|
};
|
|
|
|
|
|
2021-10-14 08:38:26 -04:00
|
|
|
export type PropSidebarItemLink = import('./sidebars/types').SidebarItemLink;
|
|
|
|
|
export type PropSidebarItemCategory =
|
|
|
|
|
import('./sidebars/types').PropSidebarItemCategory;
|
|
|
|
|
export type PropSidebarItem = import('./sidebars/types').PropSidebarItem;
|
|
|
|
|
export type PropSidebars = import('./sidebars/types').PropSidebars;
|
2021-06-16 07:18:53 -04:00
|
|
|
|
2021-08-19 04:31:15 -04:00
|
|
|
export type PropTagDocListDoc = {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
permalink: string;
|
|
|
|
|
};
|
|
|
|
|
export type PropTagDocList = {
|
|
|
|
|
allTagsPath: string;
|
|
|
|
|
name: string; // normalized name/label of the tag
|
|
|
|
|
permalink: string; // pathname of the tag
|
|
|
|
|
docs: PropTagDocListDoc[];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PropTagsListPage = {
|
|
|
|
|
tags: {
|
|
|
|
|
name: string;
|
|
|
|
|
permalink: string;
|
|
|
|
|
count: number;
|
|
|
|
|
}[];
|
|
|
|
|
};
|
2020-08-27 05:40:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '@theme/DocItem' {
|
2020-12-11 10:30:53 -05:00
|
|
|
import type {TOCItem} from '@docusaurus/types';
|
2021-11-12 11:47:27 -05:00
|
|
|
import type {PropVersionMetadata} from '@docusaurus/plugin-content-docs';
|
2020-08-27 05:40:14 -04:00
|
|
|
|
|
|
|
|
export type DocumentRoute = {
|
|
|
|
|
readonly component: () => JSX.Element;
|
|
|
|
|
readonly exact: boolean;
|
|
|
|
|
readonly path: string;
|
2021-07-09 10:50:38 -04:00
|
|
|
readonly sidebar?: string;
|
2020-08-27 05:40:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type FrontMatter = {
|
|
|
|
|
readonly id: string;
|
|
|
|
|
readonly title: string;
|
|
|
|
|
readonly image?: string;
|
|
|
|
|
readonly keywords?: readonly string[];
|
|
|
|
|
readonly hide_title?: boolean;
|
|
|
|
|
readonly hide_table_of_contents?: boolean;
|
2021-09-29 05:19:11 -04:00
|
|
|
readonly toc_min_heading_level?: number;
|
|
|
|
|
readonly toc_max_heading_level?: number;
|
2020-08-27 05:40:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Metadata = {
|
|
|
|
|
readonly description?: string;
|
|
|
|
|
readonly title?: string;
|
|
|
|
|
readonly permalink?: string;
|
|
|
|
|
readonly editUrl?: string;
|
|
|
|
|
readonly lastUpdatedAt?: number;
|
2021-03-05 09:30:09 -05:00
|
|
|
readonly formattedLastUpdatedAt?: string;
|
2020-08-27 05:40:14 -04:00
|
|
|
readonly lastUpdatedBy?: string;
|
|
|
|
|
readonly version?: string;
|
2020-08-28 06:06:37 -04:00
|
|
|
readonly previous?: {readonly permalink: string; readonly title: string};
|
|
|
|
|
readonly next?: {readonly permalink: string; readonly title: string};
|
2021-08-19 04:31:15 -04:00
|
|
|
readonly tags: readonly {
|
|
|
|
|
readonly label: string;
|
|
|
|
|
readonly permalink: string;
|
|
|
|
|
}[];
|
2020-08-27 05:40:14 -04:00
|
|
|
};
|
|
|
|
|
|
2021-10-05 13:04:24 -04:00
|
|
|
export interface Props {
|
2020-08-27 05:40:14 -04:00
|
|
|
readonly route: DocumentRoute;
|
2021-06-24 12:04:16 -04:00
|
|
|
readonly versionMetadata: PropVersionMetadata;
|
2020-08-27 05:40:14 -04:00
|
|
|
readonly content: {
|
|
|
|
|
readonly frontMatter: FrontMatter;
|
|
|
|
|
readonly metadata: Metadata;
|
2020-12-11 10:30:53 -05:00
|
|
|
readonly toc: readonly TOCItem[];
|
2021-06-03 11:45:19 -04:00
|
|
|
readonly contentTitle: string | undefined;
|
2020-08-27 05:40:14 -04:00
|
|
|
(): JSX.Element;
|
|
|
|
|
};
|
2021-10-05 13:04:24 -04:00
|
|
|
}
|
2020-08-27 05:40:14 -04:00
|
|
|
|
|
|
|
|
const DocItem: (props: Props) => JSX.Element;
|
|
|
|
|
export default DocItem;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-19 04:31:15 -04:00
|
|
|
declare module '@theme/DocItemFooter' {
|
|
|
|
|
import type {Props} from '@theme/DocItem';
|
|
|
|
|
|
|
|
|
|
export default function DocItemFooter(props: Props): JSX.Element;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '@theme/DocTagsListPage' {
|
2021-11-12 11:47:27 -05:00
|
|
|
import type {PropTagsListPage} from '@docusaurus/plugin-content-docs';
|
2021-08-19 04:31:15 -04:00
|
|
|
|
2021-10-05 13:04:24 -04:00
|
|
|
export interface Props extends PropTagsListPage {}
|
|
|
|
|
export default function DocTagsListPage(props: Props): JSX.Element;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '@theme/DocTagDocListPage' {
|
2021-11-12 11:47:27 -05:00
|
|
|
import type {PropTagDocList} from '@docusaurus/plugin-content-docs';
|
2021-10-05 13:04:24 -04:00
|
|
|
|
|
|
|
|
export interface Props {
|
|
|
|
|
readonly tag: PropTagDocList;
|
|
|
|
|
}
|
|
|
|
|
export default function DocTagDocListPage(props: Props): JSX.Element;
|
2021-08-19 04:31:15 -04:00
|
|
|
}
|
|
|
|
|
|
2021-06-24 12:04:16 -04:00
|
|
|
declare module '@theme/DocVersionBanner' {
|
2021-11-12 11:47:27 -05:00
|
|
|
import type {PropVersionMetadata} from '@docusaurus/plugin-content-docs';
|
2021-06-24 12:04:16 -04:00
|
|
|
|
2021-10-05 13:04:24 -04:00
|
|
|
export interface Props {
|
2021-06-24 12:04:16 -04:00
|
|
|
readonly versionMetadata: PropVersionMetadata;
|
2021-10-05 13:04:24 -04:00
|
|
|
}
|
2021-06-24 12:04:16 -04:00
|
|
|
|
|
|
|
|
const DocVersionBanner: (props: Props) => JSX.Element;
|
|
|
|
|
export default DocVersionBanner;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-27 05:40:14 -04:00
|
|
|
declare module '@theme/DocPage' {
|
2021-11-12 11:47:27 -05:00
|
|
|
import type {PropVersionMetadata} from '@docusaurus/plugin-content-docs';
|
2020-08-27 05:40:14 -04:00
|
|
|
import type {DocumentRoute} from '@theme/DocItem';
|
|
|
|
|
|
2021-10-05 13:04:24 -04:00
|
|
|
export interface Props {
|
2020-08-27 05:40:14 -04:00
|
|
|
readonly location: {readonly pathname: string};
|
|
|
|
|
readonly versionMetadata: PropVersionMetadata;
|
|
|
|
|
readonly route: {
|
|
|
|
|
readonly path: string;
|
|
|
|
|
readonly component: () => JSX.Element;
|
2021-03-19 06:32:38 -04:00
|
|
|
readonly routes: DocumentRoute[];
|
2020-08-27 05:40:14 -04:00
|
|
|
};
|
2021-10-05 13:04:24 -04:00
|
|
|
}
|
2020-08-27 05:40:14 -04:00
|
|
|
|
|
|
|
|
const DocPage: (props: Props) => JSX.Element;
|
|
|
|
|
export default DocPage;
|
|
|
|
|
}
|
2021-02-18 09:38:55 -05:00
|
|
|
|
|
|
|
|
declare module '@theme/Seo' {
|
2021-08-30 07:06:00 -04:00
|
|
|
import type {ReactNode} from 'react';
|
|
|
|
|
|
2021-10-05 13:04:24 -04:00
|
|
|
export interface Props {
|
2021-02-18 09:38:55 -05:00
|
|
|
readonly title?: string;
|
|
|
|
|
readonly description?: string;
|
|
|
|
|
readonly keywords?: readonly string[] | string;
|
|
|
|
|
readonly image?: string;
|
2021-08-20 10:36:18 -04:00
|
|
|
readonly children?: ReactNode;
|
2021-10-05 13:04:24 -04:00
|
|
|
}
|
2021-02-18 09:38:55 -05:00
|
|
|
|
|
|
|
|
const Seo: (props: Props) => JSX.Element;
|
|
|
|
|
export default Seo;
|
|
|
|
|
}
|
2021-08-05 04:52:35 -04:00
|
|
|
|
|
|
|
|
declare module '@theme/hooks/useDocs' {
|
|
|
|
|
type GlobalPluginData = import('./types').GlobalPluginData;
|
|
|
|
|
type GlobalVersion = import('./types').GlobalVersion;
|
|
|
|
|
type ActivePlugin = import('./client/docsClientUtils').ActivePlugin;
|
|
|
|
|
type ActiveDocContext = import('./client/docsClientUtils').ActiveDocContext;
|
2021-09-30 06:54:17 -04:00
|
|
|
type DocVersionSuggestions =
|
|
|
|
|
import('./client/docsClientUtils').DocVersionSuggestions;
|
|
|
|
|
type GetActivePluginOptions =
|
|
|
|
|
import('./client/docsClientUtils').GetActivePluginOptions;
|
2021-08-05 04:52:35 -04:00
|
|
|
|
|
|
|
|
export type {GlobalPluginData, GlobalVersion};
|
|
|
|
|
export const useAllDocsData: () => Record<string, GlobalPluginData>;
|
|
|
|
|
export const useDocsData: (pluginId?: string) => GlobalPluginData;
|
|
|
|
|
export const useActivePlugin: (
|
2021-08-30 07:06:00 -04:00
|
|
|
options?: GetActivePluginOptions,
|
2021-08-05 04:52:35 -04:00
|
|
|
) => ActivePlugin | undefined;
|
|
|
|
|
export const useActivePluginAndVersion: (
|
2021-08-30 07:06:00 -04:00
|
|
|
options?: GetActivePluginOptions,
|
2021-08-05 04:52:35 -04:00
|
|
|
) =>
|
|
|
|
|
| {activePlugin: ActivePlugin; activeVersion: GlobalVersion | undefined}
|
|
|
|
|
| undefined;
|
|
|
|
|
export const useVersions: (pluginId?: string) => GlobalVersion[];
|
|
|
|
|
export const useLatestVersion: (pluginId?: string) => GlobalVersion;
|
|
|
|
|
export const useActiveVersion: (
|
|
|
|
|
pluginId?: string,
|
|
|
|
|
) => GlobalVersion | undefined;
|
|
|
|
|
export const useActiveDocContext: (pluginId?: string) => ActiveDocContext;
|
|
|
|
|
export const useDocVersionSuggestions: (
|
|
|
|
|
pluginId?: string,
|
|
|
|
|
) => DocVersionSuggestions;
|
|
|
|
|
}
|