UNPKG

@stackbit/sdk

Version:
25 lines 829 B
import { GetFileBrowserOptions } from './file-browser'; import { Config } from '../config/config-types'; export type CMSMatcherOptions = GetFileBrowserOptions; type CmsName = NonNullable<Config['cmsName']>; export interface CMSResultDataSanity { studioPath: string; projectId?: string; dataset?: string; } export interface CMSResultDataNetlifyCMS { configPath: string; } export interface CMSResultDataForestry { forestryDir: string; siteId?: string; ssoName?: string; } type CMSResultDataType = CMSResultDataSanity | CMSResultDataNetlifyCMS | CMSResultDataForestry; export type CMSMatchResult = { cmsName: CmsName; cmsData?: CMSResultDataType; }; export declare function matchCMS(options: CMSMatcherOptions): Promise<CMSMatchResult | null>; export {}; //# sourceMappingURL=cms-matcher.d.ts.map