import { DecodedLogEntryEvent, DecodedLogEntry, DecodedTransactionReceipt } from "@joincivil/typescript-types"; import "rxjs/add/operator/distinctUntilChanged"; import { TransactionConfig } from "web3-core"; import { EthAddress } from "@joincivil/typescript-types"; import { EthApi } from "@joincivil/ethapi"; import { BaseContract } from "../../basecontract"; declare type BigNumber = string; export declare class NewsroomContract extends BaseContract { static singletonTrusted(ethApi: EthApi): Promise; static atUntrusted(ethApi: EthApi, address: EthAddress): NewsroomContract; static deployTrusted: { sendTransactionAsync(ethApi: EthApi, newsroomName: string, charterUri: string, charterHash: string, options: TransactionConfig): Promise; estimateGasAsync(ethApi: EthApi, newsroomName: string, charterUri: string, charterHash: string): Promise; }; name: { callAsync(): Promise; }; hasRole: { callAsync(user: string, role: string): Promise; }; isOwner: { callAsync(user: string): Promise; }; renounceOwnership: { sendTransactionAsync(txData?: TransactionConfig | undefined): Promise; estimateGasAsync(txData?: TransactionConfig | undefined): Promise; getRaw(txData?: TransactionConfig | undefined): Promise; }; owner: { callAsync(): Promise; }; contentCount: { callAsync(): Promise; }; transferOwnership: { sendTransactionAsync(_newOwner: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_newOwner: string, txData?: TransactionConfig | undefined): Promise; getRaw(_newOwner: string, txData?: TransactionConfig | undefined): Promise; }; getContent: { callAsync(contentId: string): Promise<[string, string, string, string, string]>; }; getRevision: { callAsync(contentId: string, revisionId: string): Promise<[string, string, string, string, string]>; }; revisionCount: { callAsync(contentId: string): Promise; }; isContentSigned: { callAsync(contentId: string): Promise; }; isRevisionSigned: { callAsync(contentId: string, revisionId: string): Promise; }; setName: { sendTransactionAsync(newName: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(newName: string, txData?: TransactionConfig | undefined): Promise; getRaw(newName: string, txData?: TransactionConfig | undefined): Promise; }; addRole: { sendTransactionAsync(who: string, role: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(who: string, role: string, txData?: TransactionConfig | undefined): Promise; getRaw(who: string, role: string, txData?: TransactionConfig | undefined): Promise; }; addEditor: { sendTransactionAsync(who: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(who: string, txData?: TransactionConfig | undefined): Promise; getRaw(who: string, txData?: TransactionConfig | undefined): Promise; }; removeRole: { sendTransactionAsync(who: string, role: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(who: string, role: string, txData?: TransactionConfig | undefined): Promise; getRaw(who: string, role: string, txData?: TransactionConfig | undefined): Promise; }; publishContent: { sendTransactionAsync(contentUri: string, contentHash: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(contentUri: string, contentHash: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; getRaw(contentUri: string, contentHash: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; }; updateRevision: { sendTransactionAsync(contentId: string, contentUri: string, contentHash: string, signature: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(contentId: string, contentUri: string, contentHash: string, signature: string, txData?: TransactionConfig | undefined): Promise; getRaw(contentId: string, contentUri: string, contentHash: string, signature: string, txData?: TransactionConfig | undefined): Promise; }; signRevision: { sendTransactionAsync(contentId: string, revisionId: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(contentId: string, revisionId: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; getRaw(contentId: string, revisionId: string, author: string, signature: string, txData?: TransactionConfig | undefined): Promise; }; ContentPublishedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; RevisionSignedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; RevisionUpdatedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; NameChangedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; RoleAddedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; RoleRemovedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; OwnershipRenouncedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; OwnershipTransferredStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; private constructor(); } export declare namespace Newsroom { enum Events { ContentPublished = "ContentPublished", RevisionSigned = "RevisionSigned", RevisionUpdated = "RevisionUpdated", NameChanged = "NameChanged", RoleAdded = "RoleAdded", RoleRemoved = "RoleRemoved", OwnershipRenounced = "OwnershipRenounced", OwnershipTransferred = "OwnershipTransferred" } namespace Args { interface ContentPublished { editor: string; contentId: BigNumber; uri: string; } interface RevisionSigned { contentId: BigNumber; revisionId: BigNumber; author: string; } interface RevisionUpdated { editor: string; contentId: BigNumber; revisionId: BigNumber; uri: string; } interface NameChanged { newName: string; } interface RoleAdded { granter: string; grantee: string; role: string; } interface RoleRemoved { granter: string; grantee: string; role: string; } interface OwnershipRenounced { previousOwner: string; } interface OwnershipTransferred { previousOwner: string; newOwner: string; } } namespace Logs { type ContentPublished = DecodedLogEntry; type RevisionSigned = DecodedLogEntry; type RevisionUpdated = DecodedLogEntry; type NameChanged = DecodedLogEntry; type RoleAdded = DecodedLogEntry; type RoleRemoved = DecodedLogEntry; type OwnershipRenounced = DecodedLogEntry; type OwnershipTransferred = DecodedLogEntry; type All = Logs.ContentPublished | Logs.RevisionSigned | Logs.RevisionUpdated | Logs.NameChanged | Logs.RoleAdded | Logs.RoleRemoved | Logs.OwnershipRenounced | Logs.OwnershipTransferred; } namespace LogEvents { type ContentPublished = DecodedLogEntryEvent; type RevisionSigned = DecodedLogEntryEvent; type RevisionUpdated = DecodedLogEntryEvent; type NameChanged = DecodedLogEntryEvent; type RoleAdded = DecodedLogEntryEvent; type RoleRemoved = DecodedLogEntryEvent; type OwnershipRenounced = DecodedLogEntryEvent; type OwnershipTransferred = DecodedLogEntryEvent; type All = LogEvents.ContentPublished | LogEvents.RevisionSigned | LogEvents.RevisionUpdated | LogEvents.NameChanged | LogEvents.RoleAdded | LogEvents.RoleRemoved | LogEvents.OwnershipRenounced | LogEvents.OwnershipTransferred; } type Receipt = DecodedTransactionReceipt; type EventReceipt = DecodedTransactionReceipt; } export {};