declare class OSLogEntry extends NSObject { static alloc(): OSLogEntry; // inherited from NSObject static new(): OSLogEntry; // inherited from NSObject readonly composedMessage: string; readonly date: Date; readonly storeCategory: OSLogEntryStoreCategory; } declare class OSLogEntryActivity extends OSLogEntry implements OSLogEntryFromProcess { static alloc(): OSLogEntryActivity; // inherited from NSObject static new(): OSLogEntryActivity; // inherited from NSObject readonly parentActivityIdentifier: number; readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess readonly process: string; // inherited from OSLogEntryFromProcess readonly processIdentifier: number; // inherited from OSLogEntryFromProcess readonly sender: string; // inherited from OSLogEntryFromProcess readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess } declare class OSLogEntryBoundary extends OSLogEntry { static alloc(): OSLogEntryBoundary; // inherited from NSObject static new(): OSLogEntryBoundary; // inherited from NSObject } interface OSLogEntryFromProcess { activityIdentifier: number; process: string; processIdentifier: number; sender: string; threadIdentifier: number; } declare var OSLogEntryFromProcess: { prototype: OSLogEntryFromProcess; }; declare class OSLogEntryLog extends OSLogEntry implements OSLogEntryFromProcess, OSLogEntryWithPayload { static alloc(): OSLogEntryLog; // inherited from NSObject static new(): OSLogEntryLog; // inherited from NSObject readonly level: OSLogEntryLogLevel; readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess readonly category: string; // inherited from OSLogEntryWithPayload readonly components: NSArray; // inherited from OSLogEntryWithPayload readonly formatString: string; // inherited from OSLogEntryWithPayload readonly process: string; // inherited from OSLogEntryFromProcess readonly processIdentifier: number; // inherited from OSLogEntryFromProcess readonly sender: string; // inherited from OSLogEntryFromProcess readonly subsystem: string; // inherited from OSLogEntryWithPayload readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess } declare const enum OSLogEntryLogLevel { Undefined = 0, Debug = 1, Info = 2, Notice = 3, Error = 4, Fault = 5 } declare class OSLogEntrySignpost extends OSLogEntry implements OSLogEntryFromProcess, OSLogEntryWithPayload { static alloc(): OSLogEntrySignpost; // inherited from NSObject static new(): OSLogEntrySignpost; // inherited from NSObject readonly signpostIdentifier: number; readonly signpostName: string; readonly signpostType: OSLogEntrySignpostType; readonly activityIdentifier: number; // inherited from OSLogEntryFromProcess readonly category: string; // inherited from OSLogEntryWithPayload readonly components: NSArray; // inherited from OSLogEntryWithPayload readonly formatString: string; // inherited from OSLogEntryWithPayload readonly process: string; // inherited from OSLogEntryFromProcess readonly processIdentifier: number; // inherited from OSLogEntryFromProcess readonly sender: string; // inherited from OSLogEntryFromProcess readonly subsystem: string; // inherited from OSLogEntryWithPayload readonly threadIdentifier: number; // inherited from OSLogEntryFromProcess } declare const enum OSLogEntrySignpostType { Undefined = 0, IntervalBegin = 1, IntervalEnd = 2, Event = 3 } declare const enum OSLogEntryStoreCategory { Undefined = 0, Metadata = 1, ShortTerm = 2, LongTermAuto = 3, LongTerm1 = 4, LongTerm3 = 5, LongTerm7 = 6, LongTerm14 = 7, LongTerm30 = 8 } interface OSLogEntryWithPayload { category: string; components: NSArray; formatString: string; subsystem: string; } declare var OSLogEntryWithPayload: { prototype: OSLogEntryWithPayload; }; declare class OSLogEnumerator extends NSEnumerator { static alloc(): NSObject; static alloc(): OSLogEnumerator; // inherited from NSObject static new(): NSObject; static new(): OSLogEnumerator; // inherited from NSObject } declare const enum OSLogEnumeratorOptions { Reverse = 1 } declare class OSLogMessageComponent extends NSObject { static alloc(): OSLogMessageComponent; // inherited from NSObject static new(): OSLogMessageComponent; // inherited from NSObject readonly argumentCategory: OSLogMessageComponentArgumentCategory; readonly argumentDataValue: NSData; readonly argumentDoubleValue: number; readonly argumentInt64Value: number; readonly argumentNumberValue: number; readonly argumentStringValue: string; readonly argumentUInt64Value: number; readonly formatSubstring: string; readonly placeholder: string; } declare const enum OSLogMessageComponentArgumentCategory { Undefined = 0, Data = 1, Double = 2, Int64 = 3, String = 4, UInt64 = 5 } declare class OSLogPosition extends NSObject { static alloc(): OSLogPosition; // inherited from NSObject static new(): OSLogPosition; // inherited from NSObject } declare class OSLogStore extends NSObject { static alloc(): OSLogStore; // inherited from NSObject static localStoreAndReturnError(): OSLogStore; static new(): OSLogStore; // inherited from NSObject static storeWithURLError(url: NSURL): OSLogStore; entriesEnumeratorAndReturnError(): OSLogEnumerator; entriesEnumeratorWithOptionsPositionPredicateError(options: OSLogEnumeratorOptions, position: OSLogPosition, predicate: NSPredicate): OSLogEnumerator; positionWithDate(date: Date): OSLogPosition; positionWithTimeIntervalSinceEnd(seconds: number): OSLogPosition; positionWithTimeIntervalSinceLatestBoot(seconds: number): OSLogPosition; }