import { API } from "storybook/manager-api";
import { Args, StoryContext } from "storybook/internal/csf";
import { ReactRenderer } from "@storybook/react";
import { Channel } from "storybook/internal/channels";

//#region src/register.d.ts
declare const PARAM_KEY = "notes";
interface Selection {
  storyId: string;
  viewMode: 'story';
}
type StoryFromId = StoryContext<ReactRenderer, Args>;
type ApiStore = {
  fromId: (id: any) => StoryFromId;
  getSelection: () => Selection;
  _channel: Channel;
};
type RNAddonApi = API & {
  store: () => ApiStore;
};
//#endregion
export { PARAM_KEY, RNAddonApi, Selection, StoryFromId };