/**
 * Type declaration for @stoplight/elements.
 * Required because the package's `exports` field does not expose types correctly
 * under `moduleResolution: "bundler"`.
 */

declare module '@stoplight/elements' {
  import type React from 'react';

  export interface APIProps {
    /** URL of the OpenAPI description (YAML or JSON). */
    apiDescriptionUrl: string;
    /** Routing strategy. Use "hash" for static hosting. */
    router?: 'hash' | 'memory' | 'history' | 'static';
    /** Layout variant. */
    layout?: 'sidebar' | 'stacked';
    /** Whether to hide schema definitions. */
    hideSchemas?: boolean;
    /** Credentials policy for the Try It panel. */
    tryItCredentialsPolicy?: 'omit' | 'same-origin' | 'include';
  }

  export const API: React.ComponentType<APIProps>;
}

declare module '@stoplight/elements/styles.min.css' {
  const content: string;
  export default content;
}
