import { Collection } from './lib/collectionData.js'; import { ProposedMetadata } from './lib/editor/firebase.js'; import { ResourceWarning } from './lib/editor/types.js'; import { DefinitelyHas } from './lib/type-helpers.js'; type InitialData = { communityData: CommunityData; loginData: LoginData; locationData: LocationData; scopeData: ScopeData; featureFlags: FeatureFlags; initialNotificationsData: InitialNotificationsData; dismissedUserDismissables: HeroPrimaryButton; }; type InitialNotificationsData = { hasNotifications: boolean; hasUnreadNotifications: boolean; }; type FeatureFlags = { releaseDiscussionsDialog: boolean; activityDigestSubscribeToggle: boolean; notifications: boolean; submissions: boolean; surveySummer22: boolean; reviews: boolean; comments: boolean; htmlPubHeaderValues: boolean; }; type ScopeData = { elements: Elements; optionsData: any[]; memberData: MemberDatum[]; activePermissions: ActivePermissions; activeCounts: ActiveCounts; scope: ActiveIds; facets: Facets$1; }; type Facets$1 = { CitationStyle: CitationStyle2; License: License$1; NodeLabels: NodeLabels$1; PubEdgeDisplay: PubEdgeDisplay$1; PubHeaderTheme: PubHeaderTheme$1; }; type PubHeaderTheme$1 = { props: Props5; value: Value9; stack: Stack5[]; }; type Stack5 = { scope: Scope2; value: Value9; facetBindingId: string; }; type Value9 = { backgroundImage?: any; backgroundColor: string; textStyle: string; }; type Props5 = { backgroundImage: BackgroundImage; backgroundColor: CitationStyle$1; textStyle: CitationStyle$1; }; type BackgroundImage = { sources: Source5[]; value?: any; }; type Source5 = { scope: Scope$1; value?: any; facetBindingId?: string; }; type PubEdgeDisplay$1 = { props: Props4; value: Value7; stack: Stack4[]; }; type Stack4 = { scope: Scope2; value: Value8; facetBindingId: string; }; type Value8 = { defaultsToCarousel?: any; descriptionIsVisible?: any; }; type Value7 = { defaultsToCarousel: boolean; descriptionIsVisible: boolean; }; type Props4 = { defaultsToCarousel: DefaultsToCarousel; descriptionIsVisible: DefaultsToCarousel; }; type DefaultsToCarousel = { sources: Source4[]; value: boolean; }; type Source4 = { scope: Scope$1; value?: boolean; facetBindingId?: string; }; type NodeLabels$1 = { props: Props3; value: Value6; stack: Stack3[]; }; type Stack3 = { scope: Scope2; value: Value6; facetBindingId: string; }; type Value6 = { image: Value5; video: Value5; audio: Value5; table: Value5; math: Value5; }; type Props3 = { image: Image; video: Image; audio: Image; table: Image; math: Image; }; type Image = { sources: Source3[]; value: Value5; }; type Source3 = { scope: Scope$1; value: Value5; facetBindingId?: string; }; type Value5 = { enabled: boolean; text: string; }; type License$1 = { props: Props2; value: Value3; stack: Stack2[]; }; type Stack2 = { scope: Scope2; value: Value4; facetBindingId: string; }; type Value4 = { kind: string; copyrightSelection?: any; }; type Value3 = { kind: string; copyrightSelection: Value2; }; type Props2 = { kind: CitationStyle$1; copyrightSelection: CopyrightSelection; }; type CopyrightSelection = { sources: Source2[]; value: Value2; }; type Source2 = { scope: Scope$1; value?: Value2; facetBindingId?: string; }; type Value2 = { choice: string; year?: any; }; type CitationStyle2 = { props: Props; value: Value; stack: Stack[]; }; type Stack = { scope: Scope2; value: Value; facetBindingId: string; }; type Scope2 = { kind: string; id: string; }; type Value = { citationStyle: string; inlineCitationStyle: string; }; type Props = { citationStyle: CitationStyle$1; inlineCitationStyle: CitationStyle$1; }; type CitationStyle$1 = { sources: Source[]; value: string; }; type Source = { scope: Scope$1; value: string; facetBindingId?: string; }; type Scope$1 = { kind: string; id?: string; }; type ActiveCounts = { reviews: number; submissions: number; }; type ActivePermissions = { activePermission: string; canView: boolean; canEdit: boolean; canManage: boolean; canAdmin: boolean; canAdminCommunity: MemberDatum; canManageCommunity: MemberDatum; canViewCommunity: MemberDatum; canEditCommunity: MemberDatum; isSuperAdmin: boolean; canCreateReviews: boolean; canCreateDiscussions: boolean; canViewDraft?: boolean; canEditDraft?: boolean; }; type MemberDatum = { id: string; permissions: string; isOwner?: boolean; subscribedToActivityDigest: boolean; userId: string; pubId?: string; collectionId?: string; communityId: string; organizationId?: string; createdAt: string; updatedAt: string; }; type Elements = { activeTargetType: string; activeTargetName: string; activeTarget: ActiveTarget; activeIds: ActiveIds; inactiveCollections: string[]; activeCommunity: ActiveTarget; }; type ActiveIds = { communityId: string; }; type ActiveTarget = { id: string; subdomain: string; domain?: any; title: string; citeAs?: any; publishAs: string; description: string; avatar: string; favicon: string; accentColorLight: string; accentColorDark: string; hideCreatePubButton: boolean; headerLogo: string; headerLinks?: any[]; headerColorType: string; useHeaderTextAccent: boolean; hideHero: boolean; hideHeaderLogo: boolean; heroLogo: string; heroBackgroundImage?: string; heroBackgroundColor?: string; heroTextColor: string; useHeaderGradient: boolean; heroImage?: any; heroTitle: string; heroText: string; heroPrimaryButton: HeroPrimaryButton; heroSecondaryButton: HeroPrimaryButton; heroAlign: string; navigation: Navigation[]; hideNav: boolean; navLinks?: any; footerLinks?: any; footerLogoLink: string; footerTitle?: any; footerImage: string; website: string; facebook: string; twitter: string; email: string; issn?: any; isFeatured?: any; viewHash?: any; editHash?: any; premiumLicenseFlag: boolean; defaultPubCollections: any[]; spamTagId: string; organizationId?: any; createdAt: string; updatedAt: string; scopeSummaryId: string; }; type LocationData = { hostname: string; path: string; params: HeroPrimaryButton; query: HeroPrimaryButton; queryString: string; isDashboard: boolean; isBasePubPub: boolean; isProd: boolean; isDuqDuq: boolean; isQubQub: boolean; appCommit: string; }; type LoginData = { id: string; initials: string; slug: string; fullName: string; firstName: string; lastName: string; avatar: string; title: string; gdprConsent: boolean; isSuperAdmin: boolean; }; type CommunityData = { id: string; subdomain: string; domain?: any; title: string; citeAs?: any; publishAs: string; description: string; avatar: string; favicon: string; accentColorLight: string; accentColorDark: string; hideCreatePubButton: boolean; headerLogo: string; headerLinks?: any; headerColorType: string; useHeaderTextAccent: boolean; hideHero: boolean; hideHeaderLogo: boolean; heroLogo: string; heroBackgroundImage?: any; heroBackgroundColor?: any; heroTextColor: string; useHeaderGradient: boolean; heroImage?: any; heroTitle: string; heroText: string; heroPrimaryButton: HeroPrimaryButton; heroSecondaryButton: HeroPrimaryButton; heroAlign: string; navigation: Navigation[]; hideNav: boolean; navLinks?: any; footerLinks?: any; footerLogoLink: string; footerTitle?: any; footerImage: string; website: string; facebook: string; twitter: string; email: string; issn?: string; isFeatured?: boolean; viewHash?: string; editHash?: string; premiumLicenseFlag: boolean; defaultPubCollections: string[]; spamTagId: string; organizationId?: string; createdAt: string; updatedAt: string; scopeSummaryId: string; scopeSummary: ScopeSummary$1; spamTag: SpamTag; pages: Page[]; collections: IncompleteCollection[]; }; type IncompleteCollection = { id: string; title: string; slug: string; avatar?: string; isRestricted: boolean; isPublic: boolean; viewHash: string; editHash: string; metadata: Metadata$1; kind: CollectionKind; doi?: string; readNextPreviewSize: string; layout?: Layout2; pageId?: string; communityId: string; scopeSummaryId: string; createdAt: string; updatedAt: string; crossrefDepositRecordId?: string; members: any[]; }; type Layout2 = { blocks: Block[]; isNarrow: boolean; }; type Block = { id: string; type: string; content: Content43; }; type Content43 = { text?: Text2 | Text22 | Text3 | Text4 | Text5 | Text6 | Text7 | Text8 | Text9 | Text10 | Text11 | Text12 | Text12 | Text14 | Text15 | Text16 | Text17 | Text18 | Text19 | Text20 | Text21 | Text222 | Text23 | Text24 | Text25 | Text26 | Text27 | Text28 | Text29 | Text30 | Text31 | Text32 | string | string | string | string | string; align?: string; buttonUrl?: string; buttonText?: string; buttonType?: string; showButton?: boolean; backgroundSize?: string; backgroundColor?: string; backgroundImage?: string; backgroundHeight?: string; defaultCollectionIds?: any[]; sort?: string; pubPreviewType?: string; hideDate?: boolean; html?: string; hideContributors?: boolean; title?: string; hideByline?: boolean; limit?: number; pubIds?: string[][]; collectionIds?: (string | string)[]; items?: Child$1[]; hideDates?: boolean; hideEdges?: boolean; hideDescription?: boolean; justify?: string; }; type Text32 = { type: string; attrs: Attrs$1; content: Content42[]; }; type Content42 = { type: string; attrs?: Attrs14; content?: Content$1[]; }; type Text31 = { type: string; attrs: Attrs$1; content: Content41[]; }; type Content41 = { type: string; attrs: Attrs11; content?: Content7[]; }; type Text30 = { type: string; attrs: Attrs$1; content: Content40[]; }; type Content40 = { type: string; attrs: Attrs10; content?: Content$1[]; }; type Text29 = { type: string; attrs: Attrs$1; content: Content39[]; }; type Content39 = { type: string; attrs: Attrs24; content?: Content38[]; }; type Content38 = { type: string; attrs?: Attrs25; text?: string; marks?: Mark2[]; }; type Attrs25 = { id: string; url: string; href?: any; size: number; align: string; altText: string; caption: string; hideLabel: boolean; fullResolution: boolean; }; type Attrs24 = { id?: string; rtl?: any; class?: any; textAlign?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; fileName?: string; fileSize?: string; level?: number; fixedId?: string; }; type Text28 = { type: string; attrs: Attrs$1; content: Content37[]; }; type Content37 = { type: string; attrs?: Attrs4; content?: Content14[]; }; type Text27 = { type: string; attrs: Attrs$1; content: Content36[]; }; type Content36 = { type: string; attrs: Attrs23; content?: Content19[]; }; type Attrs23 = { id?: string | string; rtl?: any; class?: any; textAlign?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; fileName?: string; fileSize?: string; level?: number; fixedId?: string; }; type Text26 = { type: string; attrs: Attrs$1; content: Content35[]; }; type Content35 = { type: string; attrs: Attrs14; content?: Content14[]; }; type Text25 = { type: string; attrs: Attrs$1; content: Content34[]; }; type Content34 = { type: string; attrs: Attrs22; }; type Attrs22 = { id: string; url: string; href: string; size: number; align: string; altText: string; caption: string; hideLabel: boolean; fullResolution: boolean; }; type Text24 = { type: string; attrs: Attrs$1; content: Content33[]; }; type Content33 = { type: string; attrs: Attrs20; content?: Content14[]; }; type Text23 = { type: string; attrs: Attrs$1; content: Content32[]; }; type Content32 = { type: string; attrs?: Attrs17; content?: Content7[]; }; type Text222 = { type: string; attrs: Attrs$1; content: Content31[]; }; type Content31 = { type: string; attrs: Attrs14; content?: Content$1[]; }; type Text21 = { type: string; attrs: Attrs$1; content: Content30[]; }; type Content30 = { type: string; attrs?: Attrs21; content?: Content14[]; }; type Attrs21 = { id?: string; rtl?: any; class?: any; textAlign?: any; level?: number; fixedId?: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; }; type Text20 = { type: string; attrs: Attrs$1; content: Content29[]; }; type Content29 = { type: string; attrs: Attrs20; content?: Content28[]; }; type Content28 = { type: string; attrs?: Attrs6; content?: Content$1[]; text?: string; marks?: Mark3[]; }; type Attrs20 = { id: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; rtl?: any; class?: string; textAlign?: any; fileName?: string; fileSize?: string; }; type Text19 = { type: string; attrs: Attrs$1; content: Content27[]; }; type Content27 = { type: string; attrs: Attrs6; content: Content$1[]; }; type Text18 = { type: string; attrs: Attrs$1; content: Content26[]; }; type Content26 = { type: string; attrs?: Attrs19; content?: Content11[]; }; type Attrs19 = { id: string; rtl?: any; level?: number; fixedId?: string; textAlign?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; class?: (null | string)[]; fileName?: string; fileSize?: string; }; type Text17 = { type: string; attrs: Attrs$1; content: Content25[]; }; type Content25 = { type: string; attrs?: Attrs18; content?: Content14[]; }; type Attrs18 = { id?: string; rtl?: any; class?: string; textAlign?: any; level?: number; fixedId?: string; }; type Text16 = { type: string; attrs: Attrs$1; content: Content24[]; }; type Content24 = { type: string; attrs?: Attrs17; content?: Content19[]; }; type Attrs17 = { id: string; rtl?: any; level?: number; fixedId?: string; textAlign?: any; class?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; }; type Text15 = { type: string; attrs: Attrs$1; content: Content23[]; }; type Content23 = { type: string; attrs?: Attrs16; content?: Content19[]; }; type Attrs16 = { id: string; rtl?: any; level?: number; fixedId?: string; textAlign?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; class?: any; fileName?: string; fileSize?: string; }; type Text14 = { type: string; attrs: Attrs$1; content: Content22[]; }; type Content22 = { type: string; attrs: Attrs15; content: Content$1[]; }; type Attrs15 = { id: string; rtl?: any; class?: string; textAlign?: any; }; type Text12 = { type: string; attrs: Attrs$1; content: Content21[]; }; type Content21 = { type: string; attrs?: Attrs14; content?: Content7[]; }; type Attrs14 = { id: string; rtl?: any; class?: string; textAlign?: any; level?: number; fixedId?: string; }; type Text11 = { type: string; attrs: Attrs$1; content: Content20[]; }; type Content20 = { type: string; attrs: Attrs13; content?: Content19[]; }; type Content19 = { text?: string; type: string; marks?: Mark3[]; }; type Attrs13 = { id?: string | string; rtl?: any; level?: number; fixedId?: string; textAlign?: any; class?: string; url?: string; caption?: string; fileName?: string; fileSize?: string; href?: any; size?: number; align?: string; altText?: string; hideLabel?: boolean; fullResolution?: boolean; }; type Text10 = { type: string; attrs: Attrs$1; content: Content18[]; }; type Content18 = { type: string; attrs?: Attrs12; content?: Content14[]; }; type Attrs12 = { id: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; rtl?: any; class?: any; textAlign?: any; fileName?: string; fileSize?: string; }; type Text9 = { type: string; attrs: Attrs$1; content: Content17[]; }; type Content17 = { type: string; attrs?: Attrs7; content?: Content7[]; }; type Text8 = { type: string; attrs: Attrs$1; content: Content16[]; }; type Content16 = { type: string; attrs: Attrs11; content?: Content5[]; }; type Attrs11 = { id?: string; rtl?: any; class?: any; textAlign?: any; }; type Text7 = { type: string; attrs: Attrs$1; content: Content15[]; }; type Content15 = { type: string; attrs?: Attrs10; content?: Content14[]; }; type Content14 = { text: string; type: string; marks?: Mark3[]; }; type Mark3 = { type: string; attrs?: Attrs8; }; type Attrs10 = { id: string; rtl?: any; class?: string; textAlign?: any; level?: number; fixedId?: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; }; type Text6 = { type: string; attrs: Attrs$1; content: Content13[]; }; type Content13 = { type: string; attrs: Attrs9; content?: Content11[]; }; type Attrs9 = { id: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; rtl?: any; class?: any; textAlign?: any; }; type Text5 = { type: string; attrs: Attrs$1; content: Content12[]; }; type Content12 = { type: string; attrs: Attrs7; content?: Content11[]; }; type Content11 = { text: string; type: string; marks?: Mark2[]; }; type Mark2 = { type: string; attrs: Attrs8; }; type Attrs8 = { href: string; title?: any; target?: any; }; type Attrs7 = { id?: string; rtl?: any; class?: any; textAlign?: any; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; fileName?: string; fileSize?: string; }; type Text4 = { type: string; attrs: Attrs$1; content: Content10[]; }; type Content10 = { type: string; attrs: Attrs6; content: Content9[]; }; type Content9 = { text: string; type: string; marks: Mark[]; }; type Attrs6 = { id: string; rtl?: any; class?: any; textAlign?: any; }; type Text3 = { type: string; attrs: Attrs$1; content: Content8[]; }; type Content8 = { type: string; attrs: Attrs5; content: Content7[]; }; type Content7 = { text: string; type: string; }; type Attrs5 = { id: string; rtl?: any; level: number; fixedId: string; textAlign?: any; }; type Text22 = { type: string; attrs: Attrs$1; content: Content6[]; }; type Content6 = { type: string; attrs?: Attrs4; content?: Content5[]; }; type Content5 = { text?: string; type: string; marks?: Mark[]; }; type Attrs4 = { id: string; rtl?: any; level?: number; fixedId?: string; textAlign?: any; class?: any; }; type Text2 = { type: string; attrs: Attrs$1; content: Content4[]; }; type Content4 = { type: string; attrs?: Attrs3; content?: Content$1[]; }; type Attrs3 = { id?: string; url?: string; href?: any; size?: number; align?: string; altText?: string; caption?: string; hideLabel?: boolean; fullResolution?: boolean; rtl?: any; class?: string; textAlign?: any; fileName?: string; fileSize?: string; }; type Metadata$1 = { doi?: string; url?: string; isbn?: string; copyrightYear?: string; publicationDate?: string; edition?: string; }; type Page = { id: string; title: string; slug: string; description: string; avatar?: string; isPublic: boolean; isNarrowWidth?: boolean; viewHash: string; layout: Layout[]; createdAt: string; }; type Layout = { id: string; type: string; content: Content3; }; type Content3 = { text?: Text; align?: string; title?: string; width?: string; items?: Child$1[]; justify?: string; html?: string; }; type Text = { type: string; attrs: Attrs$1; content: Content2$1[]; }; type Content2$1 = { type: string; attrs: Attrs2$1; content: Content$1[]; }; type Content$1 = { text: string; type: string; marks?: Mark[]; }; type Mark = { type: string; }; type Attrs2$1 = { id: string; class?: string; textAlign?: string; }; type Attrs$1 = { meta: HeroPrimaryButton; }; type SpamTag = { id: string; status: string; statusUpdatedAt: string; fields: HeroPrimaryButton; spamScore: number; spamScoreComputedAt: string; spamScoreVersion: number; createdAt: string; updatedAt: string; }; type ScopeSummary$1 = { id: string; collections: number; pubs: number; discussions: number; reviews: number; submissions: number; createdAt: string; updatedAt: string; }; type Navigation = { id: string; type?: string; title?: string; children?: Child$1[]; }; type Child$1 = { id: string; type: string; }; type HeroPrimaryButton = {}; interface PubViewDataDash { pubData: SanitizedPubData; } interface PubViewDataPub { pubData: PubDataViewData; } interface PubDataViewData extends Pub { initialDoc: { type: 'doc'; attrs: Record; content: any[]; }; draft: { id: string; latestKeyAt: string; firebasePath: string; createdAt: string; updatedAt: string; }; initialDocKey: number; historyData: { timestamps: { [key: string]: number; }; currentKey: number; latestKey: number; }; firebaseToken: string; isAVisitingCommenter: boolean; isReviewingPub: boolean; } type SanitizedPubData = Pub & { viewHash: string | null; editHash: string | null; reviewHash: string | null; commentHash: string | null; attributions: PubAttribution[]; discussions: Discussion[]; collectionPubs: CollectionPubWithAttributions[]; isRelease: boolean; releases: Release[]; releaseNumber: number | null; }; interface CollectionViewData { overviewData: { collection: Collection; pubs: Pub[]; collectionPubs: CollectionPub$1[]; hasEnabledSubmissionWorkflow: null; }; } interface CollectionPub$1 { id: string; pubId: string; collectionId: string; contextHint: string | null; rank: string; pubRank: string; createdAt: string; updatedAt: string; } interface CommunityViewData { overviewData: { collections: Collection[]; pubs: Pub[]; includesAllPubs: boolean; userScopeVisits: UserScopeVisit[]; recentPubs: Pub[]; }; } type Chapter = { chapter: number; id: string; data: Pub; }; type PubAttributionsPostPayload = { name: string; order: number; isAuthor: boolean; communityId: string; pubId: string; }; declare const DEFAULT_ROLES: readonly ["Conceptualization", "Methodology", "Software", "Validation", "Formal Analysis", "Investigation", "Resources", "Data Curation", "Writing – Original Draft Preparation", "Writing – Review & Editing", "Visualization", "Supervision", "Project Administration", "Peer Review", "Funding Acquisition", "Illustrator", "Editor", "Series Editor", "Translator", "Chair"]; type Roles = (typeof DEFAULT_ROLES)[number]; type PubAttributionsPostResponse = { id: string; name: string; avatar?: string; title?: string; order: number; isAuthor: boolean; roles?: Roles; affiliation?: string; orcid?: string; userId?: string; pubId: string; createdAt: string; user: User; }; type User = { isShadowUser: boolean; id: string; initials: string; fullName: string; firstName: string; lastName: string; avatar?: any; title?: any; orcid?: any; }; type PubAttributionsPutPayload = { id: string; affiliation?: string; orcid?: string; roles?: string[]; communityId: string; pubId: string; }; type Downloads = { url: string; type: ExportFormats; branchId?: string; createdAt: string; }; type ExportFormats = 'docx' | 'html' | 'pdf' | 'markdown' | 'odt' | 'tex' | 'txt' | 'epub' | 'jats' | 'formatted' | 'json'; type PubPutPayload = { pubId: string; avatar?: string; description?: string; slug?: string; htmlTitle?: string; title?: string; doi?: string; customPublishedAt?: string; /** * Links to files that should be added to the pub * * You can directly link to already existing files, * or you can pass the necessary information to upload a new file * and we will do it for you. * * You can only upload pdf files */ downloads?: (FilePut | { /** * You are required to pass the mimeType to double check that you are uploading a pdf file */ mimeType: 'application/pdf'; fileOrPath: string | Buffer | Blob | File; fileName: string; })[]; communityId?: string; }; type FilePut = { type: 'formatted'; url: string; createdAt?: string; }; type FacetsPayload = { scope: Scope; facets: Facets; }; type Facets = { CitationStyle: CitationStyle | {}; License: License | {}; NodeLabels: NodeLabels | {}; PubEdgeDisplay: PubEdgeDisplay | {}; PubHeaderTheme: PubHeaderTheme | {}; }; declare const textStyles: readonly ["dark", "light", "black-blocks", "white-blocks"]; type PubHeaderTheme = { backgroundImage: string; backgroundColor: string; textStyle: (typeof textStyles)[number]; }; type PubEdgeDisplay = {}; type NodeLabels = { image: Label; video: Label; audio: Label; table: Label; math: Label; }; type Label = { enabled: boolean; text: string; }; declare const licenses: readonly ["cc-by", "cc-0", "cc-by-nc", "cc-by-nd", "cc-by-nc-nd", "cc-by-nc-sa", "cc-by-sa", "copyright"]; type License = { kind: (typeof licenses)[number]; }; declare const citationStyles: readonly ["acm-siggraph", "american-anthro", "apa", "apa-7", "arcadia-science", "cell", "chicago", "harvard", "elife", "frontiers", "mla", "vancouver", "ama"]; declare const inlineCitationStyles: readonly ["count", "authorYear", "author", "label"]; type CitationStyle = { citationStyle: (typeof citationStyles)[number]; inlineCitationStyle: (typeof inlineCitationStyles)[number]; }; type Scope = { kind: 'pub' | 'community' | 'collection'; id: string; }; declare const collectionKinds: readonly ["issue", "book", "journal", "tag"]; type CollectionKind = (typeof collectionKinds)[number]; type CommunityPutResponse = { title?: string; citeAs?: string; publishAs?: string; /** * @maxlength 280 */ description?: string; avatar?: string; favicon?: string; accentColorLight?: string; accentColorDark?: string; hideCreatePubButton?: boolean; headerLogo?: string; headerColorType?: 'light' | 'dark' | 'custom'; useHeaderTextAccent?: boolean; hideHero?: boolean; hideHeaderLogo?: boolean; heroLogo?: string; heroBackgroundImage?: string; heroBackgroundColor?: string; heroTextColor?: string; /** * Unsure if this still does something */ useHeaderGradient?: boolean; heroImage?: string; heroTitle?: string; heroText?: string; heroPrimaryButton?: { url: string; title: string; }; heroSecondaryButton?: { url: string; title: string; }; heroAlign?: string; navigation: NavigationLink[]; hideNav?: boolean; footerLinks?: FooterLink[]; footerLogoLink?: string; footerTitle?: string; footerImage?: string; website?: string; facebook?: string; twitter?: string; email?: string; issn?: string; }; type CommunityPutPayload = Omit & { navigation?: NavigationLink<'request'>[]; footerLinks?: FooterLink<'request'>[]; }; type NavigationLink = (T extends 'request' ? Omit : DropDownMenu) | PageOrCollectionLink | (T extends 'request' ? Omit : ExternalLink); type FooterLink = PageOrCollectionLink | (T extends 'request' ? Omit : ExternalLink); type DropDownMenu = { /** * You don't have to define an id when creating a new menu */ id: string; title: string; children: Child[]; }; type PageOrCollectionLink = { id: string; type: 'page' | 'collection'; }; type ExternalLink = { id: string; title: string; href: string; }; type Child = PageOrCollectionLink | ExternalLink; type ImportPayload = { sourceFiles: SourceFile[]; importerFlags: ImporterFlags; useNewImporter: boolean; }; type ImporterFlags = {}; type SourceFile = { id: number; state: string; clientPath: string; loaded: number; total: number; label?: string; assetKey: string; }; type ExportPayload = { communityId: string; format: ExportFormats; historyKey: number; pubId: string; }; type WorkerTaskResponse = { id: string; isProcessing: boolean; error?: any; output?: unknown; }; type WorkerTaskExportOutput = { url: string; }; type WorkerTaskImportOutput = { doc: any; warnings: ResourceWarning[]; proposedMetadata: ProposedMetadata; pandocErrorOutput: string; }; type PubsManyResponse = { pubIds: string[]; pubsById: PubsById; loadedAllPubs: boolean; }; type PubsById = { [key: string]: Pub; }; type Pub = { id: string; slug: string; title: string; htmlTitle?: string; description?: string; htmlDescription?: string; avatar: string; customPublishedAt?: string; doi: string; labels?: any; downloads: Download[]; metadata?: Metadata; viewHash?: string; editHash?: string; reviewHash?: string; commentHash?: string; draftId: string; communityId: string; createdAt: string; updatedAt: string; crossrefDepositRecordId?: string; scopeSummaryId: string; members: Member[]; draft: Draft; crossrefDepositRecord?: any; scopeSummary: ScopeSummary; outboundEdges: any[]; reviews: any[]; inboundEdges: any[]; releases: Release[]; attributions: Attribution[]; collectionPubs: CollectionPub[]; isRelease: boolean; releaseNumber?: any; }; type CollectionPub = { id: string; pubId: string; collectionId: string; contextHint?: string; rank: string; pubRank: string; createdAt: string; updatedAt: string; collection: Collection; }; type Metadata = { doi?: string; url?: string; issue?: string; volume?: string; electronicIssn?: string; publicationDate?: string; printPublicationDate?: string; }; type Attribution = { id: string; name: string; avatar?: any; title?: any; order: number; isAuthor: boolean; roles?: any; affiliation?: any; orcid?: any; userId?: any; pubId: string; createdAt: string; updatedAt: string; user: User; }; type Release = { id: string; noteContent?: NoteContent; noteText?: string; pubId: string; userId: string; docId: string; historyKey: number; historyKeyMissing: boolean; createdAt: string; updatedAt: string; }; type NoteContent = { type: string; attrs: Attrs; content: Content2[]; }; type Content2 = { type: string; attrs: Attrs2; content: Content[]; }; type Content = { text: string; type: string; }; type Attrs2 = { id: string; rtl?: any; class?: any; textAlign?: any; }; type Attrs = { meta: Meta; }; type Meta = {}; type ScopeSummary = { id: string; collections: number; pubs: number; discussions: number; reviews: number; submissions: number; createdAt: string; updatedAt: string; }; type Draft = { id: string; latestKeyAt: string; firebasePath: string; createdAt: string; updatedAt: string; }; type Member = { id: string; permissions: string; isOwner: boolean; subscribedToActivityDigest: boolean; userId: string; pubId: string; collectionId?: any; communityId?: any; organizationId?: any; createdAt: string; updatedAt: string; }; type Download = { url: string; type: string; createdAt: string; }; type AttributionsPayload = { pubId: string; order?: number; roles: Roles[]; affiliation?: string; isAuthor?: boolean; } & ({ userId: string; name?: undefined; orcid?: undefined; } | { name: string; userId?: undefined; orcid?: string; }); type GetManyOptions = { excludeCollectionIds?: string[]; ordering?: { field: 'updatedDate' | 'creationDate' | 'collectionRank' | 'title'; direction: 'ASC' | 'DESC'; }; limit?: number; offset?: number; } & ({ collectionIds: string[]; pubIds?: undefined[]; } | { pubIds: string[]; collectionIds?: undefined[]; } | { pubIds?: undefined[]; collectionIds?: undefined[]; }); type UpdateCollectionPayload = { metadata: Metadata; id: string; communityId: string; }; type CommonCollectionsMetadata = { slug?: string; title?: string; }; type UpdateCollectionsBookMetadata = { doi?: string; url?: string; isbn?: string; copyrightYear?: string; publicationDate?: string; edition?: string; issue?: undefined; volume?: undefined; }; type UpdateCollectionsIssueMetadata = { doi?: string; url?: string; issn?: string; copyrightYear?: string; publicationDate?: string; issue?: string; volume?: string; edition?: undefined; isbn?: undefined; }; type UpdateCollectionsConferenceMetadata = { doi?: string; url?: string; issn?: undefined; copyrightYear?: undefined; publicationDate?: undefined; issue?: undefined; volume?: undefined; edition?: undefined; isbn?: undefined; }; type UpdateCollectionsMetaData = CommonCollectionsMetadata & (UpdateCollectionsBookMetadata | UpdateCollectionsIssueMetadata | UpdateCollectionsConferenceMetadata); type UploadPolicyResponse = { acl: string; awsAccessKeyId: string; policy: string; signature: string; bucket: string; }; declare const allowedMimeTypes: readonly ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/json", "image/png", "image/jpeg", "image/gif", "text/tex-x", "text/html", "text/plain"]; type FacetsProps = { license?: License; nodeLabels?: NodeLabels; pubEdgeDisplay?: PubEdgeDisplay; pubHeaderTheme?: PubHeaderTheme; citationStyle?: CitationStyle; }; type GetPageDataOverload = { (page: string, data: 'initial-data'): Promise; (page: string, data: 'view-data'): Promise; (page: string, data: 'view-data' | 'initial-data'): Promise | Promise; }; type ReleaseResponse = { id: string; historyKeyMissing: boolean; noteContent: string | null; noteText: string | null; historyKey: number; userId: string; pubId: string; docId: string; updatedAt: string; createdAt: string; }; type PubAttribution = { id: string; name: string; avatar?: string; title?: string; order: number; isAuthor?: boolean; roles?: string[]; affiliation?: string; orcid?: string; userId?: string; user?: MinimalUser; createdAt: string; pubId: string; }; type MinimalUser = { id: string; slug?: string; initials: string; fullName: string; firstName: string; lastName: string; avatar?: string; title?: string; orcid?: string; isShadowUser?: boolean; publicEmail?: string; feedback?: string; }; type DiscussionAnchor = { id: string; discussionId: string; historyKey: number; selection: null | { type: 'text'; anchor: number; head: number; }; originalText: string; originalTextPrefix: string; originalTextSuffix: string; isOriginal: boolean; }; type VisibilityAccess = 'private' | 'members' | 'public'; type VisibilityUser = { id: string; visibilityId: string; userId: string; }; type Visibility = { id: string; access: VisibilityAccess; users: VisibilityUser[]; }; type TaggedVisibilityParent = { type: 'discussion'; value: Discussion; } | { type: 'review'; value: Review; }; type Review = { id: string; author: User; createdAt: string; updatedAt: string; title: string; number: number; status: 'open' | 'closed' | 'completed'; releaseRequested: boolean; threadId: string; thread: Thread; visibilityId: string; visibility?: Visibility; userId: string; pubId: string; pub?: Pub; reviewContent?: DocJson; reviewers?: Reviewer[]; }; type Reviewer = { id: string; name: string; }; type Discussion = { id: string; title: string; number: number; isClosed: boolean; labels: string[]; threadId: string; visibilityId: string; userId: string; pubId: string; anchors?: DiscussionAnchor[]; visibility: Visibility; thread?: Thread; pub?: Pub; }; type Commenter = { id: string; name: string; }; type ThreadEvent = { id: string; type?: string; data?: {}; userId: string; threadId: string; }; type ThreadComment = { id: string; createdAt: string; updatedAt: string; text: string; content: DocJson; userId: null | string; threadId: string; commenterId: null | string; author?: null | User; commenter?: null | Commenter; }; type Thread = { id: string; createdAt: string; updatedAt: string; locked?: boolean; comments: ThreadComment[]; events: ThreadEvent[]; }; type DocJson = { type: 'doc'; attrs: any; content: any[]; }; type CollectionPubWithAttributions = CollectionPub & { collection: DefinitelyHas; }; type Doc = { id: string; createdAt: string; updatedAt: string; content: DocJson; }; type UserScopeVisit = { id: string; communityId: string; updatedAt: string; collectionId: null | string; pubId: null | string; userId: string; }; export { Review as $, Attribution as A, UploadPolicyResponse as B, Chapter as C, Downloads as D, ExportFormats as E, FacetsPayload as F, GetManyOptions as G, allowedMimeTypes as H, ImportPayload as I, FacetsProps as J, GetPageDataOverload as K, Label as L, Metadata as M, NodeLabels as N, ReleaseResponse as O, PubAttributionsPostPayload as P, PubAttribution as Q, Roles as R, Scope as S, MinimalUser as T, User as U, DiscussionAnchor as V, WorkerTaskResponse as W, VisibilityAccess as X, VisibilityUser as Y, Visibility as Z, TaggedVisibilityParent as _, PubAttributionsPostResponse as a, Reviewer as a0, Discussion as a1, Commenter as a2, ThreadEvent as a3, ThreadComment as a4, Thread as a5, DocJson as a6, CollectionPubWithAttributions as a7, Doc as a8, UserScopeVisit as a9, InitialData as aa, CommunityData as ab, CollectionViewData as ac, PubViewDataDash as ad, CommunityViewData as ae, PubViewDataPub as af, PubDataViewData as ag, SanitizedPubData as ah, CollectionPub$1 as ai, PubAttributionsPutPayload as b, PubPutPayload as c, Facets as d, PubHeaderTheme as e, PubEdgeDisplay as f, License as g, CitationStyle as h, inlineCitationStyles as i, CollectionKind as j, CommunityPutResponse as k, CommunityPutPayload as l, SourceFile as m, ExportPayload as n, WorkerTaskExportOutput as o, WorkerTaskImportOutput as p, PubsManyResponse as q, PubsById as r, Pub as s, Release as t, AttributionsPayload as u, UpdateCollectionPayload as v, UpdateCollectionsBookMetadata as w, UpdateCollectionsIssueMetadata as x, UpdateCollectionsConferenceMetadata as y, UpdateCollectionsMetaData as z };