import { type NestedExampleEntry, type NestedExampleMetadata } from "./generated/inlinedExamples.js"; type ExampleMetadata = NestedExampleMetadata; /** * Utility class for working with the nested examples context */ export declare class NestedOsdkExamplesContext { /** * Get compatible versions for a given version (versions <= target version) * Uses the official semver package for proper semantic version comparison */ private static getCompatibleVersions; /** * Merge examples from multiple compatible versions */ private static mergeVersionExamples; /** * Get all available versions */ static getAvailableVersions(): string[]; /** * Get all base example names for a version (top-level keys) * Includes examples from compatible versions (same major, lower minor versions) */ static getBaseExamplesForVersion(version: string): string[]; /** * Get a specific example or nested variation * Uses version fallback to find examples from compatible versions */ static getExample(version: string, examplePath: string[]): ExampleMetadata | undefined; /** * Get all variations for a base example * Uses version fallback to find variations from compatible versions */ static getVariations(version: string, baseName: string): { [variationKey: string]: ExampleMetadata } | undefined; /** * Check if an example has variations */ static hasVariations(version: string, baseName: string): boolean; /** * Get examples with version fallback information */ static getExamplesWithVersionInfo(version: string): Array<{ name: string example: NestedExampleEntry availableInVersions: string[] }>; /** * Flatten the nested structure back to the original format for compatibility */ static flatten(): { kind: "examples" versions: { [version: string]: { examples: { [exampleName: string]: ExampleMetadata } } } }; /** * Search examples by pattern, including nested variations * When searching within a specific version, includes results from compatible versions */ static searchExamples(pattern: string, targetVersion?: string): Array<{ version: string baseName: string variationKey?: string fullPath: string[] metadata: ExampleMetadata sourceVersion: string }>; } export {};