export type Story = { title: string; subtitle?: string; slug: string; body: string; creator: string; cocreators: string[]; blobs: StoryBlob[]; hasUnpublishedChanges: boolean; publish: { website: WebsitePublishSettings | null; newsletter: NewsletterPublishSettings | null; }; }; export type WebsitePublishSettings = { publishedAt: string; isPublic: boolean; members: string[]; groups: string[]; }; export type NewsletterPublishSettings = { publishedAt: string; groups: string[]; }; export type StoryBlob = { hash: string; mimeType: string; }; export type StoryInput = { title: string; body: string; subtitle?: string; slug?: string; }; export type WebsitePublishSettingsInput = { shouldPublish: boolean; isPublic: boolean; members: string[]; groups: string[]; }; export type NewsletterPublishSettingsInput = { shouldPublish: boolean; groups: string[]; }; export type UpdateStoryInput = { id: string; story: StoryInput; websitePublishSettingsInput: WebsitePublishSettingsInput | null; newsletterPublishSettingsInput: NewsletterPublishSettingsInput | null; }; export type AutosaveStoryInput = { id: string; story: StoryInput; }; export default class StoryApi { latestSchemaSha512: string; BLOB_BLOCK_TYPES: string[]; _databaseApi: any; _hiveApi: any; _memberApi: any; _jsonDataApi: any; _groupApi: any; _cellApi: any; _blobApi: any; _utilApi: any; _aclApi: any; _identityApi: any; _cryptoUtilApi: any; _notificationApi: any; _backgroundTaskApi: any; constructor(database: any, hive: any, member: any, jsonData: any, group: any, cell: any, blob: any, util: any, acl: any, identity: any, cryptoUtilApi: any, notificationApi: any, backgroundTaskApi: any); get(id: any): Promise; getBySlug(slug: any): Promise; list(): Promise; create(input: StoryInput): Promise; update(input: UpdateStoryInput): Promise; autosave(input: AutosaveStoryInput): Promise; removeStory(story: any): Promise; publishStoryNewsletter(story: any): Promise; _getAcl(isPublic: boolean, readerGroups: string[], readerMembers: string[]): Promise; _getBlobList(elements: any): any[]; _findSlug(storyId: string, str: string): any; _toSlug(str: any): any; checkIsPublished(story: any): boolean; }