import type { _CKOperation } from "./CKOperation.js";
import type { _CKShareMetadata } from "./CKShareMetadata.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSURL } from "../Foundation/NSURL.js";
export declare class _CKFetchShareMetadataOperation extends _CKOperation {
    static alloc(): _CKFetchShareMetadataOperation;
    static new(): _CKFetchShareMetadataOperation;
    init(): _CKFetchShareMetadataOperation;
    initWithShareURLs$(shareURLs: _NSArray): _CKFetchShareMetadataOperation;
    shareURLs(): _NSArray | null;
    setShareURLs$(value: _NSArray | null): void;
    /**
     * @abstract If set to YES, the resulting @c CKShareMetadata will have a @c rootRecord object filled out. @discussion Defaults to @c NO. The resulting @c CKShareMetadata will have a @c rootRecordID property regardless of the value of this property.
     */
    shouldFetchRootRecord(): boolean;
    setShouldFetchRootRecord$(value: boolean): void;
    /**
     * @abstract Declares which user-defined keys should be fetched and added to the resulting @c rootRecord. @discussion Only consulted if @c shouldFetchRootRecord is @c YES. If nil, declares the entire root record should be downloaded. If set to an empty array, declares that no user fields should be downloaded. Defaults to @c nil.
     */
    rootRecordDesiredKeys(): _NSArray | null;
    setRootRecordDesiredKeys$(value: _NSArray | null): void;
    /**
     * @abstract Called once for each share URL that the server processed @discussion Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
     */
    perShareMetadataBlock(): ((arg0: _NSURL, arg1: _CKShareMetadata, arg2: _NSError) => void) | null;
    setPerShareMetadataBlock$(value: ((arg0: _NSURL, arg1: _CKShareMetadata, arg2: _NSError) => void) | null): void;
    /**
     * @abstract This block is called when the operation completes. @discussion The @code -[NSOperation completionBlock] @endcode will also be called if both are set. If the error is @c CKErrorPartialFailure, the error's userInfo dictionary contains a dictionary of shareURLs to errors keyed off of @c CKPartialErrorsByItemIDKey. These errors are repeats of those sent back in previous @c perShareMetadataBlock invocations Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
     */
    fetchShareMetadataCompletionBlock(): ((arg0: _NSError) => void) | null;
    setFetchShareMetadataCompletionBlock$(value: ((arg0: _NSError) => void) | null): void;
}
